Input-from-stdin mode for bitcoin-cli #7442

issue laanwj opened this issue on January 29, 2016
  1. laanwj commented at 12:07 PM on January 29, 2016: member

    Some information passed to bitcoin-cli may be too sensitive to pass on the command line, as that can (usually) be seen by other users on the system in the ps output.

    The most straightforward solution for an alternative is to add an option to bitcoin-cli that takes the input (or part of the input, e.g. the passphrase argument to walletpassphrase) from stdin instead of the command line. In contrast to a fully-fledged interactive shell (which would also be nice to have, see #3122), this can also be useful in scripts.

    See #7122 (comment) for discussion.

  2. laanwj added the label RPC on Jan 29, 2016
  3. laanwj cross-referenced this on Jan 29, 2016 from issue simple fix to mask command line arguments after they are copied by robegan21
  4. dcousens commented at 1:32 AM on January 30, 2016: contributor

    concept ACK :+1: , I already ended up using my own RPC module that accepts stdin for this purpose.

  5. jgarzik commented at 2:18 AM on January 30, 2016: contributor

    concept ACK

  6. luke-jr commented at 2:38 AM on January 30, 2016: member

    concept ACK

  7. paveljanik commented at 6:50 AM on January 30, 2016: contributor

    Would be great, concept ACK

  8. jonasschnelli commented at 7:57 AM on January 30, 2016: contributor

    Concept ACK.

  9. laanwj added the label Feature on Feb 17, 2016
  10. laanwj referenced this in commit c97198db76 on Feb 17, 2016
  11. laanwj referenced this in commit 1f73b8e27b on Feb 17, 2016
  12. laanwj cross-referenced this on Feb 17, 2016 from issue rpc: Input-from-stdin mode for bitcoin-cli by laanwj
  13. laanwj referenced this in commit 92bcca37ab on Feb 24, 2016
  14. MarcoFalke commented at 1:51 PM on February 24, 2016: member

    @laanwj Looks like this is fixed. Anything left to do here other than #3122?

  15. laanwj closed this on Feb 24, 2016

  16. laanwj commented at 7:03 PM on February 24, 2016: member

    No, this is done, thanks for the reminder

  17. luke-jr referenced this in commit 1193a14ff9 on Feb 25, 2016
  18. instagibbs referenced this in commit 3dcefc8af1 on Feb 25, 2016
  19. GamerSg referenced this in commit e7e7b0354c on Feb 27, 2016
  20. kyuupichan cross-referenced this on Mar 5, 2017 from issue [Backport] bitcoin-cli -stdin by kyuupichan
  21. sickpig referenced this in commit c45a8e0c4c on Mar 31, 2017
  22. lateminer referenced this in commit b8d0c5dacc on Jan 5, 2018
  23. bitcoin 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-05-19 06:55 UTC