{"version":"2.1.329","anchor":"sandbox-terminal-device-reads-denied-aws-secret-key-never","canonical_anchor":"sandbox-terminal-device-reads-denied-aws-secret-key-never","heading":"Sandbox: masked AWS keys sign only GetCallerIdentity unless injectHosts allows more","tier":"notice","area":"Sandbox","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329\/e\/sandbox-terminal-device-reads-denied-aws-secret-key-never","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329","markdown":"### Sandbox: masked AWS keys sign only GetCallerIdentity unless injectHosts allows more\n\nIn the sandbox, a masked AWS secret key now signs only GetCallerIdentity for STS and IAM unless you add the host to injectHosts\n\n**Unclear.** Whether sandboxed commands are actually blocked from reading terminal devices, and what turns that on, is not shown.\n\n**What**\n\nThe sandbox is a fenced-off space Claude Code uses to run commands. It can mask credentials, giving commands a placeholder while its proxy (a go-between for network traffic) signs requests with the real key. `injectHosts` on a credential entry lists the hosts that may receive it.\n\n- AWS STS and IAM: the proxy now re-signs requests using a masked credential only for `GetCallerIdentity`. Other STS or IAM calls are denied unless you add that host to `injectHosts` for the key's entry, and the deny message names `injectHosts`. Before, all such signed requests were re-signed.\n\n- Settings display: a new \"AWS secret key\" row appears when sandboxing is on and the config has matching entries. It reads \"Signs requests in the sandbox and is never sent. Set injectHosts on its entry to send it to a host\".\n\n- Claude's instructions: depending on the sandbox config, the sandbox prompt now says the AWS secret key in the environment is a placeholder, with guidance on STS or IAM 403 errors and `injectHosts`.\n\n- Worktrees: the prompt now also bans `git worktree move`, as well as `git worktree add`: \"Never run `git worktree move` there either: it can fail after it has moved the folder.\"\n\n- Terminal devices: new state values suggest reading terminal devices is now denied inside the sandbox.\n\n**Why**\n\nExisting STS or IAM workflows in the sandbox may start failing with 403 errors. Add the STS or IAM host to `injectHosts` on that key's entry if those calls should keep working.\n\n- Area: Sandbox\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}