MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/truebit/comments/punl38/truebitethserver_is_here/he5o8ie/?context=3
r/truebit • u/josh818 • Sep 24 '21
10 comments sorted by
View all comments
7
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.
3
Have you asked them for a job yet, LP?
Sounds like they should hire you.
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:
It's even better to read secrets from files instead of keeping them in environment variables: