Skip to content

feat(authz): forward CAS backend creation to external authorizer#3148

Merged
migmartri merged 1 commit into
chainloop-dev:mainfrom
migmartri:miguel/pfm-6118-cas-backend-external-authz
May 26, 2026
Merged

feat(authz): forward CAS backend creation to external authorizer#3148
migmartri merged 1 commit into
chainloop-dev:mainfrom
migmartri:miguel/pfm-6118-cas-backend-external-authz

Conversation

@migmartri
Copy link
Copy Markdown
Member

Summary

Flags `/controlplane.v1.CASBackendService/Create` with `ExternalAuthz: true` so the operation authorization middleware introduced in #3021 forwards Create requests to the configured external authorization provider. When the provider is disabled (default for self-hosted), behaviour is unchanged.

This is the first real consumer of the external authorization middleware. It unblocks gating CAS backend creation behind an entitlement check performed by an external SaaS service.

Refs PFM-6118.

This PR was developed with the assistance of Claude Code.

Flag /controlplane.v1.CASBackendService/Create with ExternalAuthz so
the operation authorization middleware (PR chainloop-dev#3021) forwards Create
requests to the configured external authorization provider. When the
provider is disabled (default), behaviour is unchanged.

Refs PFM-6118

Assisted-by: Claude Code
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>

Chainloop-Trace-Sessions: a4f7f0ce-ff99-4904-a719-e5ba61ef099e
@chainloop-platform
Copy link
Copy Markdown
Contributor

chainloop-platform Bot commented May 25, 2026

AI Session Analysis

Avg score Sessions Failing policies Attribution Files Lines Total Duration
🟡 82% 1 ✅ 0 100% AI / 0% Human 2 +32 / -2 15m35s

🟡 82% — 100% AI — ✅ All policies passing

May 25, 2026 21:13 UTC · 15m35s · $10.86 · 177 in / 68.0k out · claude-code 2.1.150 (claude-opus-4-7)

View session details ↗

AI Session Overall Score

🟡 82% — Strong authz fix with good tests, but two user interrupts and no final sign-off noted.


File Attribution

████████████████████ 100% AI / 0% Human

Status Attribution File Lines
modified ai app/controlplane/pkg/authz/authz_test.go +31 / -1
modified ai app/controlplane/pkg/authz/authz.go +1 / -1

Policies (4)

Status Policy Material Messages
✅ Passed ai-config-ai-agents-allowed ai-coding-session-a4f7f0 -
✅ Passed ai-config-no-dangerous-commands ai-coding-session-a4f7f0 -
✅ Passed ai-config-no-secrets ai-coding-session-a4f7f0 -
✅ Passed ai-config-mcp-servers-allowed ai-coding-session-a4f7f0 -

Powered by Chainloop and Chainloop Trace

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Re-trigger cubic

@migmartri migmartri merged commit b4e022b into chainloop-dev:main May 26, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants