Re:Learning from a Year of Security Breaches
by andrewflnr on Tuesday December 20, 2016 @10:03PM
(#13226504)
Article and discussion re storing secrets in environment variables: https://news.ycombinator.com/item?id=8826024
The gist seems to be that it's easy to accidentally leak environment variables (which is why I think the top comment is off-base). tptacek, do you think this risk is overblown?
I wouldn't recommend putting them in /etc/environment or /etc/profile or /home/service/.profile where you'll forget about them, though.
Just as a strategy for passing secrets to code, I like the environment a lot.