Title: OPA/Policy: ensure scope and allow-list checks · Issue #19852 · coder/coder · GitHub
Open Graph Title: OPA/Policy: ensure scope and allow-list checks · Issue #19852 · coder/coder
X Title: OPA/Policy: ensure scope and allow-list checks · Issue #19852 · coder/coder
Description: Description Confirm and, if necessary, adjust coderd/rbac/policy.rego to require both role allow and scope allow. Ensure allow-list membership is enforced for reads/updates/deletes, but not for creates (no ID at creation time), matching ...
Open Graph Description: Description Confirm and, if necessary, adjust coderd/rbac/policy.rego to require both role allow and scope allow. Ensure allow-list membership is enforced for reads/updates/deletes, but not for cre...
X Description: Description Confirm and, if necessary, adjust coderd/rbac/policy.rego to require both role allow and scope allow. Ensure allow-list membership is enforced for reads/updates/deletes, but not for cre...
Opengraph URL: https://github.com/coder/coder/issues/19852
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OPA/Policy: ensure scope and allow-list checks","articleBody":"Description\n\n- Confirm and, if necessary, adjust `coderd/rbac/policy.rego` to require both role allow and scope allow. Ensure allow-list membership is enforced for reads/updates/deletes, but not for creates (no ID at creation time), matching the RFC.\n\nProgress\n\n- PR #19748 updated `policy.rego` and RBAC to a typed `{type,id}` allow-list, added wildcard handling (`(*,*)`, `(type,*)`), and included unit tests (`TestScopeAllowList`).\n\nRemaining work\n\n- Explicitly verify and add tests that create operations bypass allow-list ID checks while read/update/delete enforce membership.\n- Add deny-by-default tests when scope is missing; cover list endpoints where applicable.\n- Ensure all subject construction paths now provide typed allow-lists; update docs/README for policy changes.\n\nKey files/areas\n\n- `coderd/rbac/policy.rego` and unit tests.\n\nAcceptance criteria\n\n- Policy tests prove deny-by-default when scope is missing and allow-list excludes the resource.\n- Create operations bypass allow-list ID checks; other verbs require matching IDs.","author":{"url":"https://github.com/ThomasK33","@type":"Person","name":"ThomasK33"},"datePublished":"2025-09-17T14:05:34Z","url":"https://github.com/coder/coder/issues/19852"}
| 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:2b835668-4582-fe49-9cf3-80aa3d223b64 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE32:2EF149:53E7F0:6DF9D2:6B017A2A |
| html-safe-nonce | acc8fee87312e171d80cc62c97b074ddfc5ea7a1108d3108847c23c092ecd73f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTMyOjJFRjE0OTo1M0U3RjA6NkRGOUQyOjZCMDE3QTJBIiwidmlzaXRvcl9pZCI6IjQ1MTk1NzI1MTM3NTUzMzExMTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 56068e74e3cbd679fce1fbe84a3a0b3d67211707d4c99ad3597b14871fa874b0 |
| hovercard-subject-tag | issue:3426467338 |
| 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/19852/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d87edf38c6a7e7ad7559607f9425860f131fb137e668aac51daeac2089f41031/coder/coder/issues/19852 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d87edf38c6a7e7ad7559607f9425860f131fb137e668aac51daeac2089f41031/coder/coder/issues/19852 |
| og:image:alt | Description Confirm and, if necessary, adjust coderd/rbac/policy.rego to require both role allow and scope allow. Ensure allow-list membership is enforced for reads/updates/deletes, but not for cre... |
| 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 | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width