http://qs321.pair.com?node_id=1231939


in reply to Re: Passwords/passphrases in your Distributed Version Control System
in thread Passwords/passphrases in your Distributed Version Control System

Having the credentials in the environment has the drawback of making them "easily" available to other processes of that user

I set all test environment config in a dedicated test-xterm (with screen inside, so it can proliferate). Something like:

export FOO=foo export BAR=bar export PATH=whatever/bin:$HOME/bleadperl/bin:$PATH export PGPASSFILE=$HOME/.someplace/.pfile xterm -wf -geometry 200x50 +sb -u8 -fg white -bg black -e "screen -Um +-t '${screen_title}'" &

for instance test database passwords (low value) would be in a file pointed at by one of the env vars (Postgres uses PGPASSFILE).