Microsoft/vscode
View on GitHubAllow blocked environment variables through if they're included explicitly in terminal launch configs
Open
#104,154 opened on Jul 15, 2020
feature-requesthelp wantedterminal-process
Description
- VSCode Version: 1.47.1 (not insider as I can't get docker builds working on that for some reason)
- Local OS Version: Windows 10 2004
- Remote OS Version: WSL2 Ubuntu 20.04
- Remote Extension/Connection Type: Docker Desktop using WSL2 backend
Steps to Reproduce:
- Create a new project with a single file:
# .devcontainer/devcontainer.json
{
"image": "alpine:latest",
"remoteEnv": {
"GOOGLE_API_KEY": "api-key",
"GOOGLE_SOMETHING_ELSE": "something-else"
}
}
- Rebuild and Reopen in Container
- In the remote terminal, check the environment for variables:
$ printenv | grep GOOGLE
Expected outcome:
GOOGLE_API_KEY=api-key
GOOGLE_SOMETHING_ELSE=something-else
Actual outcome:
GOOGLE_SOMETHING_ELSE=something-else
This is the same no matter the base image used. Changing the name of GOOGLE_API_KEY to anything else, even by a single character, allows it through.
Does this issue occur when you try this locally?: Not relevant as this is a remote container build Does this issue occur when you try this locally and all extensions are disabled?: Not relevant as this is a remote container build