- Notifications
You must be signed in to change notification settings - Fork1k
feat: add scoped token support to CLI#19985
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
Open
ThomasK33 wants to merge1 commit intothomask33/09-26-add_api_key_patch_endpointChoose a base branch fromthomask33/09-26-add_token_scope_support_in_cli
base:thomask33/09-26-add_api_key_patch_endpoint
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Open
feat: add scoped token support to CLI#19985
ThomasK33 wants to merge1 commit intothomask33/09-26-add_api_key_patch_endpointfromthomask33/09-26-add_token_scope_support_in_cli
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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
This was referencedSep 26, 2025
MemberAuthor
ThomasK33 commentedSep 26, 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.
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 stackon Graphite.
This stack of pull requests is managed byGraphite. Learn more aboutstacking. |
e31d661
toc68b64b
Compareb0bed7f
toacc9e28
Comparec68b64b
tof277494
Compareacc9e28
to53815d9
Comparef277494
to51502b5
Compare53815d9
to326dbdc
Compare51502b5
to9384a37
Compare326dbdc
tof4dd33e
Compare69e62eb
to3acf64c
Compare3acf64c
to790294f
Compare9b638ba
to68d44a5
Compare790294f
to9ba5e36
Compare364fa3f
tofa49bdc
Compare9ba5e36
to541b300
Comparefa49bdc
tod7fcc25
Compare541b300
to2a701ed
Compared7fcc25
toc4f8c2a
Compare2a701ed
to29af648
Comparec4f8c2a
to6ec4b94
Compare1a42b23
to1d1732b
Compare6ec4b94
tod9f66ca
Compare1d1732b
to518faff
Compared9f66ca
to11f6a63
Compare518faff
to4de874d
Compare11f6a63
to75d7b64
Compare4de874d
tofd7a0fb
Compare75d7b64
tof244193
Comparefd7a0fb
tod06529e
Comparef244193
to2f3304e
Compared06529e
toa343213
Compare2f3304e
to1dae22e
CompareThis commit adds comprehensive support for token scoping and allow-listing in the CLI token management commands:- Add --scope flag to create scoped tokens with specific permissions- Add --allow flag to create tokens restricted to specific resources- Display scopes and allow-list in token list/view commands- Add tokens view subcommand for detailed token inspection- Update help text and documentation with scoping examples- Add comprehensive test coverage for new functionality
a343213
to95b0229
Compare1dae22e
to7eb739c
CompareSign up for freeto 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.
Add support for scoped API tokens in CLI
This PR adds CLI support for creating and viewing API tokens with scopes and allow lists. It includes:
--scope
and--allow
flags for thetokens create
commandtokens view
command to display detailed information about a tokentokens list
to show scopes and allow list entriesThese changes enable users to create tokens with limited permissions through the CLI, similar to the existing functionality in the web UI.