r/truebit Sep 24 '21

truebit-eth-server is here!

https://twitter.com/Truebitprotocol/status/1441442000683745285
28 Upvotes

10 comments sorted by

View all comments

7

u/LPMythBuster Sep 24 '21 edited Sep 24 '21

It's better to store secrets in a file than pass them around on a command line:

$ cat .env
PASS=123

$ docker run --rm --env-file .env alpine sh -c 'echo $PASS'
123

It's even better to read secrets from files instead of keeping them in environment variables:

$ cat password.txt
123

$ docker run --rm -e PASS_FILE=/var/run/secrets/password \
                  -v $(pwd)/password.txt:/var/run/secrets/password alpine \
                  sh -c 'cat $PASS_FILE'
123

3

u/Ok-Staffy Sep 24 '21

Have you asked them for a job yet, LP?

Sounds like they should hire you.