logoalt Hacker News

sailfastyesterday at 2:29 PM2 repliesview on HN

How do you prevent these models from reading secrets in your repos locally?

It’s one thing for the ENVs to be user pasted but typically you’re also giving the bots access to your file system to interrogate and understand them right? Does this also block that access for ENVs by detecting them and doing granular permissions?


Replies

SparkyMcUnicornyesterday at 11:14 PM

I configure permission settings within projects.

https://code.claude.com/docs/en/settings#permission-settings

show 1 reply
woodrowbarlowyesterday at 8:33 PM

by putting secrets in your environment instead of in your files, and running AI tools in a dedicated environment that has its own set of limited and revocable secrets.

show 1 reply