Skip to content

Instantly share code, notes, and snippets.

@euskadi31
Last active March 16, 2026 10:39
Show Gist options
  • Select an option

  • Save euskadi31/0d4101b16136a69e7a95266e02565ff8 to your computer and use it in GitHub Desktop.

Select an option

Save euskadi31/0d4101b16136a69e7a95266e02565ff8 to your computer and use it in GitHub Desktop.
Example of a .claude/settings.json configuration used to reduce the risk of credential leakage when using AI coding agents.
{
"permissions": {
"allow": [],
"deny": [
"Read(*.env*)",
"Read(.env.*)",
"Write(.env*)",
"Read(id_rsa)",
"Read(id_ed25519)",
"Read(*.tfvars)",
"Read(*.tfstate)",
"Read(.aws/credentials)",
"Read(.aws/config)",
"Read(.docker/config.json)",
"Read(.kube/config)",
"Read(.npmrc)",
"Read(.pypirc)",
"Read(.git-credentials)",
"Read(.netrc)",
"Read(*.pem)",
"Read(*.key)",
"Read(*.p12)",
"Read(*.crt)",
"Bash(terraform destroy:*)",
"Bash(tf destroy:*)"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment