Title: Allow-list model and parsing · Issue #19850 · coder/coder · GitHub
Open Graph Title: Allow-list model and parsing · Issue #19850 · coder/coder
X Title: Allow-list model and parsing · Issue #19850 · coder/coder
Description: Description Support optional allow-lists that restrict the scope of application to specific resources. Accept values *:*,
Open Graph Description: Description Support optional allow-lists that restrict the scope of application to specific resources. Accept values *:*,
X Description: Description Support optional allow-lists that restrict the scope of application to specific resources. Accept values *:*, <resource_type>:*, and <resource_type>:<uuid>. Normalize/...
Opengraph URL: https://github.com/coder/coder/issues/19850
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow-list model and parsing","articleBody":"Description\n\n- Support optional allow-lists that restrict the scope of application to specific resources. Accept values `*:*`, `\u003cresource_type>:*`, and `\u003cresource_type>:\u003cuuid>`.\n- Normalize/validate on input; store as strings in `allow_list` column.\n\nProgress\n\n- PR #19748 (feat: scope allow_list to include `resource_type`) added a typed `{type,id}` representation in RBAC and updated `policy.rego` to enforce typed allow-lists, including wildcards `(*,*)` and `(type,*)`, with unit tests.\n\nRemaining work\n\n- Implement parsing/normalization from user-provided strings (e.g., `workspace:\u003cuuid>`, `template:*`, `*:*`) into the typed representation with validation and helpful errors.\n- Enforce size limits and deduplication; normalize wildcard forms.\n- Integrate parsing in API handlers and CLI/UI; persist normalized string form in DB.\n- Document the final format in admin and API docs.\n\nKey files/areas\n\n- Parsing/validation helpers in `coderd/rbac/` (new package or file, e.g., `allowlist.go`).\n- Reuse/refactor existing allow-list mechanics from workspace agent tokens where practical.\n\nAcceptance criteria\n\n- Unit tests cover parsing, normalization, wildcard handling, and invalid input rejection.\n- Large lists are rejected or capped by a sane limit (config or constant).\n","author":{"url":"https://github.com/ThomasK33","@type":"Person","name":"ThomasK33"},"datePublished":"2025-09-17T14:04:45Z","url":"https://github.com/coder/coder/issues/19850"}
| 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:7e758548-b941-c94d-2411-bde173b43078 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DCB6:76F02:22D6ED8:2C8D35F:6B017729 |
| html-safe-nonce | 60d58a90613dfc1d4b9e13dae175866cdc9118dccfc108a91115af5484483735 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0I2Ojc2RjAyOjIyRDZFRDg6MkM4RDM1Rjo2QjAxNzcyOSIsInZpc2l0b3JfaWQiOiI1NjQ2MjcwMjIzNjU4MDg4MjMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9554cf461ffdfccaba1b84cf351bfb835da78688ae3767fe7dd4c612b152e985 |
| hovercard-subject-tag | issue:3426463884 |
| 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/19850/issue_layout |
| twitter:image | https://opengraph.githubassets.com/353bc8736dd2a04bc3392587e6b6161a4a82c6bbaa5f87375962a642c91248ae/coder/coder/issues/19850 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/353bc8736dd2a04bc3392587e6b6161a4a82c6bbaa5f87375962a642c91248ae/coder/coder/issues/19850 |
| og:image:alt | Description Support optional allow-lists that restrict the scope of application to specific resources. Accept values *:*, |
| 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