Skip to content

feat: add OPA-based request authorization#198

Merged
alecthomas merged 1 commit intomainfrom
aat/opa-authorization
Mar 18, 2026
Merged

feat: add OPA-based request authorization#198
alecthomas merged 1 commit intomainfrom
aat/opa-authorization

Conversation

@alecthomas
Copy link
Copy Markdown
Collaborator

@alecthomas alecthomas commented Mar 18, 2026

Default policy allows only GET/HEAD and localhost requests. Custom policies can be provided inline or via an external .rego file.

Policies can reference external data (e.g. JWKS keys, allowed CIDRs) loaded as OPA's data.* namespace, either inline via data or from a JSON file via data-file.

Denied requests are logged at warn level with method, path, and remote address.

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 18, 2026 05:07
@alecthomas alecthomas requested review from jrobotham-square and removed request for a team March 18, 2026 05:07
@alecthomas alecthomas enabled auto-merge (squash) March 18, 2026 05:07
@alecthomas alecthomas disabled auto-merge March 18, 2026 05:08
@alecthomas alecthomas force-pushed the aat/opa-authorization branch 2 times, most recently from 57588a8 to 9d74abb Compare March 18, 2026 05:40
@alecthomas alecthomas changed the title feat: Add OPA-based request authorization feat: add OPA-based request authorization Mar 18, 2026
@alecthomas alecthomas force-pushed the aat/opa-authorization branch from 9d74abb to 82af513 Compare March 18, 2026 05:54
Default policy allows only GET/HEAD and localhost requests. Custom
policies can be provided inline or via an external .rego file.
Supports loading data for policies via inline JSON or a JSON file.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Ai-assisted: true
@alecthomas alecthomas force-pushed the aat/opa-authorization branch from 82af513 to 47cf6cb Compare March 18, 2026 05:58
@alecthomas alecthomas merged commit fc12c44 into main Mar 18, 2026
7 checks passed
@alecthomas alecthomas deleted the aat/opa-authorization branch March 18, 2026 06:01
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