Skip to content

Commit b98bd8a

Browse files
akshithgclaude
andcommitted
fix: use remoteEnv instead of containerEnv for secrets
containerEnv bakes values into the image as ENV instructions, visible in docker inspect/history. remoteEnv is set at runtime only. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f477ed2 commit b98bd8a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

devcontainer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@
6161
"NPM_CONFIG_UPDATE_NOTIFIER": "false",
6262
"NPM_CONFIG_MINIMUM_RELEASE_AGE": "1440",
6363
"PYTHONDONTWRITEBYTECODE": "1",
64-
"PIP_DISABLE_PIP_VERSION_CHECK": "1",
64+
"PIP_DISABLE_PIP_VERSION_CHECK": "1"
65+
},
66+
"remoteEnv": {
6567
"CLAUDE_CODE_OAUTH_TOKEN": "${localEnv:CLAUDE_CODE_OAUTH_TOKEN:}",
6668
"ANTHROPIC_API_KEY": "${localEnv:ANTHROPIC_API_KEY:}"
6769
},

0 commit comments

Comments
 (0)