Repository navigation
feat(auth): always enforce management API scopes - #174
Conversation
Strix Security Review✅ No open security findings. PR summary: The pull request makes scope enforcement unconditional for the auth service's management API by removing the `--auth-check-scopes` flag and hardcoding scope checking on, updating the test-server plumbing, documentation and tests accordingly. Review summaryReviewed all six changed files. The production change is narrow and strictly tightening: Ruled out (3)
Review 1 on this PR · Reviewed by Strix |
NumaryBot
left a comment
There was a problem hiding this comment.
The required automated review completed with no remaining findings.
Auth previously accepted valid management API tokens without checking their scopes by default. Scope checks are now always enabled: reads require
auth:readorauth:write, and mutations requireauth:write.Remove
--auth-check-scopesand the test-server toggle. Add 12 integration cases for missing, unrelated, read and write scopes on/clientsand/users, plus CLI coverage for the removed flag.Upgrade: remove
--auth-check-scopesfrom deployment arguments (including explicit true/false), configure the required client scopes, and obtain new tokens before upgrading. Token issuance rules and other services are unchanged.Validation:
nix develop --command just pcnix develop --command go test -race -tags it ./...