Secrets should not be on the command line, they get logged to history. Instead should be prompted for like a password.
Re:I Miss Heroku's DevEx
by psadauskas on Thursday May 12, 2022 @01:34PM
(#31357304)
Only tangentially related, but if you prefix the command with a space, it doesn't get recorded to history.
$ cd
$ echo "one"
one
$ echo "two"
two
$ echo "three"
three
$ history | tail -3
10089 cd
10090 echo "one"
10091 echo "three"
When you remember to do it, that is.That is the default on many Linuxes' bashes but it's not universal and you can turn it on or off using HISTCONTROL: https://www.gnu.org/software/bash/manual/html_node/Bash-Vari...
Re:I Miss Heroku's DevEx
by yencabulator on Tuesday May 17, 2022 @11:54PM
(#31419073)
Meanwhile, `ps` etc will still show the secret. Just do it the right way.
It's like this all the way. Postgres is one click on Heroku, a miniature ordeal on GAE. Yeah I can handle it, but why. Maybe I don't have the patience and there's some light at the end of the tunnel. I thought maybe that light was gRPC, but turns out App Engine ironically can't run gRPC services.