René's URL Explorer Experiment


Title: Safe way to edit workspace parameters via dashboard and CLI · Issue #802 · coder/coder · GitHub

Open Graph Title: Safe way to edit workspace parameters via dashboard and CLI · Issue #802 · coder/coder

X Title: Safe way to edit workspace parameters via dashboard and CLI · Issue #802 · coder/coder

Description: edits by @bpmct: Problem statement In Coder Classic, some parameters for workspaces are editable after the workspace is created, providing a helpful utility to users. Examples of these parameters are: image cpu allocation memory allocati...

Open Graph Description: edits by @bpmct: Problem statement In Coder Classic, some parameters for workspaces are editable after the workspace is created, providing a helpful utility to users. Examples of these parameters a...

X Description: edits by @bpmct: Problem statement In Coder Classic, some parameters for workspaces are editable after the workspace is created, providing a helpful utility to users. Examples of these parameters a...

Opengraph URL: https://github.com/coder/coder/issues/802

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Safe way to edit workspace parameters via dashboard and CLI","articleBody":"edits by @bpmct:\r\n\r\n## Problem statement \r\n\r\nIn Coder Classic, some parameters for workspaces are editable after the workspace is created, providing a helpful utility to users. Examples of these parameters are:\r\n- image\r\n- cpu allocation\r\n- memory allocation\r\n- disk size\r\n\r\nSome parameters have specific rules when editing:\r\n\r\n- disk size can only be increased, not decreased\r\n\r\nOthers cannot be edited, as Coder does support migrations and it would result in data loss:\r\n- workspace provider\r\n- CVM (true/false)\r\n\r\nIn Coder OSS, there is currently:\r\n\r\n- no way to edit parameters for an existing workspace via the web dashboard\r\n- no prompt in the dashboard when new variables are added to a template version and they \"update\" their workspace #2660 \r\n- a way to dangerously edit ALL parameters for an existing workspace with `coder update --always-prompt \u003cworkspace-name>`\r\n  - If I change the \"region\" of an existing workspace, it will delete the disk in one region and recreate it in another. The user looses the files in their home directory.\r\n- no way to see what your existing parameters are. users need to re-select them from scratch.\r\n\r\n## Definition of done\r\n\r\nCoder has documented (or implemented) best practices for disabling/handling \"dangerous\" parameters.\r\n  - Admins would likely have to indicate which variables are destructive, as every template differs\r\n\r\nUsers can safely edit their workspace's parameters from the web dashboard and CLI.\r\n  - Users can also see what their current parameters are in their workspace\r\n\r\nUsers are prompted in the web dashboard and CLI when they \"update\" their workspace and new variables are added to a template version\r\n  - #2660 \r\n  - This currently happens in the CLI, but not the web dashboard\r\n\r\n## Current workarounds\r\n\r\n- Terraform's `prevent_destroy` and `ignore_changes` meta-arguments can be added to templates to ensure that changes to  \"destructive\" parameters will not destroy critical resources, such as a home volume or persistent VM. However, this UX is not well-handled into Coder and will lead to confusing behaviors:\r\n\r\n  > User changes the `region` after a workspace is created, `ignore_changes` does not change the resources, user is confused why their change did not work and reports it to their Coder admin. While this prevented the workspace from deleting, the action didn't lead to the desired result.\r\n\r\n  > User changes the `region` after a workspace is created, `prevent_destroy` ensures the volume is not deleted, but the rebuild has failed. When viewing the logs, the user sees that the volume cannot be destroyed but doesn't understand that their change led to a failed workspace\r\n\r\n  - `prevent_destroy` would also prevent the workspace from being deleted, since it cannot be referenced conditionally (hashicorp/terraform#22544). Thanks @kylecarbs \r\n\r\n- User can dangerously edit their workspace with `coder update --always-prompt \u003cworkspace-name>` and has to remember / write down their previous values if they want to carry them over.\r\n\r\n## Archive\r\n\r\n\u003cdetails>\r\n  \u003csummary>Old issue description\u003c/summary>\r\n  \r\nTo discourage edits, this will be called the Workspace Settings page and be used for viewing parameters and potentially editing them.\r\nReuse Workspace Create form.\r\n\r\n- [ ] add warning that changing parameters may cause problems\r\n- [ ] add Delete Workspace button\r\n- [ ] disable any forms that can't be edited\r\n- [ ] hook up api to edit\r\n- [ ] hook up api to rebuild u pon submit\r\n- [ ] test that a workspace is edited\r\n- [ ] test that workspace is rebuilt\r\n  \r\n\u003c/details>\r\n\r\n","author":{"url":"https://github.com/presleyp","@type":"Person","name":"presleyp"},"datePublished":"2022-04-01T00:32:49Z","url":"https://github.com/coder/coder/issues/802"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a6aba8f2-59df-2c7d-57f6-e9857c2ce9e9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDD4E:240CD1:23FF745:2DBD29A:6B018692
html-safe-nonce885f185dfe7bbfb3f37bb9fdfc0b57132d9c1032d8a1ffc54425bdffc12c39b6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDRFOjI0MENEMToyM0ZGNzQ1OjJEQkQyOUE6NkIwMTg2OTIiLCJ2aXNpdG9yX2lkIjoiNTMzNDM1MDkwMzg0NTY4NDg4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf344a23a1237f5cd5670cb849ca705d5a997143ae8c7af83491ccde3ca4304ad
hovercard-subject-tagissue:1189048323
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/802/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2278cefabcc4cc396b28b6f8fc4b3e9f9256f5948f3678cd6b7135bd8011e1a7/coder/coder/issues/802
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2278cefabcc4cc396b28b6f8fc4b3e9f9256f5948f3678cd6b7135bd8011e1a7/coder/coder/issues/802
og:image:altedits by @bpmct: Problem statement In Coder Classic, some parameters for workspaces are editable after the workspace is created, providing a helpful utility to users. Examples of these parameters a...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepresleyp
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/coder/issues/802#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F802
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F802
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/issues/802
Reloadhttps://github.com/coder/coder/issues/802
Reloadhttps://github.com/coder/coder/issues/802
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
https://github.com/coder/coder
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/802
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/802
Safe way to edit workspace parameters via dashboard and CLIhttps://github.com/coder/coder/issues/802#top
https://github.com/presleyp
https://github.com/deansheather
https://github.com/bpmct
siteArea: frontend dashboardhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22site%22
EEhttps://github.com/coder/coder/milestone/9
https://github.com/presleyp
presleyphttps://github.com/presleyp
on Apr 1, 2022https://github.com/coder/coder/issues/802#issue-1189048323
@bpmcthttps://github.com/bpmct
Pressing "Update" on a workspace does not prompt for newly-created variables #2660https://github.com/coder/coder/issues/2660
Pressing "Update" on a workspace does not prompt for newly-created variables #2660https://github.com/coder/coder/issues/2660
"Variables may not be used here" for prevent_destroy hashicorp/terraform#22544https://github.com/hashicorp/terraform/issues/22544
@kylecarbshttps://github.com/kylecarbs
Nexthttps://github.com/coder/coder/issues/802?timeline_page=1
presleyphttps://github.com/presleyp
on Apr 1, 2022https://github.com/coder/coder/issues/802#event-6348362619
presleyphttps://github.com/presleyp
V2 BETAhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22V2%20BETA%22
siteArea: frontend dashboardhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22site%22
on Apr 1, 2022https://github.com/coder/coder/issues/802#event-6348363208
presleyphttps://github.com/presleyp
V2 Betahttps://github.com/coder/coder/milestone/4
on Apr 1, 2022https://github.com/coder/coder/issues/802#event-6348363599
https://github.com/presleyp
presleyphttps://github.com/presleyp
on Apr 1, 2022https://github.com/coder/coder/issues/802#issuecomment-1085896353
@kylecarbshttps://github.com/kylecarbs
@tjcranhttps://github.com/tjcran
https://github.com/kylecarbs
kylecarbshttps://github.com/kylecarbs
on Apr 1, 2022https://github.com/coder/coder/issues/802#issuecomment-1086238311
https://github.com/misskniss
missknisshttps://github.com/misskniss
on Apr 26, 2022https://github.com/coder/coder/issues/802#issuecomment-1109283232
@presleyphttps://github.com/presleyp
presleyphttps://github.com/presleyp
kylecarbshttps://github.com/kylecarbs
presleyphttps://github.com/presleyp
on Apr 28, 2022https://github.com/coder/coder/issues/802#event-6517678652
presleyphttps://github.com/presleyp
on May 12, 2022https://github.com/coder/coder/issues/802#event-6599557832
missknisshttps://github.com/misskniss
Community MVP 🏁https://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22Community%20MVP%20%3Acheckered_flag%3A%22
V2 BETAhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22V2%20BETA%22
on May 16, 2022https://github.com/coder/coder/issues/802#event-6618716291
missknisshttps://github.com/misskniss
V2 Betahttps://github.com/coder/coder/milestone/4
Community MVPhttps://github.com/coder/coder/milestone/2
on May 16, 2022https://github.com/coder/coder/issues/802#event-6618819833
https://github.com/BrunoQuaresma
BrunoQuaresmahttps://github.com/BrunoQuaresma
on May 27, 2022https://github.com/coder/coder/issues/802#issuecomment-1139673538
@kylecarbshttps://github.com/kylecarbs
missknisshttps://github.com/misskniss
bpmcthttps://github.com/bpmct
presleyphttps://github.com/presleyp
on Aug 2, 2022https://github.com/coder/coder/issues/802#event-7110879817
https://github.com/presleyp
presleyphttps://github.com/presleyp
on Aug 8, 2022https://github.com/coder/coder/issues/802#issuecomment-1208540341
@bpmcthttps://github.com/bpmct
@deansheatherhttps://github.com/deansheather
https://github.com/deansheather
deansheatherhttps://github.com/deansheather
on Aug 8, 2022https://github.com/coder/coder/issues/802#issuecomment-1208603346
https://github.com/bpmct
bpmcthttps://github.com/bpmct
on Aug 8, 2022https://github.com/coder/coder/issues/802#issuecomment-1208672087
@presleyphttps://github.com/presleyp
@deansheatherhttps://github.com/deansheather
https://github.com/bpmct
bpmcthttps://github.com/bpmct
on Aug 8, 2022https://github.com/coder/coder/issues/802#issuecomment-1208674333
@deansheatherhttps://github.com/deansheather
@Emyrkhttps://github.com/Emyrk
https://github.com/bpmct
bpmcthttps://github.com/bpmct
on Aug 8, 2022https://github.com/coder/coder/issues/802#issuecomment-1208675054
presleyphttps://github.com/presleyp
epichttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22epic%22
on Aug 10, 2022https://github.com/coder/coder/issues/802#event-7164817725
https://github.com/bpmct
bpmcthttps://github.com/bpmct
on Aug 10, 2022https://github.com/coder/coder/issues/802#issuecomment-1211332752
or overridablehttps://github.com/coder/coder/blob/f7ea016494c1a936649cfebd287e03618bd242bb/coderd/parameter/compute.go#L183-L187
in the docshttps://coder.com/docs/coder-oss/latest/secrets#wait-a-minute
#2719https://github.com/coder/coder/issues/2719
#3056https://github.com/coder/coder/issues/3056
https://github.com/mattlqx
mattlqxhttps://github.com/mattlqx
on Aug 12, 2022https://github.com/coder/coder/issues/802#issuecomment-1213269521
https://github.com/misskniss
missknisshttps://github.com/misskniss
on Aug 16, 2022https://github.com/coder/coder/issues/802#issuecomment-1216770974
@deansheatherhttps://github.com/deansheather
@bpmcthttps://github.com/bpmct
@presleyphttps://github.com/presleyp
ammariohttps://github.com/ammario
EEhttps://github.com/coder/coder/milestone/9
on Aug 22, 2022https://github.com/coder/coder/issues/802#event-7233232600
kylecarbshttps://github.com/kylecarbs
epichttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22epic%22
on Aug 24, 2022https://github.com/coder/coder/issues/802#event-7253523700
https://github.com/presleyp
presleyphttps://github.com/presleyp
on Sep 6, 2022https://github.com/coder/coder/issues/802#issuecomment-1238351863
presleyphttps://github.com/presleyp
not plannedhttps://github.com/coder/coder/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Sep 6, 2022https://github.com/coder/coder/issues/802#event-7331865372
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/coder/issues/802
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/coder/issues/802
bpmcthttps://github.com/bpmct
deansheatherhttps://github.com/deansheather
presleyphttps://github.com/presleyp
siteArea: frontend dashboardhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22site%22
EEhttps://github.com/coder/coder/milestone/9
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.