| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:7e51b812-2142-9567-3000-c36d7c1cf1f2 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9080:14700E:212482B:29FCEF5:6B0171FB |
| html-safe-nonce | 232cf6c646b3919d72d9d483457698dd23f8436c94f2a9a6208261e9717d840c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDgwOjE0NzAwRToyMTI0ODJCOjI5RkNFRjU6NkIwMTcxRkIiLCJ2aXNpdG9yX2lkIjoiNTg5MjIyNDgzMjk4ODM0NDgyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 91a037177ed5b1aa6e48bbb20637e88021af14813e836f2d2df9608b1d058330 |
| hovercard-subject-tag | pull_request:2941342103 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/coder/coder/20444/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/fddd3efd9e847f97e37bee3600c21117bd164253eb03e523628f8aced86ae9b1/coder/coder/pull/20444 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fddd3efd9e847f97e37bee3600c21117bd164253eb03e523628f8aced86ae9b1/coder/coder/pull/20444 |
| og:image:alt | Add Database Constraints for API Key Validity
This PR adds database-level constraints to ensure API keys have valid expiration times and lifetimes:
Adds api_keys_expires_at_after_created constrain... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ThomasK33 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-cache |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/coder/coder/pull/20444#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F20444 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F20444 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=coder%2Fcoder |
| Reload | https://github.com/coder/coder/pull/20444 |
| Reload | https://github.com/coder/coder/pull/20444 |
| Reload | https://github.com/coder/coder/pull/20444 |
| coder | https://github.com/coder |
| coder | https://github.com/coder/coder |
| Code | https://github.com/coder/coder |
| Issues320 (320) | https://github.com/coder/coder/issues |
| Pull requests470 (470) | https://github.com/coder/coder/pulls |
| Discussions | https://github.com/coder/coder/discussions |
| Actions | https://github.com/coder/coder/actions |
| Projects | https://github.com/coder/coder/projects |
| Security and quality49 (49) | https://github.com/coder/coder/security |
| Insights | https://github.com/coder/coder/insights |
| https://github.com/coder/coder |
| ThomasK33 | https://github.com/ThomasK33 |
| main | https://github.com/coder/coder/tree/main |
| thomask33/10-23-enforce_api_key_time_checks | https://github.com/coder/coder/tree/thomask33/10-23-enforce_api_key_time_checks |
| Conversation | https://github.com/coder/coder/pull/20444 |
| Commits1 (1) | https://github.com/coder/coder/pull/20444/commits |
| Checks | https://github.com/coder/coder/pull/20444/checks |
| Files changed | https://github.com/coder/coder/pull/20444/files |
| feat: add database constraints for API key expiration and lifetime | https://github.com/coder/coder/pull/20444#top |
| ThomasK33 | https://github.com/ThomasK33 |
| main | https://github.com/coder/coder/tree/main |
| thomask33/10-23-enforce_api_key_time_checks | https://github.com/coder/coder/tree/thomask33/10-23-enforce_api_key_time_checks |
|
| https://github.com/ThomasK33 |
| ThomasK33 | https://github.com/ThomasK33 |
| Oct 23, 2025 | https://github.com/coder/coder/pull/20444#issue-3545697833 |
| Please reload this page | https://github.com/coder/coder/pull/20444 |
|
feat: add allow_list to resource-scoped API tokens
#19964
| https://github.com/coder/coder/pull/19964 |
|
feat: add allow list to API keys
#19972
| https://github.com/coder/coder/pull/19972 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
| ThomasK33 | https://github.com/ThomasK33 |
| Oct 23, 2025 | https://github.com/coder/coder/pull/20444#event-20460638043 |
|
feat: add API endpoint to update token API keys
#19983
| https://github.com/coder/coder/pull/19983 |
|
feat: add scoped token support to CLI
#19985
| https://github.com/coder/coder/pull/19985 |
|
feat: add scope enforcement metrics to RBAC authorizer
#19991
| https://github.com/coder/coder/pull/19991 |
|
feat: add API key metadata to audit logs
#19996
| https://github.com/coder/coder/pull/19996 |
|
fix: improve RBAC scope allow list handling for create actions
#20008
| https://github.com/coder/coder/pull/20008 |
|
feat: add legacy API key scope compatibility
#20021
| https://github.com/coder/coder/pull/20021 |
|
refactor: add wildcard scope entries for API key scopes
#20032
| https://github.com/coder/coder/pull/20032 |
|
feat: improve RBAC resource ID matching and structured allowlist targets
#20035
| https://github.com/coder/coder/pull/20035 |
|
feat: replace ExternalAPIKeyScopes with detailed ScopeCatalog
#20248
| https://github.com/coder/coder/pull/20248 |
|
feat: add scopes and resource allow-list to API tokens
#20249
| https://github.com/coder/coder/pull/20249 |
| https://github.com/ThomasK33 |
|
| https://github.com/apps/graphite-app |
| ThomasK33 | https://github.com/ThomasK33 |
| Oct 23, 2025 | https://github.com/coder/coder/pull/20444#issuecomment-3438143991 |
| Please reload this page | https://github.com/coder/coder/pull/20444 |
| feat: add database constraints for API key expiration and lifetime #20444 | https://github.com/coder/coder/pull/20444 |
| https://app.graphite.com/github/pr/coder/coder/20444?utm_source=stack-comment-icon |
| (View in Graphite) | https://app.graphite.com/github/pr/coder/coder/20444?utm_source=stack-comment-view-in-graphite |
| feat: add allow list to API keys #19972 | https://github.com/coder/coder/pull/19972 |
| https://app.graphite.com/github/pr/coder/coder/19972?utm_source=stack-comment-icon |
| #19983 | https://github.com/coder/coder/pull/19983 |
| https://app.graphite.com/github/pr/coder/coder/19983?utm_source=stack-comment-icon |
| #19985 | https://github.com/coder/coder/pull/19985 |
| https://app.graphite.com/github/pr/coder/coder/19985?utm_source=stack-comment-icon |
| feat: add allow_list to resource-scoped API tokens #19964 | https://github.com/coder/coder/pull/19964 |
| https://app.graphite.com/github/pr/coder/coder/19964?utm_source=stack-comment-icon |
| refactor: add wildcard scope entries for API key scopes #20032 | https://github.com/coder/coder/pull/20032 |
| https://app.graphite.com/github/pr/coder/coder/20032?utm_source=stack-comment-icon |
| Graphite | https://graphite.dev?utm-source=stack-comment |
| stacking | https://stacking.dev/?utm_source=stack-comment |
| Please reload this page | https://github.com/coder/coder/pull/20444 |
| https://github.com/ThomasK33 |
| ThomasK33 | https://github.com/ThomasK33 |
|
Oct 23, 2025
| https://github.com/coder/coder/pull/20444#ref-pullrequest-3540883206 |
|
feat: add default resource types to composite API key scopes
#20412
| https://github.com/coder/coder/pull/20412 |
| https://github.com/ThomasK33 |
| ThomasK33 | https://github.com/ThomasK33 |
| force-pushed | https://github.com/coder/coder/compare/18f8a4e87fe2fb943b758ec6de5e612f7fb35305..9efa897810ef93c083a3150d7ddd51e014e5fad2 |
| 18f8a4e | https://github.com/coder/coder/commit/18f8a4e87fe2fb943b758ec6de5e612f7fb35305 |
| 9efa897 | https://github.com/coder/coder/commit/9efa897810ef93c083a3150d7ddd51e014e5fad2 |
|
Compare
| https://github.com/coder/coder/compare/18f8a4e87fe2fb943b758ec6de5e612f7fb35305..9efa897810ef93c083a3150d7ddd51e014e5fad2 |
| October 24, 2025 10:23 | https://github.com/coder/coder/pull/20444#event-20479755212 |
| https://github.com/ThomasK33 |
| ThomasK33 | https://github.com/ThomasK33 |
| October 24, 2025 11:33 | https://github.com/coder/coder/pull/20444#event-20481343797 |
| https://github.com/ThomasK33 |
| ThomasK33 | https://github.com/ThomasK33 |
| force-pushed | https://github.com/coder/coder/compare/9efa897810ef93c083a3150d7ddd51e014e5fad2..c853e86c07c59d7583fe32feeea54e4dc72db15e |
| 9efa897 | https://github.com/coder/coder/commit/9efa897810ef93c083a3150d7ddd51e014e5fad2 |
| c853e86 | https://github.com/coder/coder/commit/c853e86c07c59d7583fe32feeea54e4dc72db15e |
|
Compare
| https://github.com/coder/coder/compare/9efa897810ef93c083a3150d7ddd51e014e5fad2..c853e86c07c59d7583fe32feeea54e4dc72db15e |
| October 24, 2025 11:35 | https://github.com/coder/coder/pull/20444#event-20481379402 |
| https://github.com/ThomasK33 |
| ThomasK33 | https://github.com/ThomasK33 |
| force-pushed | https://github.com/coder/coder/compare/42451c13ecaa86eb4fd392f766ad03334c5fad14..f684831f56b074516295847bdc8a6ccc9e74c4bb |
| 42451c1 | https://github.com/coder/coder/commit/42451c13ecaa86eb4fd392f766ad03334c5fad14 |
| f684831 | https://github.com/coder/coder/commit/f684831f56b074516295847bdc8a6ccc9e74c4bb |
|
Compare
| https://github.com/coder/coder/compare/42451c13ecaa86eb4fd392f766ad03334c5fad14..f684831f56b074516295847bdc8a6ccc9e74c4bb |
| October 24, 2025 11:35 | https://github.com/coder/coder/pull/20444#event-20481379528 |
| https://github.com/apps/graphite-app |
| graphite-app | https://github.com/apps/graphite-app |
| October 24, 2025 11:36 | https://github.com/coder/coder/pull/20444#event-20481387265 |
| https://github.com/ThomasK33 |
| ThomasK33 | https://github.com/ThomasK33 |
| force-pushed | https://github.com/coder/coder/compare/ed96ae75630d48c3f0b6e42a3cf7cf2905c74f98..653cb072e26a158b4c57e20654b037a5364297e1 |
| ed96ae7 | https://github.com/coder/coder/commit/ed96ae75630d48c3f0b6e42a3cf7cf2905c74f98 |
| 653cb07 | https://github.com/coder/coder/commit/653cb072e26a158b4c57e20654b037a5364297e1 |
|
Compare
| https://github.com/coder/coder/compare/ed96ae75630d48c3f0b6e42a3cf7cf2905c74f98..653cb072e26a158b4c57e20654b037a5364297e1 |
| October 24, 2025 16:45 | https://github.com/coder/coder/pull/20444#event-20488785664 |
| https://github.com/ThomasK33 |
| ThomasK33 | https://github.com/ThomasK33 |
| October 24, 2025 16:46 | https://github.com/coder/coder/pull/20444#event-20488809029 |
| https://github.com/ThomasK33 |
| ThomasK33 | https://github.com/ThomasK33 |
| aslilac | https://github.com/aslilac |
| buenos-nachos | https://github.com/buenos-nachos |
| code owners | https://github.com/coder/coder/blob/7bad7e35ae947cb3a0c7e8276fc221944f793334/CODEOWNERS#L21 |
| October 24, 2025 16:46 | https://github.com/coder/coder/pull/20444#event-20488809162 |
| https://github.com/ThomasK33 |
| ThomasK33 | https://github.com/ThomasK33 |
| force-pushed | https://github.com/coder/coder/compare/653cb072e26a158b4c57e20654b037a5364297e1..3090b36ae8c406cec24dc9d9ea459dd8b3bbc5fa |
| 653cb07 | https://github.com/coder/coder/commit/653cb072e26a158b4c57e20654b037a5364297e1 |
| 3090b36 | https://github.com/coder/coder/commit/3090b36ae8c406cec24dc9d9ea459dd8b3bbc5fa |
|
Compare
| https://github.com/coder/coder/compare/653cb072e26a158b4c57e20654b037a5364297e1..3090b36ae8c406cec24dc9d9ea459dd8b3bbc5fa |
| October 26, 2025 09:32 | https://github.com/coder/coder/pull/20444#event-20508094674 |
| https://github.com/ThomasK33 |
| ThomasK33 | https://github.com/ThomasK33 |
| force-pushed | https://github.com/coder/coder/compare/47af1e4422cc8b3f3a94ec26d803e4654a188ab4..965240ff7b4db5a4f6a44d33f7dd716c9b6c2748 |
| 47af1e4 | https://github.com/coder/coder/commit/47af1e4422cc8b3f3a94ec26d803e4654a188ab4 |
| 965240f | https://github.com/coder/coder/commit/965240ff7b4db5a4f6a44d33f7dd716c9b6c2748 |
|
Compare
| https://github.com/coder/coder/compare/47af1e4422cc8b3f3a94ec26d803e4654a188ab4..965240ff7b4db5a4f6a44d33f7dd716c9b6c2748 |
| October 27, 2025 18:15 | https://github.com/coder/coder/pull/20444#event-20532832106 |
| https://github.com/aslilac |
| aslilac | https://github.com/aslilac |
| aslilac | https://github.com/aslilac |
| buenos-nachos | https://github.com/buenos-nachos |
| October 28, 2025 00:13 | https://github.com/coder/coder/pull/20444#event-20539234999 |
| https://github.com/ThomasK33 |
| ThomasK33 | https://github.com/ThomasK33 |
| force-pushed | https://github.com/coder/coder/compare/965240ff7b4db5a4f6a44d33f7dd716c9b6c2748..a8fd73e5ae3e8fbf75861ff8a2dee90eaac057f8 |
| 965240f | https://github.com/coder/coder/commit/965240ff7b4db5a4f6a44d33f7dd716c9b6c2748 |
| a8fd73e | https://github.com/coder/coder/commit/a8fd73e5ae3e8fbf75861ff8a2dee90eaac057f8 |
|
Compare
| https://github.com/coder/coder/compare/965240ff7b4db5a4f6a44d33f7dd716c9b6c2748..a8fd73e5ae3e8fbf75861ff8a2dee90eaac057f8 |
| October 28, 2025 08:08 | https://github.com/coder/coder/pull/20444#event-20546106102 |
|
| https://github.com/ThomasK33 |
| fix: enforce API key lifetime and expiry constraints | https://github.com/coder/coder/pull/20444/commits/cfe60ff58ca526c75fcf61fdb943294324d20b07 |
| cfe60ff | https://github.com/coder/coder/pull/20444/commits/cfe60ff58ca526c75fcf61fdb943294324d20b07 |
| https://github.com/ThomasK33 |
| ThomasK33 | https://github.com/ThomasK33 |
| force-pushed | https://github.com/coder/coder/compare/a8fd73e5ae3e8fbf75861ff8a2dee90eaac057f8..cfe60ff58ca526c75fcf61fdb943294324d20b07 |
| a8fd73e | https://github.com/coder/coder/commit/a8fd73e5ae3e8fbf75861ff8a2dee90eaac057f8 |
| cfe60ff | https://github.com/coder/coder/commit/cfe60ff58ca526c75fcf61fdb943294324d20b07 |
|
Compare
| https://github.com/coder/coder/compare/a8fd73e5ae3e8fbf75861ff8a2dee90eaac057f8..cfe60ff58ca526c75fcf61fdb943294324d20b07 |
| October 28, 2025 13:48 | https://github.com/coder/coder/pull/20444#event-20554497559 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
|
stale
| https://github.com/coder/coder/issues?q=state%3Aopen%20label%3Astale |
|
stale
| https://github.com/coder/coder/issues?q=state%3Aopen%20label%3Astale |
| Nov 5, 2025 | https://github.com/coder/coder/pull/20444#event-20715319664 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
|
stale
| https://github.com/coder/coder/issues?q=state%3Aopen%20label%3Astale |
| Nov 17, 2025 | https://github.com/coder/coder/pull/20444#event-20975492144 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
| Nov 20, 2025 | https://github.com/coder/coder/pull/20444#event-21055959822 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
| April 29, 2026 00:24 | https://github.com/coder/coder/pull/20444#event-24970487164 |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F20444 |
| Please reload this page | https://github.com/coder/coder/pull/20444 |
|
| https://github.com/ThomasK33 |
|
ThomasK33
| https://github.com/ThomasK33 |
|
stale
| https://github.com/coder/coder/issues?q=state%3Aopen%20label%3Astale |
| Please reload this page | https://github.com/coder/coder/pull/20444 |
|
| https://github.com/ThomasK33 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |