Skip to content

PB-15775: Correct who may set an exclusion - #479

Merged
lalat-das merged 1 commit into
pb-15775-rcbfrom
pb-15775-exclusion-tier
Dec 6, 2026
Merged

lalat-das merged 1 commit into
pb-15775-rcbfrom
pb-15775-exclusion-tier

Conversation

@lalat-das

Copy link
Copy Markdown
Collaborator

The comment said "Infra or higher". Journey X2 says Super, Infra and App Admin, within their resource scope, and the design gave no reason for narrowing it.

Nothing enforces either rule today - ResourceCatalog.Update is a stub - so this is the comment catching up with the journey before anyone builds against it.

It also records the half that caused the question. An App Admin may set an exclusion and it will NOT stop a rule owned by Infra or Super, because exclusionBlocksClaim compares the setter's tier against the rule owner's. That is deliberate: the rule is the stronger tier's guarantee. Without the comment, an app team excludes a scratch namespace, sees it recorded, and watches a broad env=prod rule claim it anyway.

What this PR does / why we need it:

Which issue(s) this PR fixes (optional)
Closes #

Special notes for your reviewer:

The comment said "Infra or higher". Journey X2 says Super, Infra and
App Admin, within their resource scope, and the design gave no reason
for narrowing it.

Nothing enforces either rule today - ResourceCatalog.Update is a stub -
so this is the comment catching up with the journey before anyone
builds against it.

It also records the half that caused the question. An App Admin may
set an exclusion and it will NOT stop a rule owned by Infra or Super,
because exclusionBlocksClaim compares the setter's tier against the
rule owner's. That is deliberate: the rule is the stronger tier's
guarantee. Without the comment, an app team excludes a scratch
namespace, sees it recorded, and watches a broad env=prod rule claim
it anyway.
@lalat-das
lalat-das merged commit d8385a2 into pb-15775-rcb Dec 6, 2026
1 check 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.

1 participant