Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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_endpoint
base:thomask33/09-26-add_api_key_patch_endpoint
Choose a base branch
Loading
fromthomask33/09-26-add_token_scope_support_in_cli

Conversation

ThomasK33
Copy link
Member

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:

  • New--scope and--allow flags for thetokens create command
  • A newtokens view command to display detailed information about a token
  • Updated table columns intokens list to show scopes and allow list entries
  • Updated help text and examples

These changes enable users to create tokens with limited permissions through the CLI, similar to the existing functionality in the web UI.

@ThomasK33Graphite App
Copy link
MemberAuthor

ThomasK33 commentedSep 26, 2025
edited
Loading

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.
Learn more

This stack of pull requests is managed byGraphite. Learn more aboutstacking.

@ThomasK33ThomasK33 linked an issueSep 26, 2025 that may beclosed by this pull request
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_token_scope_support_in_cli branch 3 times, most recently frome31d661 toc68b64bCompareSeptember 26, 2025 14:27
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_api_key_patch_endpoint branch fromb0bed7f toacc9e28CompareSeptember 26, 2025 14:27
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_token_scope_support_in_cli branch fromc68b64b tof277494CompareSeptember 26, 2025 18:05
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_api_key_patch_endpoint branch fromacc9e28 to53815d9CompareSeptember 26, 2025 18:05
@ThomasK33ThomasK33 marked this pull request as ready for reviewSeptember 26, 2025 18:58
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_token_scope_support_in_cli branch fromf277494 to51502b5CompareSeptember 28, 2025 10:53
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_api_key_patch_endpoint branch from53815d9 to326dbdcCompareSeptember 28, 2025 10:53
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_token_scope_support_in_cli branch from51502b5 to9384a37CompareSeptember 29, 2025 08:25
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_api_key_patch_endpoint branch from326dbdc tof4dd33eCompareSeptember 29, 2025 08:25
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_api_key_patch_endpoint branch from69e62eb to3acf64cCompareSeptember 30, 2025 13:04
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_api_key_patch_endpoint branch from3acf64c to790294fCompareSeptember 30, 2025 14:02
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_token_scope_support_in_cli branch from9b638ba to68d44a5CompareSeptember 30, 2025 14:02
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_api_key_patch_endpoint branch from790294f to9ba5e36CompareOctober 1, 2025 13:56
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_token_scope_support_in_cli branch 2 times, most recently from364fa3f tofa49bdcCompareOctober 2, 2025 07:35
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_api_key_patch_endpoint branch from9ba5e36 to541b300CompareOctober 2, 2025 07:35
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_token_scope_support_in_cli branch fromfa49bdc tod7fcc25CompareOctober 2, 2025 17:37
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_api_key_patch_endpoint branch from541b300 to2a701edCompareOctober 2, 2025 17:37
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_token_scope_support_in_cli branch fromd7fcc25 toc4f8c2aCompareOctober 3, 2025 17:59
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_api_key_patch_endpoint branch from2a701ed to29af648CompareOctober 3, 2025 17:59
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_token_scope_support_in_cli branch fromc4f8c2a to6ec4b94CompareOctober 6, 2025 09:42
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_api_key_patch_endpoint branch 2 times, most recently from1a42b23 to1d1732bCompareOctober 6, 2025 10:09
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_token_scope_support_in_cli branch from6ec4b94 tod9f66caCompareOctober 6, 2025 10:10
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_api_key_patch_endpoint branch from1d1732b to518faffCompareOctober 6, 2025 10:48
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_token_scope_support_in_cli branch fromd9f66ca to11f6a63CompareOctober 6, 2025 10:48
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_api_key_patch_endpoint branch from518faff to4de874dCompareOctober 6, 2025 11:24
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_token_scope_support_in_cli branch from11f6a63 to75d7b64CompareOctober 6, 2025 11:24
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_api_key_patch_endpoint branch from4de874d tofd7a0fbCompareOctober 6, 2025 11:57
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_token_scope_support_in_cli branch from75d7b64 tof244193CompareOctober 6, 2025 11:57
@EmyrkEmyrk self-assigned thisOct 6, 2025
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_api_key_patch_endpoint branch fromfd7a0fb tod06529eCompareOctober 6, 2025 21:16
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_token_scope_support_in_cli branch fromf244193 to2f3304eCompareOctober 6, 2025 21:16
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_api_key_patch_endpoint branch fromd06529e toa343213CompareOctober 6, 2025 21:40
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_token_scope_support_in_cli branch from2f3304e to1dae22eCompareOctober 6, 2025 21:40
This 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
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_api_key_patch_endpoint branch froma343213 to95b0229CompareOctober 7, 2025 16:38
@ThomasK33ThomasK33force-pushed thethomask33/09-26-add_token_scope_support_in_cli branch from1dae22e to7eb739cCompareOctober 7, 2025 16:38
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@EmyrkEmyrkAwaiting requested review from Emyrk

@mafredrimafredriAwaiting requested review from mafredri

Assignees

@ThomasK33ThomasK33

@EmyrkEmyrk

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

CLI: coder tokens create/list/update flags
2 participants
@ThomasK33@Emyrk

[8]ページ先頭

©2009-2025 Movatter.jp