feat(auth): authorize API routes by capability - #162
Draft
djwhitt wants to merge 6 commits into
Draft
Conversation
Apply a closed compile-time route capability matrix after authentication and before body parsing. Query, ingest, and catalog-management routes now return generic 403 responses for authenticated principals without the required capability while static credentials preserve existing access. Denied requests do not parse bodies or reach catalog and service clients.
djwhitt
marked this pull request as draft
August 16, 2026 00:09
Carry the hardened provider cache, separated token profiles, updated lower stack, and current origin/main into the published capability layer without rewriting existing commits.
Propagate the unambiguous key-set and refresh-worker lifecycle fixes through the published capability layer without rewriting existing commits.
Propagate the validated public host, fixed callback route, and bounded browser scope settings through the published API capability layer without rewriting existing commits. Tests: ../bin/x mix ci Tests: ../bin/test Tests: ../bin/x mix dialyzer
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
Tracker: T-233
Validation
../bin/x mix ci../bin/test../bin/x mix dialyzerStack
Depends on #161. This is layer 5 of stack #151.
Stack managed with GitHub Stacks CLI.