Title: Subject construction: attach scopes and allow-list to requests · Issue #19851 · coder/coder · GitHub
Open Graph Title: Subject construction: attach scopes and allow-list to requests · Issue #19851 · coder/coder
X Title: Subject construction: attach scopes and allow-list to requests · Issue #19851 · coder/coder
Description: Description Update API key auth middleware to: Load scopes and allow_list from DB. Expand high-level scope names to low-level before rbac.ExpandableScope.Expand(). Attach the merged RBAC scope to rbac.Subject for OPA evaluation. Key file...
Open Graph Description: Description Update API key auth middleware to: Load scopes and allow_list from DB. Expand high-level scope names to low-level before rbac.ExpandableScope.Expand(). Attach the merged RBAC scope to r...
X Description: Description Update API key auth middleware to: Load scopes and allow_list from DB. Expand high-level scope names to low-level before rbac.ExpandableScope.Expand(). Attach the merged RBAC scope to r...
Opengraph URL: https://github.com/coder/coder/issues/19851
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Subject construction: attach scopes and allow-list to requests","articleBody":"Description\n\n- Update API key auth middleware to:\n- Load `scopes` and `allow_list` from DB.\n- Expand high-level scope names to low-level before `rbac.ExpandableScope.Expand()`.\n- Attach the merged RBAC scope to `rbac.Subject` for OPA evaluation.\n\nKey files/areas\n\n- `coderd/httpmw/apikey.go` (replace singular scope handling with slice + allow-list).\n- `coderd/rbac/authz.go` subject helpers as needed.\n\nAcceptance criteria\n\n- Existing endpoints continue to work for old keys.\n- New keys with limited scopes demonstrably restrict access (test endpoints).","author":{"url":"https://github.com/ThomasK33","@type":"Person","name":"ThomasK33"},"datePublished":"2025-09-17T14:05:08Z","url":"https://github.com/coder/coder/issues/19851"}
| 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/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bcb3265d-d7ce-9c42-4277-c2b2de9c8c10 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA0E:21AC3F:28FCF2A:33D898C:6B018359 |
| html-safe-nonce | 1c705d4fc2fb9c973c02e23e0d8584b8869cb70aef86a1ca81337985796721f9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTBFOjIxQUMzRjoyOEZDRjJBOjMzRDg5OEM6NkIwMTgzNTkiLCJ2aXNpdG9yX2lkIjoiNDIxMjQ3NDczNjA5MTc5OTkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7581161fe87699f91d9c5d171f0bf85d0f677ca5429e8dfcdd7555181b35f480 |
| hovercard-subject-tag | issue:3426465697 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/19851/issue_layout |
| twitter:image | https://opengraph.githubassets.com/269250fd6da0126b28576e5372255d47134c0133e07626f23d79a3288356fdcf/coder/coder/issues/19851 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/269250fd6da0126b28576e5372255d47134c0133e07626f23d79a3288356fdcf/coder/coder/issues/19851 |
| og:image:alt | Description Update API key auth middleware to: Load scopes and allow_list from DB. Expand high-level scope names to low-level before rbac.ExpandableScope.Expand(). Attach the merged RBAC scope to r... |
| 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-preview |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width