Governance
Claude Code's “Don't Ask Again” Settings Put Secrets at Risk
Apiiro reports thousands of secrets in Claude Code settings and related repository files. It is a reason to audit your own files and Git history, not proof of your exposure.

Apiiro found 1,122 secrets in claude/settings.local.json files and another 1,160 in Git history, shared settings.json files, and agent chat transcripts stored in repositories. InfoQ reports that Apiiro linked the exposure to Claude Code’s “Don't Ask Again” feature, which stores secrets in local files on developers’ machines 1.
For engineering leaders, the practical question is whether similar files or credentials appear in your own repositories and history. Apiiro’s reported findings are a reason to check; they do not establish your company’s exposure.
What Apiiro reported about Claude Code secrets
The 1,122 figure is for claude/settings.local.json files. The separate 1,160 figure is an aggregate across Git history, shared settings.json files, and agent chat transcripts stored in repositories. The excerpt does not break that second figure down by category 1.
The source describes findings in public repositories. It does not provide counts of affected organizations, users, or Claude Code installations, nor does it say how many detected credentials remained valid 1. The excerpt also does not identify the secret types, Claude Code versions or configurations involved, or a remediation plan 1.
Keep Apiiro’s reported counts separate from results of your own repository review. The source gives an industry finding, not a measurement of your organization’s exposure 1.
What this does—and does not—establish about coding agent security
The reported finding concerns secrets in local settings and other repository content 1. The excerpt does not describe agent permissions, tool invocation, prompt injection, or model-access controls. Those are separate questions for an internal review, not findings established by this excerpt.
Analysis: Configuration handling and runtime permissions are distinct controls. A permissions review would not, by itself, establish whether settings or credentials were committed to a repository. Likewise, finding a credential in repository content would not establish what permissions an agent had.
Apiiro links the exposure to local files used for “Don't Ask Again” 1. One reasonable interpretation is that local state can become exposed when it is copied or committed. That is an explanation of the reported pattern, not evidence that the feature exposes secrets in every environment.
A practical review for secrets in Git repositories
Start by searching current working trees and tracked files for claude/settings.local.json, shared settings.json files, and agent chat transcripts—the locations named in the report 1. Then search available Git history as well; the reported aggregate includes Git history 1.
Treat matches as leads, not confirmed incidents. The source does not specify the kinds of secrets found or whether they remained valid 1. Your team will need to assess those details for each match.
Suggested review steps:
- Record the repository, file path, commit, owner, and apparent credential type for each match.
- Determine whether a credential is still usable and what access it provides.
- Check for the same value across branches, shared settings, and transcripts.
- Use your incident process to rotate or revoke credentials confirmed to be active.
- Remove exposed material from active branches and consult security and repository administrators about history remediation.
- Add scanning coverage for agent settings, shared configuration, and transcript files.
These are suggested investigation steps, not remediation instructions attributed to Apiiro. The cited excerpt reports locations and counts, but does not give a remediation plan 1.
Controls to consider for developer tool security
Decide which agent configuration files may be stored in repositories, which should remain local, and what requires security review before sharing. Related governance questions, such as how agent-written configuration can drift over time, belong in the same policy conversation.
Inspect your own files to determine whether settings, approval state, shared configuration, or transcripts contain credentials. The cited excerpt does not inventory everything claude/settings.local.json can contain 1.
Analysis: Treat agent permissions, configuration handling, and credential handling as separate review areas. The reported finding concerns settings and repository content; it does not establish agent capabilities 1. Runtime isolation is its own topic; see what adopters still need to verify about agent sandboxing projects. Likewise, routing model access through an enterprise AI gateway can centralize how API keys are issued and scoped, but it would not remove credentials that are already committed to a repository.
Consider a sanctioned way for developers to avoid repeated approval prompts without placing sensitive state in shared files. The appropriate workflow depends on your environment; the cited excerpt does not endorse a particular approach 1.
What to decide
Bring application security, developer productivity, repository administration, and teams using coding agents into the review. Start with what you can verify in your own repositories and history: whether the named file types are present, whether they were committed, and whether any credentials found are active.
After the review, document how local settings, shared settings, transcripts, approval prompts, and credential rotation should be handled. Keep the policy tied to your broader agent-security work, while treating repository exposure as a specific issue to investigate.
FAQ
What is claude/settings.local.json?
It is the settings-file path in which Apiiro reported finding 1,122 secrets, linking the exposure to Claude Code’s “Don't Ask Again” feature 1. The source does not describe every setting stored in the file.
How many secrets did Apiiro report?
Apiiro reported 1,122 in claude/settings.local.json files and another 1,160 across Git history, shared settings.json files, and agent chat transcripts stored in repositories. The second figure is not broken down by location 1.
Does the report mean every Claude Code installation is affected?
No. The report describes findings in public repositories and does not establish how many installations, users, organizations, versions, or configurations were affected 1. Teams should check their own repositories and history.
What should teams do about Claude Code secrets in Git?
Search current files and Git history for the settings, shared configuration, and transcript locations identified in the report 1. Investigate matches, determine whether credentials are valid, and apply your organization’s credential-rotation and repository-remediation procedures.
Next step: Ask application security and repository administrators to review current files and Git history, then decide which agent settings may be shared or committed and who should approve exceptions.
Questions
- What is claude/settings.local.json?
- It is the settings-file path in which Apiiro reported finding 1,122 secrets, linking the exposure to Claude Code’s “Don't Ask Again” feature [1]. The source does not describe every setting stored in the file.
- How many secrets did Apiiro report?
- Apiiro reported 1,122 secrets in claude/settings.local.json files and another 1,160 across Git history, shared settings.json files, and agent chat transcripts stored in repositories [1]. The second figure is not broken down by location [1].
- Does the report mean every Claude Code installation is affected?
- No. The report describes findings in public repositories and does not establish how many installations, users, organizations, versions, or configurations were affected [1]. Teams should check their own repositories and history.
- What should teams do about Claude Code secrets in Git?
- Search current files and Git history for the settings, shared configuration, and transcript locations identified in the report [1]. Investigate matches, determine whether credentials are valid, and apply the organization’s credential-rotation and repository-remediation procedures.
Sources
- Claude Code Has Been Leaking Secrets through its "Don't Ask Again" Feature · InfoQ AI, ML & Data Engineering · Nov 22, 2026
How this article was made: an AI writer persona researched and wrote it from the sources listed above; separate AI passes edited it, checked its claims against those sources and audited it; it was published after passing automated editorial checks, without an individual editor's approval. How the Yelno blog works · Follow Yelno on LinkedIn