- Notifications
You must be signed in to change notification settings - Fork1k
feat: implement API key scopes database migration#19861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
feat: implement API key scopes database migration#19861
Uh oh!
There was an error while loading.Please reload this page.
Conversation
2ba5550
toe548168
Compare7a7e6ad
to1aba733
Compare1aba733
to99b5b53
CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
99b5b53
todb8b42e
Compare241294b
to70b3a9f
Compare3622f3e
to3e3a767
Comparedb8b42e
to32e7137
CompareThomasK33 commentedSep 18, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
32e7137
to682511c
Compareremoving you, since I goofed up the git history and don't want to spam you. will rerequest in the future
3e3a767
to4e7f6cb
Compare0fd28db
toa1e7294
Comparea1e7294
to81ce34a
Compare96684bf
to4d8dc22
Compareae36958
to391fa21
Compare5b28178
toec2d8fb
Compareec2d8fb
to782f1c7
CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Small changes requested.
If the changes want to be pushed to another PR, we just need to open issues to address them.
Uh oh!
There was an error while loading.Please reload this page.
0eb0644
to81b483f
Compare…w listReplace the single `scope` column with `scopes` array and add `allow_list`column to API keys table. This enables fine-grained authorization controlusing low-level resource:action permissions while maintaining backwardcompatibility.- Add database migration extending api_key_scope enum with all RBAC permissions- Replace APIKey.Scope with APIKey.Scopes array and AllowList fields- Implement APIKeyScopes.Expand() method for multi-scope authorization- Add AllowList type with database serialization support- Update RBAC scope expansion to support resource:action format- Maintain response compatibility by deriving single scope from arrays- Add comprehensive test coverage for scope expansion logic
81b483f
tob27f312
Comparefb0ce38
intomainUh oh!
There was an error while loading.Please reload this page.
Added database migration for API key scopes.
Fixes#19845