{"version":"2.1.335","anchor":"apikeyhelper-trust-check-delegated-to-a-shared-helper","canonical_anchor":"apikeyhelper-trust-check-delegated-to-a-shared-helper","heading":"Credential and helper commands now share one folder-trust check","tier":"notice","area":"Settings","scope":"both","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/apikeyhelper-trust-check-delegated-to-a-shared-helper","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### Credential and helper commands now share one folder-trust check\n\napiKeyHelper, awsAuthRefresh, awsCredentialExport, gcpAuthRefresh, otelHeadersHelper and proxyAuthHelper now go through one shared trust check\n\n**What**\n\nSeveral settings let you name your own command, which Claude Code runs to fetch credentials or headers. Examples are a command that prints an API key or refreshes cloud login details. Claude Code checks whether it is safe to run such a command. One part of that check is folder trust, which means whether you have said you trust the project folder you are working in. Each of these settings used to have its own check, which read the project settings and the local settings directly. They now all go through one shared check:\n\n- `apiKeyHelper` now asks a general settings-source helper about the key `apiKeyHelper`.\n\n- `awsCredentialExport`, `gcpAuthRefresh`, `otelHeadersHelper` and `proxyAuthHelper` use a shared trust helper. Its answer is one of three states: held, untrusted or trusted.\n\n- `awsAuthRefresh` runs only if a new lookup returns a command. The lookup is either `namedOutsideFolder` or `inTrustedFolder` for the session. It used to be a simple trust test.\n\n- The `awsAuthRefresh` and `gcpAuthRefresh` values are now handled as a structured object in the code, not as plain text.\n\n- The helper for policy-managed settings now receives both the setting and its command, and passes the command on.\n\n- A separate `otelHeadersHelper` check was folded into the shared one.\n\nWhat the shared check does:\n\n- A command set in policy settings runs without waiting for folder trust. Policy settings are settings an administrator manages for the machine.\n\n- A command that is not named in the project or local settings also runs without waiting for folder trust.\n\n- In a folder you have not trusted, a command named in the project or local settings is held, or Claude Code raises the existing security error.\n\n**Why**\n\nThese checks decide when a command from a project's settings may run before you have trusted the folder. If you or your administrator rely on one of these helper commands, it may now run, wait or be refused at a different moment than before.\n\n- Area: Settings\n- Names: `apiKeyHelper`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: both\n- Heads-up: yes"}