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: replace ExternalAPIKeyScopes with detailed ScopeCatalog#20248

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

Draft
ThomasK33 wants to merge1 commit intothomask33/09-30-api_allowlist_structured_json
base:thomask33/09-30-api_allowlist_structured_json
Choose a base branch
Loading
fromthomask33/10-09-add_scope_catalog_api

Conversation

ThomasK33
Copy link
Member

Enhance API Key Scopes Catalog

This PR enhances the API key scopes catalog by replacing the flat list of external scopes with a more structured and informative catalog. The new catalog organizes scopes into three categories:

  1. Special scopes - Legacy scopes like "all" and "application_connect" that remain for backward compatibility
  2. Low-level scopes - Basic resource:action pairs with metadata about the resource and action
  3. Composite scopes - Higher-level "coder:*" scopes with information about what low-level scopes they expand to

The changes include:

  • ReplacingExternalAPIKeyScopes with a more detailedScopeCatalog structure
  • Adding helper functions to extract metadata about each scope type
  • Updating API documentation and tests to reflect the new structure
  • Renaming the endpoint handler fromlistExternalScopes tolistScopeCatalog

This enhancement provides more context about each scope, making it easier for users to understand what permissions they're requesting when creating API keys.

Replace the scopes endpoint response with a structured catalog so APIclients can inspect specials, low-level, and composite scopes.Expose new metadata builders in rbac and codersdk, update swagger docs,and adjust the API test to cover the richer catalog payload.
@ThomasK33Graphite App
Copy link
MemberAuthor

ThomasK33 commentedOct 9, 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.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@EmyrkEmyrkAwaiting requested review from EmyrkEmyrk will be requested when the pull request is marked ready for reviewEmyrk is a code owner

Assignees

@ThomasK33ThomasK33

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@ThomasK33

[8]ページ先頭

©2009-2025 Movatter.jp