-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
-
The only way to set an env is to use
SetEnv=MY_VAR=value
. If you useSetEnv MY_VAR=true
, the env var gets added to the config incorrectly and SSH fails to load because of bad splitting:Lines 716 to 733 in 2d7dac8
const userConfig = userConfigSSH.reduce( (acc, line) => { let i = line.indexOf("="); if (i === -1) { i = line.indexOf(" "); if (i === -1) { // This line is malformed. The setting is incorrect, and does not match // the pattern regex in the settings schema. return acc; } } const key = line.slice(0, i); const value = line.slice(i + 1); acc[key] = value; return acc; }, {} as Record<string, string>, ); -
Setting any
SetEnv
variables causes the defaultSetEnv CODER_SSH_SESSION_TYPE=vscode
to be removed. This is because we use a map to store the key/value pairs. -
You cannot have multiple
SetEnv
config lines, only one will be processed.
Metadata
Metadata
Assignees
Labels
No labels