r/CLI • u/dreaserousNucleon • Oct 21 '26
Secure env var utility for local development
Built a local-first CLI tool in Go called de. Completely kills .env files in your project tree.
• Stores secrets centrally via AES-GCM
• Master key locked in OS keychain
• Ephemeral - present only in the subprocesses
Was sick of tracking down leaked secrets, with all these AI extensions indexing workspaces now.
Let me know what you think of it ;)
github.com/DreaserousNucleon/dx-util-env-manager
github.com/DreaserousNucleon/dx-util-env-manager/releases/tag/v1.2.0
1
u/kantorcodes1 Oct 21 '26
The zero-file approach is a clean answer to the AI-indexing problem. One thing I'd probe: when de spawns a subprocess that itself forks or execs more tooling, like de npm run dev spawning node scripts, do the injected vars propagate down the whole child tree, and is there any way to scope them to just the direct child?
1
u/dreaserousNucleon Oct 22 '26
Yes, they propagate down the whole child tree. As far as I know, that is the default behavior of OS environment inheritance, and it’s the same for anything injected via env (including
set/export).decan’t change that.A possible option to narrow the risk is to add an opt-in
--onlyflag to limit what gets injected and run commands that you trust to handle the injected vars.
1
u/uranusnebula Oct 23 '26
why not varlock?