Skip to content

Commit 03aa37b

Browse files
committed
chore: add SESSION_TOKEN disclaimer
1 parent 1a62c60 commit 03aa37b

File tree

1 file changed

+2
-0
lines changed
  • registry/coder/modules/vscode-desktop-core

1 file changed

+2
-0
lines changed

registry/coder/modules/vscode-desktop-core/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ resource "coder_app" "vscode-desktop" {
8080
var.folder != "" ? join("", ["&folder=", var.folder]) : "",
8181
var.open_recent ? "&openRecent" : "",
8282
"&url=${data.coder_workspace.me.access_url}",
83+
# NOTE: There is a protocol whitelist for the token replacement, so this will only work with the protocols hardcoded in the front-end.
84+
# (https://github.com/coder/coder/blob/6ba4b5bbc95e2e528d7f5b1e31fffa200ae1a6db/site/src/modules/apps/apps.ts#L18)
8385
"&token=$SESSION_TOKEN",
8486
])
8587
}

0 commit comments

Comments
 (0)