Title: Built-in low-level scope catalog (resource:action) · Issue #19847 · coder/coder · GitHub
Open Graph Title: Built-in low-level scope catalog (resource:action) · Issue #19847 · coder/coder
X Title: Built-in low-level scope catalog (resource:action) · Issue #19847 · coder/coder
Description: Description Derive low-level API key scope names directly from policy.RBACPermissions (coderd/rbac/policy/policy.go). For each resource’s allowed actions, expose
Open Graph Description: Description Derive low-level API key scope names directly from policy.RBACPermissions (coderd/rbac/policy/policy.go). For each resource’s allowed actions, expose
X Description: Description Derive low-level API key scope names directly from policy.RBACPermissions (coderd/rbac/policy/policy.go). For each resource’s allowed actions, expose <resource>:<action> sco...
Opengraph URL: https://github.com/coder/coder/issues/19847
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Built-in low-level scope catalog (resource:action)","articleBody":"Description\n\n- Derive low-level API key scope names directly from `policy.RBACPermissions` (coderd/rbac/policy/policy.go). For each resource’s allowed actions, expose `\u003cresource>:\u003caction>` scope names (e.g., `template:use`, `workspace:start`, `workspace:ssh`, `api_key:create`).\n- Introduce a collection of public low-level scope names that are exposed via an API endpoint for discovery and request by users/clients.\n- Support internal-only low-level scopes that are not exposed via the public catalog and cannot be requested by users, but may be attached by the system where needed.\n\nKey files/areas\n\n- `coderd/rbac/policy/policy.go` (source of truth: `RBACPermissions` and `policy.Action*`).\n- `coderd/rbac/scopes.go` (expansion logic and mapping from scope string → RBAC permissions).\n- API surface to list public scope names (e.g., handler under `coderd/` and OpenAPI docs) and validation in token creation to allow only public names.\n\nAcceptance criteria\n\n- Table-driven tests validate that for every `\u003cresource>:\u003caction>` pair in `RBACPermissions`, if marked public, the corresponding scope exists and expands to the expected `rbac.Scope.Site` permissions.\n- No org-level permissions present in these expansions.\n- Public listing endpoint returns only public low-level scopes; internal-only scopes are not listed and cannot be requested (token creation with internal-only scope is rejected).","author":{"url":"https://github.com/ThomasK33","@type":"Person","name":"ThomasK33"},"datePublished":"2025-09-17T14:02:07Z","url":"https://github.com/coder/coder/issues/19847"}
| 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:02dd8d91-2e4f-9ccb-fc55-c6aad581cf74 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D9E0:3A73AA:1412CF1:19639B4:6B016406 |
| html-safe-nonce | c554365f57048059c51bd2218893e7b40c2bbc7cb9b5525a01eded0304f5c5d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUUwOjNBNzNBQToxNDEyQ0YxOjE5NjM5QjQ6NkIwMTY0MDYiLCJ2aXNpdG9yX2lkIjoiMTE5MDc3ODMxODgxMTY1MzEyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 53741c4af4076f6625d7d5014e8aa7a1a806a089117b0c42358ef4049ea9ce65 |
| hovercard-subject-tag | issue:3426453566 |
| 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/19847/issue_layout |
| twitter:image | https://opengraph.githubassets.com/85394646b3c117b846a9150d2740f7e578996667e608deb70cc83bc64500524c/coder/coder/issues/19847 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/85394646b3c117b846a9150d2740f7e578996667e608deb70cc83bc64500524c/coder/coder/issues/19847 |
| og:image:alt | Description Derive low-level API key scope names directly from policy.RBACPermissions (coderd/rbac/policy/policy.go). For each resource’s allowed actions, expose |
| 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