feat: add scopes and resource allow-list to API tokens#20249
Closed
ThomasK33 wants to merge 1 commit into
Closed
Conversation
Member
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
d26265a to
d8c07af
Compare
2d9098b to
e56c680
Compare
d8c07af to
8b28268
Compare
e56c680 to
8ad7363
Compare
8b28268 to
2026c82
Compare
2026c82 to
c0f9ab2
Compare
8ad7363 to
8b41e7c
Compare
c0f9ab2 to
8108da0
Compare
8b41e7c to
2eb31ac
Compare
Introduce scope catalog integration on create token form to allow multi-mode selection of composite and low-level scopes with previews. Add allow-list resolver, hydration, and serialization utilities for both creation and editing flows, plus expose edit page and tests.
8108da0 to
680f589
Compare
2eb31ac to
28c5e34
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.

Add Token Scopes and Allow-List Support
This PR adds support for token scopes and resource allow-lists, enabling more granular control over API token permissions. Users can now:
Create and edit tokens with specific scopes using either:
Restrict tokens to specific resources with an allow-list:
The implementation includes:
These changes improve security by supporting the principle of least privilege for API tokens.