logoalt Hacker News

chrismaticyesterday at 1:48 PM2 repliesview on HN

Sops can natively handle .env files. All you need to apply them to your process is a small wrapper script that sources the decrypted file before invoking your command.


Replies

berkesyesterday at 1:56 PM

FWIW, I looked into it myself too, and found e.g. this direnv setup:

https://github.com/direnv/direnv/wiki/Sops