Sinaver Idrisov pfp
Sinaver Idrisov
@sinaver.eth
Just encountered this: Claude Code DOES read all your secret, *.env, etc files by default, even if it's in the .gitignore You can add deny read rules (~/.claude/settings.json): "permissions": { "deny": [ "Read(**/*.env*)", "Read(**/*.pem)", "Read(**/*.key)", "Read(**/secrets/**)", "Read(**/credentials/**)", "Read(**/.aws/**)", "Read(**/.ssh/**)", "Read(**/docker-compose*.yml)", "Read(**/config/database.yml)" ] }
3 replies
0 recast
9 reactions

Rafi pfp
Rafi
@rafi
Crazy it asks for cat commands but doesn’t does it by default
1 reply
0 recast
1 reaction

Sinaver Idrisov pfp
Sinaver Idrisov
@sinaver.eth
i don't know, it might have asked for reading other files before - non secret, and ended up taking this rule too literal
0 reply
0 recast
0 reaction