feat(site)!: add consent prompt for auto-creation with prefilled parameters#22011
feat(site)!: add consent prompt for auto-creation with prefilled parameters#22011
Conversation
Documentation CheckUpdates Needed
ContextThis PR adds an important security feature: when a workspace creation link uses
This protects users from malicious workspace creation links that could execute arbitrary code via template parameters like Latest update (2026-02-11): Added Storybook stories for the dialog component (including scenarios with many parameters and long values), updated E2E tests to handle the consent dialog flow, and addressed PR review feedback. The implementation is complete and tested, but documentation still needs to be updated. Automated review via Coder Tasks |
jdomeracki-coder
left a comment
There was a problem hiding this comment.
Works as intended 🧪
Co-authored-by: Jake Howell <jacob@coder.com>
jakehwll
left a comment
There was a problem hiding this comment.
Left my nits about how the <Dialog /> is formed, fine otherwise 🙂
Documentation CheckUpdates Needed
Automated review via Coder Tasks |
Documentation CheckUpdates Needed
All documentation requirements have been addressed in the latest commits. Automated review via Coder Tasks |
matifali
left a comment
There was a problem hiding this comment.
Thanks. Can you also add a small note calling the breaking behaviour? Will help write changelog
|
Another minor nit on the color of the button. Do we have another option, as red is usually used for destructive operations? |
|
@kacpersaw, yes, this looks better to me. |
@matifali done! 👍 |


Summary
Workspace created via mode=auto links now require explicit user confirmation before provisioning. A warning dialog shows all prefilled param.* values from the URL and blocks creation until the user clicks
Confirm and Create. ClickingCancelfalls back to the standard form view.Breaking behavior change
Links using
mode=auto(e.g., "Open in Coder" buttons) will no longer silently create workspaces. Users will now see a consent dialog and must explicitly confirm before the workspace is provisioned. Any existing integrations or automation relying onmode=autofor seamless workspace creation will now require manual user interaction.