[RBAC PR 4 follow-up] Add scoped restrictive enforcement - #2429
Open
philipfweiss wants to merge 2 commits into
Open
[RBAC PR 4 follow-up] Add scoped restrictive enforcement#2429philipfweiss wants to merge 2 commits into
philipfweiss wants to merge 2 commits into
Conversation
Require explicit grants for selected action and resource boundaries while preserving permissive behavior outside configured scopes.
✅ Deploy Preview for thriving-cassata-78ae72 canceled.
|
Verify exact action matching, root and subtree behavior, and default read fallback under restrictive write policy.
philipfweiss
marked this pull request as ready for review
August 19, 2026 22:54
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.
Tracking: #2234 (step 4).
With a permissive default, a missing grant allows every ordinary metadata mutation. Operators need a way to require explicit grants for
shared.mainwrites while unrelated namespaces keep their current behavior.This draft adds a
RESTRICTIVE_SCOPESsetting:action:scope_type:scope_value, such aswrite:node:shared.main.*.WRITE,DELETE, andMANAGEare configured separately whileREADandEXECUTEremain open.This draft uses an explicit scope set for namespace boundaries and preserves existing scope meanings. Protecting
shared.mainfor one action requires the namespace root, namespace subtree, and node subtree:The empty default leaves existing deployments unchanged. Rollout begins only when an operator supplies rules and provisions the matching grants.
Verification:
Started a local FastAPI harness on
:18084that routed HTTP requests throughRBACAuthorizationServicewithDEFAULT_ACCESS_POLICY=permissiveand this write boundary:curl http://127.0.0.1:18084/check/write/node/shared.main.revenue # {"approved":false,"reason":"restrictive_scope:write:namespace:shared.main.*"}