Title: Ability to disable unprivileged users from canceling workspace builds at the template level? · Issue #5035 · coder/coder · GitHub
Open Graph Title: Ability to disable unprivileged users from canceling workspace builds at the template level? · Issue #5035 · coder/coder
X Title: Ability to disable unprivileged users from canceling workspace builds at the template level? · Issue #5035 · coder/coder
Description: Our workspace templates use some Terraform tricks that we believe sometimes cause workspaces to be left in a bad state if a user clicks the "Cancel" button during a start or stop workspace build such that a subsequent "start" build alway...
Open Graph Description: Our workspace templates use some Terraform tricks that we believe sometimes cause workspaces to be left in a bad state if a user clicks the "Cancel" button during a start or stop workspace build su...
X Description: Our workspace templates use some Terraform tricks that we believe sometimes cause workspaces to be left in a bad state if a user clicks the "Cancel" button during a start or stop workspac...
Opengraph URL: https://github.com/coder/coder/issues/5035
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ability to disable unprivileged users from canceling workspace builds at the template level?","articleBody":"Our workspace templates use some Terraform tricks that we believe sometimes cause workspaces to be left in a bad state if a user clicks the \"Cancel\" button during a start or stop workspace build such that a subsequent \"start\" build always fails until an admin can manually fix the workspace's resources outside of Coder and Terraform.\r\n\r\nThis has happened a few times when a user thinks their workspace build is stuck and isn't familiar with how to access the workspace build logs on the Coder website or how to interpret the Terraform output to understand its progress, so they click the \"Cancel\" button thinking that a subsequent retry may be successful. I think the new workspace build progress bar may help users better understand how long a workspace build normally takes, but I also understand it may not always be able to provide that information to users (e.g. https://github.com/coder/coder/issues/4676).\r\n\r\nIdeally we could make our workspace templates robust to workspace build interruptions, but I think our use cases aren't really supported by Terraform and the provider plugin we use at the moment, and I'm nervous that there may always be aspects of any off-the-shelf Terraform provider plugin or external state that we can't control that would make Coder workspace build cancellations for particular templates/situations unsafe.\r\n\r\nWe're intrigued about the conversations around adding support to Coder for other workspace provisioners like Pulumi (https://github.com/coder/coder/issues/4528) which might support our use cases better than Terraform, but we're also nervous that Pulumi may not be any safer with respect to workspace build interruptions: https://www.pulumi.com/docs/reference/cli/pulumi_cancel/\r\n> This command cancels the update currently being applied to a stack if any exists. Note that this operation is very dangerous, and may leave the stack in an inconsistent state if a resource operation was pending when the update was canceled.\r\n\r\nWhat do you all think about introducing a configuration option for workspace templates that would allow template admins to disable the ability for unprivileged users to cancel workspace builds? In our case we'd rather force users to wait for their workspace build to reach a natural conclusion and, if the build really is stuck, to reach out to an admin who would still have the power to cancel it if that's the best course of action.","author":{"url":"https://github.com/kconley-sq","@type":"Person","name":"kconley-sq"},"datePublished":"2022-11-11T19:03:48Z","url":"https://github.com/coder/coder/issues/5035"}
| 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:ad14d815-036a-05da-1ba3-da2f9e0a3a5e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E7A2:24645:5B1446:77F673:6B019FE5 |
| html-safe-nonce | cfe6e301f21f55446cf8fcaaf14ded939239fadb829eb16bfc8887614dd4309f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0EyOjI0NjQ1OjVCMTQ0Njo3N0Y2NzM6NkIwMTlGRTUiLCJ2aXNpdG9yX2lkIjoiNTI5MTg2MDE5MTA5MDk0MTkyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4892251189b0013c6e244cd2f39eb52cb4cf6e18ed01528dbb1c19d2132be5f0 |
| hovercard-subject-tag | issue:1445893500 |
| 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/5035/issue_layout |
| twitter:image | https://opengraph.githubassets.com/596dd4536f45d8ba403fd9f59f42873d6a02850cb1c6d98f0577ffcea2b4758d/coder/coder/issues/5035 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/596dd4536f45d8ba403fd9f59f42873d6a02850cb1c6d98f0577ffcea2b4758d/coder/coder/issues/5035 |
| og:image:alt | Our workspace templates use some Terraform tricks that we believe sometimes cause workspaces to be left in a bad state if a user clicks the "Cancel" button during a start or stop workspace build su... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kconley-sq |
| 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