News for hackers. Stuff that matters.
Re:I Miss Heroku's DevEx by digisign on Thursday May 12, 2022 @12:51PM (#31356656)
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.
Re:I Miss Heroku's DevEx by bpeebles on Thursday May 12, 2022 @02:47PM (#31358488)
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.