Skip to content

feat: replace OPA deny-reasons with boolean allow rule#220

Merged
alecthomas merged 1 commit intomainfrom
aat/opa-allow-rule
Mar 23, 2026
Merged

feat: replace OPA deny-reasons with boolean allow rule#220
alecthomas merged 1 commit intomainfrom
aat/opa-allow-rule

Conversation

@alecthomas
Copy link
Copy Markdown
Collaborator

Switch from a deny set to a simple boolean allow rule for OPA
authorization. This follows OPA's "default deny" pattern where
everything not explicitly permitted is rejected.

The default policy now allows GET/HEAD from any source and all
methods from localhost, fixing readiness probes from non-localhost.

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

Switch from a deny set to a simple boolean allow rule for OPA
authorization. This follows OPA's "default deny" pattern where
everything not explicitly permitted is rejected.

The default policy now allows GET/HEAD from any source and all
methods from localhost, fixing readiness probes from non-localhost.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alecthomas alecthomas requested a review from a team as a code owner March 23, 2026 23:51
@alecthomas alecthomas requested review from jrobotham-square and removed request for a team March 23, 2026 23:51
@alecthomas alecthomas enabled auto-merge (squash) March 23, 2026 23:51
@alecthomas alecthomas merged commit 559739e into main Mar 23, 2026
7 checks passed
@alecthomas alecthomas deleted the aat/opa-allow-rule branch March 23, 2026 23:53
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