| ▲ | nrub 21 days ago | |||||||||||||||||||||||||||||||||||||||||||
I no longer keep my dotenv files in plaintext. I use `sops` to keep an encrypted env around and you can use tools like direnv to make them available to your shell while you're working. Obviously the LLM could print any of these secrets, but it's less likely. Additionally I find that at least claude seems to avoid reading the dotenv. And lastly, don't make any local secrets that important. Limited scope, dev accounts, etc. | ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | theozero 21 days ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||
You might like varlock - it helps keep secrets out of plaintext by using plugins to pull from various backends (aws ssm, gcp, vault, 1pass, etc). Also has built in local encryption with shared team vaults coming soon. Additionally provides pre commit scanning, log redaction, and much more. | ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | epistasis 21 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||
SOPS is exactly what I use too, and since it's so old I was using a planning session with an LLM to figure out if there was something more recent that might be more convenient. But Claude stuck with the SOPS rec! (Coupled with `age` for encryption, probably because I had shown an interest in that tool in a different session... memory poisoning is a huge problem I'm having with these tools right now too.) | ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | simgoh 20 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||
I've used `sops` "manually" before and I'm interested. What is your workflow? I'm assuming you set certain directories to have access to the sops key you're storing somewhere else to be able to encrypt/decrypt files? | ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | raxxorraxor 21 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||
Tools like cursor make typical files like .env inaccessible to models. Now the models have become quite apt to just extract the content through the console. | ||||||||||||||||||||||||||||||||||||||||||||