doc: Rewrite shell example to not leave secrets in the history file #8441

pull paveljanik wants to merge 1 commits into bitcoin:0.13 from paveljanik:patch-17 changing 1 files +5 −1
  1. paveljanik commented at 8:28 AM on August 1, 2016: contributor

    Variant to #8436.

  2. paveljanik commented at 8:30 AM on August 1, 2016: contributor

    ... will squash in a minute ...

  3. in doc/release-notes.md:None in 5661847920 outdated
      62 | @@ -63,6 +63,10 @@ For example:
      63 |  
      64 |      $ echo -e "mysecretcode\n120" | src/bitcoin-cli -stdin walletpassphrase
      65 |  
      66 | +Warning: when used as described, the command line (including your secret
      67 | +walletpassphrase) will be stored in your shell history file. Modify your
      68 | +command line or your shell settings to prevent it.
      69 | +
      70 |  It is recommended to use this for sensitive information such as wallet
    


    laanwj commented at 8:31 AM on August 1, 2016:

    I don't think this quite connects with the next paragraph anymore..

  4. paveljanik force-pushed on Aug 1, 2016
  5. laanwj commented at 8:38 AM on August 1, 2016: member

    I think this warning should be separate, at the end of the section. It might be worthwhile to add it, as a reminder, but commands possibly ending up in shell history is nothing new. It has nothing to do with this functionality change.

  6. paveljanik commented at 8:47 AM on August 1, 2016: contributor

    What about dropping echo instead?

        $ src/bitcoin-cli -stdin walletpassphrase
        mysecretcode
        120
        Ctrl+D
        $
    
  7. laanwj commented at 6:01 AM on August 2, 2016: member

    That's fine with me. Make sure that the Ctrl-D stands out as a key action, not as literally typing Ctrl-D.

  8. Rewrite shell example to not leave secrets in the history file 719208c66f
  9. paveljanik force-pushed on Aug 2, 2016
  10. paveljanik commented at 7:09 AM on August 2, 2016: contributor

    Done. I'm open for better "stand out" for Ctrl-D :-)

  11. laanwj renamed this:
    Add warning about shell history file
    doc: Rewrite shell example to not leave secrets in the history file
    on Aug 2, 2016
  12. laanwj added the label Docs and Output on Aug 2, 2016
  13. sipa commented at 11:06 PM on August 2, 2016: member

    utACK 719208c66f2df124cdf542ae80c2f99563fa7851

  14. MarcoFalke commented at 7:14 AM on August 3, 2016: member

    utACK 719208c

  15. laanwj merged this on Aug 3, 2016
  16. laanwj closed this on Aug 3, 2016

  17. laanwj referenced this in commit 6c083ac95c on Aug 3, 2016
  18. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 12:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me