Last active
March 16, 2026 10:39
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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