René's URL Explorer Experiment


Title: feat: add scopes and resource allow-list to API tokens by ThomasK33 · Pull Request #20249 · coder/coder · GitHub

Open Graph Title: feat: add scopes and resource allow-list to API tokens by ThomasK33 · Pull Request #20249 · coder/coder

X Title: feat: add scopes and resource allow-list to API tokens by ThomasK33 · Pull Request #20249 · coder/coder

Description: 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: Composite scopes (high-level capabilities) Low-level scopes (fine-grained permissions) Restrict tokens to specific resources with an allow-list: Limit to specific workspaces or templates Use wildcards for resource types The implementation includes: New API endpoints for token management UI for scope selection and resource filtering Token editing capabilities Enhanced token listing with scope and allow-list information These changes improve security by supporting the principle of least privilege for API tokens.

Open Graph Description: 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 t...

X Description: 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 t...

Opengraph URL: https://github.com/coder/coder/pull/20249

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:58f247ce-33e7-f667-68ea-28212452a103
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9F6A:31E99C:1DFFC4F:280286C:6B016F33
html-safe-nonce619f3a153ff079032a43a70f1198b0610d2da6108a2bc0621d0626acdbe25059
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjZBOjMxRTk5QzoxREZGQzRGOjI4MDI4NkM6NkIwMTZGMzMiLCJ2aXNpdG9yX2lkIjoiNDk2NDYxMjg0NTk2MzY2OTI5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac99abb994fda58baf933f36d66f68ba1b2d0fd56623034c39bae32221debd8463
hovercard-subject-tagpull_request:2901264742
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/coder/coder/pull/20249/files
twitter:imagehttps://avatars.githubusercontent.com/u/2198487?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/2198487?s=400&v=4
og:image:altAdd 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 t...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/coder/coder/pull/20249/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F20249%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F20249%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/pull/20249/files
Reloadhttps://github.com/coder/coder/pull/20249/files
Reloadhttps://github.com/coder/coder/pull/20249/files
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose
ThomasK33https://github.com/ThomasK33
thomask33/10-09-add_scope_catalog_apihttps://github.com/coder/coder/tree/thomask33/10-09-add_scope_catalog_api
thomask33/10-09-add_token_scope_managementhttps://github.com/coder/coder/tree/thomask33/10-09-add_token_scope_management
Conversation 1 https://github.com/coder/coder/pull/20249
Commits 1 https://github.com/coder/coder/pull/20249/commits
Checks 0 https://github.com/coder/coder/pull/20249/checks
Files changed https://github.com/coder/coder/pull/20249/files
Please reload this pagehttps://github.com/coder/coder/pull/20249/files
feat: add scopes and resource allow-list to API tokens https://github.com/coder/coder/pull/20249/files#top
Show all changes 1 commit https://github.com/coder/coder/pull/20249/files
28c5e34 feat: support scoped token management UI ThomasK33 Sep 30, 2025 https://github.com/coder/coder/pull/20249/commits/28c5e34c09b22c7a09e9e37c2e78a4b880347cc8
Clear filters https://github.com/coder/coder/pull/20249/files
Please reload this pagehttps://github.com/coder/coder/pull/20249/files
Please reload this pagehttps://github.com/coder/coder/pull/20249/files
api.ts https://github.com/coder/coder/pull/20249/files#diff-cb6c440037bca08f3d4d11a6a815f5966986d0ecdf133267e9956efa5e6fa323
tokens.ts https://github.com/coder/coder/pull/20249/files#diff-da977884747d0ecaedc459413d442516d82584d7b06703db26c0fe5c3afaaf3d
MultiSelectCombobox.tsx https://github.com/coder/coder/pull/20249/files#diff-8682cafdd47f73bcf24321b753ac21f0db10f6880a4fdbd8be9c6341ba4fc094
CreateTokenForm.tsx https://github.com/coder/coder/pull/20249/files#diff-ad2a18b5f67b7ce14d15ce293aa2ba53f44f9472e71e077b7d2a7128b3c844d7
CreateTokenPage.test.tsx https://github.com/coder/coder/pull/20249/files#diff-570e726782a5a3ce89a83aa0855f16c4d0a6ae4ea07693461c7321d0484bae09
CreateTokenPage.tsx https://github.com/coder/coder/pull/20249/files#diff-57f768b77bc1b2f4769743218ec1ab199525be927fd4ad27afebab766d0fc6e4
allowListOptions.ts https://github.com/coder/coder/pull/20249/files#diff-b4df1f09bb9b7d495ef68245a991bec2cf7b497019ccf96fa257668850f10926
useAllowListResolver.ts https://github.com/coder/coder/pull/20249/files#diff-ea71c0e4b0cad86046948c71d83cded0ec95a43e95c0efa5bfc186e7f97ee151
utils.ts https://github.com/coder/coder/pull/20249/files#diff-263defee549cd2a9eb7991a93618859c497160bcd42ae5141e12b2450491b86a
EditTokenPage.test.tsx https://github.com/coder/coder/pull/20249/files#diff-0526a34ab39a9ef8f551cb8bf5ee86c74df7d98a315d151d935fe0e53ece30f7
EditTokenPage.tsx https://github.com/coder/coder/pull/20249/files#diff-ef5f3136e43b9c514edc5f2a5b4a647c487406ed809e4627f455b89d06175478
Layout.tsx https://github.com/coder/coder/pull/20249/files#diff-d7fe7d318d6ba45c905a317ec6f759bfbb52645ef2fb7276fbbb083cb0bf5cdd
TokensPageView.tsx https://github.com/coder/coder/pull/20249/files#diff-0806ba640e0b9d1bb699282947b646a603e50a7750f24d6b1385397a75b814fa
hooks.ts https://github.com/coder/coder/pull/20249/files#diff-7e46419355ebd49ca4d847a1234e0addf9f12a6fdbb42a7124780804a4744929
router.tsx https://github.com/coder/coder/pull/20249/files#diff-d89f36b8cdae08c93c3e7624c0c39db2472d5ed22ad7dffc17927dca57f4c045
site/src/api/api.tshttps://github.com/coder/coder/pull/20249/files#diff-cb6c440037bca08f3d4d11a6a815f5966986d0ecdf133267e9956efa5e6fa323
View file https://github.com/coder/coder/blob/28c5e34c09b22c7a09e9e37c2e78a4b880347cc8/site/src/api/api.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/20249/{{ revealButtonHref }}
https://github.com/coder/coder/pull/20249/files#diff-cb6c440037bca08f3d4d11a6a815f5966986d0ecdf133267e9956efa5e6fa323
https://github.com/coder/coder/pull/20249/files#diff-cb6c440037bca08f3d4d11a6a815f5966986d0ecdf133267e9956efa5e6fa323
https://github.com/coder/coder/pull/20249/files#diff-cb6c440037bca08f3d4d11a6a815f5966986d0ecdf133267e9956efa5e6fa323
https://github.com/coder/coder/pull/20249/files#diff-cb6c440037bca08f3d4d11a6a815f5966986d0ecdf133267e9956efa5e6fa323
site/src/api/queries/tokens.tshttps://github.com/coder/coder/pull/20249/files#diff-da977884747d0ecaedc459413d442516d82584d7b06703db26c0fe5c3afaaf3d
View file https://github.com/coder/coder/blob/28c5e34c09b22c7a09e9e37c2e78a4b880347cc8/site/src/api/queries/tokens.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/20249/{{ revealButtonHref }}
site/src/components/MultiSelectCombobox/MultiSelectCombobox.tsxhttps://github.com/coder/coder/pull/20249/files#diff-8682cafdd47f73bcf24321b753ac21f0db10f6880a4fdbd8be9c6341ba4fc094
View file https://github.com/coder/coder/blob/28c5e34c09b22c7a09e9e37c2e78a4b880347cc8/site/src/components/MultiSelectCombobox/MultiSelectCombobox.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/20249/{{ revealButtonHref }}
https://github.com/coder/coder/pull/20249/files#diff-8682cafdd47f73bcf24321b753ac21f0db10f6880a4fdbd8be9c6341ba4fc094
https://github.com/coder/coder/pull/20249/files#diff-8682cafdd47f73bcf24321b753ac21f0db10f6880a4fdbd8be9c6341ba4fc094
https://github.com/coder/coder/pull/20249/files#diff-8682cafdd47f73bcf24321b753ac21f0db10f6880a4fdbd8be9c6341ba4fc094
https://github.com/coder/coder/pull/20249/files#diff-8682cafdd47f73bcf24321b753ac21f0db10f6880a4fdbd8be9c6341ba4fc094
https://github.com/coder/coder/pull/20249/files#diff-8682cafdd47f73bcf24321b753ac21f0db10f6880a4fdbd8be9c6341ba4fc094
https://github.com/coder/coder/pull/20249/files#diff-8682cafdd47f73bcf24321b753ac21f0db10f6880a4fdbd8be9c6341ba4fc094
https://github.com/coder/coder/pull/20249/files#diff-8682cafdd47f73bcf24321b753ac21f0db10f6880a4fdbd8be9c6341ba4fc094
https://github.com/coder/coder/pull/20249/files#diff-8682cafdd47f73bcf24321b753ac21f0db10f6880a4fdbd8be9c6341ba4fc094
https://github.com/coder/coder/pull/20249/files#diff-8682cafdd47f73bcf24321b753ac21f0db10f6880a4fdbd8be9c6341ba4fc094
https://github.com/coder/coder/pull/20249/files#diff-8682cafdd47f73bcf24321b753ac21f0db10f6880a4fdbd8be9c6341ba4fc094
https://github.com/coder/coder/pull/20249/files#diff-8682cafdd47f73bcf24321b753ac21f0db10f6880a4fdbd8be9c6341ba4fc094
Please reload this pagehttps://github.com/coder/coder/pull/20249/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.