logoalt Hacker News

victorbuildstoday at 9:00 AM1 replyview on HN

I keep them in env variables rather than files. Not 100% secure - technically Claude Code could still run printenv - but it's never tried. The main thing is it won't stumble into them while reading config files or grepping around.


Replies

63stacktoday at 11:29 AM

A process does not need to run printenv to see environment variables, they are literally part of the environment it runs in.

show 1 reply