feat(authz): forward CAS backend creation to external authorizer#3148
Merged
migmartri merged 1 commit intoMay 26, 2026
Merged
Conversation
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
Contributor
AI Session Analysis
|
| 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
matiasinsaurralde
approved these changes
May 26, 2026
Piskoo
approved these changes
May 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.