Claude Code v2.1.79 · 18 Mar 2026
Subprocess Environment Scrubbing
Entry Kind: in v2.1.79, 18 Mar 26
Changes Section of the release
What
A new CLAUDE_CODE_SUBPROCESS_ENV_SCRUB environment variable that, when enabled, strips sensitive credentials from the environment passed to subprocesses (like Bash tool invocations).
Usage
CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1 claudeEvidence
Environment scrubbing for subprocess execution (search for "CLAUDE_CODE_SUBPROCESS_ENV_SCRUB")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
See this entry in the whole of v2.1.79 →
Names in this entry
env CLAUDE_CODE_SUBPROCESS_ENV_SCRUB A hidden --inherit-permission-mode flag lets a spawned session take its permission mode from whatever launched it.
env ANTHROPIC_API_KEY API key sent as X-Api-Key header. When set, this key is used instead of your Claude Pro, Max, Team, or Enterprise subscription even if you are logged in. In non-interactive mode (-p), the key is always used when present. In interactive mode, you are prompted to approve the key once before it overrides your subscription. To use your subscription instead, run unset ANTHROPIC_API_KEY
env AWS_SECRET_ACCESS_KEY Policy-helper environment scrubbing moved into its own module and now strips more variables
env AWS_SESSION_TOKEN Remote-delivered policy helpers now require explicit consent and run with a scrubbed environment
env GOOGLE_APPLICATION_CREDENTIALS Policy-helper environment scrubbing moved into its own module and now strips more variables
env AZURE_CLIENT_SECRET Read by the bundled Azure Identity EnvironmentCredential (first in the DefaultAzureCredential chain Claude Code uses for Microsoft Foundry, unless AZURE_TOKEN_CREDENTIALS=dev). With AZURE_TENANT_ID and AZURE_CLIENT_ID it signs in as a service principal with this secret, which takes precedence over a certificate path or a username and password.
Is this right?
0
0
Feedback
What's wrong with this entry?
Hard to understand Too vague Looks wrong Not relevant to me Too long Missing the detail I wanted Duplicate of another card
Clear Learned something new I can act on this Good catch
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
← Previous · 3 of 26
Web Setup Command
In v2.1.79 Changes release-page order
Next → · 5 of 26
Memory Verification Instructions