Show HN: enveil – hide your .env secrets from prAIng eyes
1–10 of 152 posts
Re: Show HN: enveil – hide your .env secrets from prAIng eyes
#2[dead]
Re: Show HN: enveil – hide your .env secrets from prAIng eyes
#3What about something like Hashicorp secrets? We have a the hashicorp secrets in launch.json and load the values when the process is initialized (yeah it is still not great)
Re: Show HN: enveil – hide your .env secrets from prAIng eyes
#4This doesn’t really fix that it can echo the secrets and read the logs. `enveil run — printenv`
Re: Show HN: enveil – hide your .env secrets from prAIng eyes
#5Looks good. Almost stopped reading due the npm example, grasped it was just a use case, kept reading.
Kernel keyring support would be the next step?
PASS=$(keyctl print $(keyctl search @s user enveil_key))
Re: Show HN: enveil – hide your .env secrets from prAIng eyes
#6Alternative, and more robust approach is to give the agent surrogate credentials and replace them on the way out in a proxy. If proxy runs in an environment to which agent has no access to, the real secrets are not available to it directly; it can only make requests to scoped hosts with those.
I’ve built this in Airut and so far seems to handle all the common cases (GitHub, Anthropic / Google API keys, and even AWS, which requires slightly more work due to the request signing approach). Described in more detail here: https://github.com/airutorg/airut/blob/main/doc/network-sand...
Re: Show HN: enveil – hide your .env secrets from prAIng eyes
#7This doesn’t really fix that it can echo the secrets and read the logs. `enveil run — printenv`
Not the author but No, the decryption would ask the secret again? The readme mentions it's wiped from memory after use.
Re: Show HN: enveil – hide your .env secrets from prAIng eyes
#8Sometimes I need to give Claude Code access to a secret to do something. (e.g. Use the OpenAI API to generate an image to use in the application.) Obviously I rotate those often. But what is interesting is what happens if I forget to provide it the secret. It will just grep the logs and try to find a working secret from other projects/past sessions (at least in --dangerously-skip-permissions mode.)
Re: Show HN: enveil – hide your .env secrets from prAIng eyes
#9I use bubblewrap to sandbox the agent to my projects folder, where the ai gets free read/write reign. Non-synthetic env cars are symlinked into my projects folder from outside that folder.
Re: Show HN: enveil – hide your .env secrets from prAIng eyes
#101Password has this feature in beta. [1]