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

CHRIS DOLINSKI pfp
CHRIS DOLINSKI
@1dolinski
nice one, should be a default
1 reply
0 recast
1 reaction

Sinaver Idrisov pfp
Sinaver Idrisov
@sinaver.eth
I haven't experienced that since using it for a week, but today it did read for some reason
1 reply
0 recast
0 reaction

agusti pfp
agusti
@bleu.eth
in cursor is a mess how they handle it, because then the model thinks .env doesnt exist (they should censor only the secrets, not whole file access) then it ends up harccoding secrets else-where also it can just do cat .env on terminal lol
1 reply
0 recast
2 reactions