Title: Custom Role UI shows unassignable permissions · Issue #16456 · coder/coder · GitHub
Open Graph Title: Custom Role UI shows unassignable permissions · Issue #16456 · coder/coder
X Title: Custom Role UI shows unassignable permissions · Issue #16456 · coder/coder
Description: Is there an existing issue for this? I have searched the existing issues Current Behavior When adding permissions to a custom role in the Coder UI, there are 3 invalid permissions that display for workspace_dormant: application_connect, ...
Open Graph Description: Is there an existing issue for this? I have searched the existing issues Current Behavior When adding permissions to a custom role in the Coder UI, there are 3 invalid permissions that display for ...
X Description: Is there an existing issue for this? I have searched the existing issues Current Behavior When adding permissions to a custom role in the Coder UI, there are 3 invalid permissions that display for ...
Opengraph URL: https://github.com/coder/coder/issues/16456
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Custom Role UI shows unassignable permissions","articleBody":"### Is there an existing issue for this?\n\n- [x] I have searched the existing issues\n\n### Current Behavior\n\nWhen adding permissions to a custom role in the Coder UI, there are 3 invalid permissions that display for `workspace_dormant`: `application_connect`, `ssh`, & `start`. Selecting any of these permissions will cause the role to fail to build. In 2.18.5 it is an opaque error. In a 2.19 build it printed the error, which helped make it clear which permissions caused the failure state. These errors are also presented individually, causing me to have to perform iterative corrections to the permissions rather than a single correction pass.\n\n\u003cimg width=\"767\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/c2802dc4-275e-4e6e-82e9-0d393896b5eb\" />\n\n\u003cimg width=\"869\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/eaab7a13-34ac-44c3-81a2-c65cd001019b\" />\n\u003cimg width=\"852\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/52f42e7c-b62b-4c1b-89c9-10284acfe052\" />\n\u003cimg width=\"860\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/400ae5cc-28be-487d-b262-7db50d3f1cff\" />\n\n### Relevant Log Output\n\n```shell\nIn 2.18.5 the console shows the following error on the post to roles:\n\n{message: \"Failed to update role permissions\",…}\ndetail\n: \n\"org=\\\"e8a35c83-41ae-46e5-a140-236ac51989df\\\": invalid permission for action=\\\"application_connect\\\" type=\\\"workspace_dormant\\\", not allowed to grant this permission\"\nmessage\n: \n\"Failed to update role permissions\"\n```\n\n### Expected Behavior\n\nI would expect invalid permissions to not be presented as an option in the UI.\n\n### Steps to Reproduce\n\n1. Create a custom role on a Premium-licensed Coder instance.\n2. Click **Show advanced permissions**.\n3. For my test, I selected all of the top level permissions; however, it is sufficient to select all of the `workspace_dormant` permissions.\n4. Click **Create Role**\n5. Receive error.\n\n### Environment\n\n- Host OS:\n- Coder version:\n\n\n### Additional Context\n\n_No response_","author":{"url":"https://github.com/angrycub","@type":"Person","name":"angrycub"},"datePublished":"2025-02-05T17:43:12Z","url":"https://github.com/coder/coder/issues/16456"}
| 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:2045e5fd-0eae-2567-508b-6cfc63faa9fd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B960:35E323:D12CCB:125A541:6B043F77 |
| html-safe-nonce | 8e6ca2a277e91976d203ff0eef9a6028f922d512e4eeecfd71808b93bb5417b4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTYwOjM1RTMyMzpEMTJDQ0I6MTI1QTU0MTo2QjA0M0Y3NyIsInZpc2l0b3JfaWQiOiIxMjE2NTU4MzEwMjUwMjY2NDg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6e5dc6e03ac90c1ef5acbf1914c402693441ff944cce49fa37971e24906082f8 |
| hovercard-subject-tag | issue:2833576375 |
| 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/16456/issue_layout |
| twitter:image | https://opengraph.githubassets.com/79def71fb5d4fdd9d95fbef0472546e095e8d053a997a4bee50531e6ecadf27b/coder/coder/issues/16456 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/79def71fb5d4fdd9d95fbef0472546e095e8d053a997a4bee50531e6ecadf27b/coder/coder/issues/16456 |
| og:image:alt | Is there an existing issue for this? I have searched the existing issues Current Behavior When adding permissions to a custom role in the Coder UI, there are 3 invalid permissions that display for ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | angrycub |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| 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 | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width