René's URL Explorer Experiment


Title: Build-time check: DB enum contains all RBAC scopes · Issue #19846 · coder/coder · GitHub

Open Graph Title: Build-time check: DB enum contains all RBAC scopes · Issue #19846 · coder/coder

X Title: Build-time check: DB enum contains all RBAC scopes · Issue #19846 · coder/coder

Description: Description Add a build-time script that compiles the list of all available : mappings from policy.RBACPermissions and verifies each exists in the api_key_scope enum in coderd/database/dump.sql. If all are present, exit...

Open Graph Description: Description Add a build-time script that compiles the list of all available : mappings from policy.RBACPermissions and verifies each exists in the api_key_scope enum in coderd/dat...

X Description: Description Add a build-time script that compiles the list of all available <resource>:<action> mappings from policy.RBACPermissions and verifies each exists in the api_key_scope enum i...

Opengraph URL: https://github.com/coder/coder/issues/19846

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Build-time check: DB enum contains all RBAC scopes","articleBody":"Description\n\n- Add a build-time script that compiles the list of all available `\u003cresource>:\u003caction>` mappings from `policy.RBACPermissions` and verifies each exists in the `api_key_scope` enum in `coderd/database/dump.sql`.\n- If all are present, exit 0. If any are missing, exit 1 and print a clear message:\n  - Which scopes are missing.\n  - Instruct to add a DB migration to extend the `api_key_scope` enum with those values.\n  - Remind to decide whether each new scope is public (exposed in the catalog) or internal-only.\n- Implement immediately after DB migrations are in place, so CI fails fast when RBAC evolves.\n\nKey files/areas\n\n- `coderd/rbac/policy/policy.go` (source for `\u003cresource>:\u003caction>` list via `RBACPermissions`).\n- `coderd/database/dump.sql` (authoritative enum definition used by sqlc and migrations).\n- New script/tool (e.g., `tools/check-scopes/` Go cmd or `scripts/check_scopes.go`).\n- CI/Makefile integration (e.g., `make check-scopes` and include in `make lint` or PR checks).\n\nAcceptance criteria\n\n- Running the check locally and in CI passes when enum includes all current RBAC `\u003cresource>:\u003caction>` values.\n- When RBACPermissions gains a new action or resource, the check fails with actionable output until a migration adds the enum value and a decision is made regarding public catalog exposure.\n- Document how to run/fix in `CONTRIBUTING.md` or a short `README` in the tool directory.","author":{"url":"https://github.com/ThomasK33","@type":"Person","name":"ThomasK33"},"datePublished":"2025-09-17T13:59:41Z","url":"https://github.com/coder/coder/issues/19846"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b109146d-c957-06af-b1a9-589b77b01e1f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCB72:1AE20C:22C6E82:2BFDEC7:6B017739
html-safe-nonce601b7251070a462b8057199c699e29252399b983fdb463f6af198f140dc9a8db
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjcyOjFBRTIwQzoyMkM2RTgyOjJCRkRFQzc6NkIwMTc3MzkiLCJ2aXNpdG9yX2lkIjoiNDc3MTAwMDc4ODMyMTQwMDYzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac675534d3626c16e77737e9e78169173f24e7624598bfa791dd92a3a0096615bb
hovercard-subject-tagissue:3426443059
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/19846/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a927b4fbafed589f8d8b1f942ffaf414d7f0fb6363da30d666b5b2fd34d6482b/coder/coder/issues/19846
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a927b4fbafed589f8d8b1f942ffaf414d7f0fb6363da30d666b5b2fd34d6482b/coder/coder/issues/19846
og:image:altDescription Add a build-time script that compiles the list of all available : mappings from policy.RBACPermissions and verifies each exists in the api_key_scope enum in coderd/dat...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameThomasK33
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
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
disable-turbofalse
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
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/coder/issues/19846#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F19846
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%2Fissues%2F19846
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/issues/19846
Reloadhttps://github.com/coder/coder/issues/19846
Reloadhttps://github.com/coder/coder/issues/19846
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
https://github.com/coder/coder
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/19846
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/19846
Chorehttps://github.com/coder/coder/issues?q=type:"Chore"
#19862https://github.com/coder/coder/pull/19862
Build-time check: DB enum contains all RBAC scopeshttps://github.com/coder/coder/issues/19846#top
#19862https://github.com/coder/coder/pull/19862
https://github.com/ThomasK33
https://github.com/ThomasK33
ThomasK33https://github.com/ThomasK33
on Sep 17, 2025https://github.com/coder/coder/issues/19846#issue-3426443059
ThomasK33https://github.com/ThomasK33
on Sep 17, 2025https://github.com/coder/coder/issues/19846#event-19751388357
API Key Scopes — Implementation Epic #19842https://github.com/coder/coder/issues/19842
ThomasK33https://github.com/ThomasK33
on Sep 17, 2025https://github.com/coder/coder/issues/19846#event-19751408175
Database Migrations: scopes array + typed allow-list #19845https://github.com/coder/coder/issues/19845
ThomasK33https://github.com/ThomasK33
on Sep 17, 2025https://github.com/coder/coder/issues/19846#event-19754986035
ThomasK33https://github.com/ThomasK33
feat: add lint check for API key scope enum completeness #19862https://github.com/coder/coder/pull/19862
on Sep 18, 2025https://github.com/coder/coder/issues/19846#event-19772655492
matifalihttps://github.com/matifali
Chorehttps://github.com/coder/coder/issues?q=type:"Chore"
on Sep 22, 2025https://github.com/coder/coder/issues/19846#event-19833434496
ThomasK33https://github.com/ThomasK33
completedhttps://github.com/coder/coder/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#19862https://github.com/coder/coder/pull/19862
on Sep 24, 2025https://github.com/coder/coder/issues/19846#event-19896689138
ThomasK33https://github.com/ThomasK33
on Sep 24, 2025https://github.com/coder/coder/issues/19846#event-19896689273
feat: add lint check for API key scope enum completeness (#19862)https://github.com/coder/coder/commit/acc0890dce3e0db661fec480187ed64bdbea9fdd
#19862https://github.com/coder/coder/pull/19862
https://docs.github.com/articles/closing-issues-via-commit-messages
acc0890https://github.com/coder/coder/commit/acc0890dce3e0db661fec480187ed64bdbea9fdd
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/coder/issues/19846
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/coder/issues/19846
ThomasK33https://github.com/ThomasK33
Chorehttps://github.com/coder/coder/issues?q=type:"Chore"
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.