rpc: Drop -rpcuser and -rpcpassword from server #16017

pull promag wants to merge 1 commits into bitcoin:master from promag:2019-05-remove-rpcpassword changing 4 files +10 −15
  1. promag commented at 2:14 PM on May 13, 2019: member

    Options -rpcuser and -rpcpassword are deprecated, -rpcauth should be used instead.

  2. DrahtBot commented at 2:36 PM on May 13, 2019: member

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #12040 (fix: add support for CORS headers and pre-flight request by lionello)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  3. MarcoFalke commented at 2:48 PM on May 13, 2019: member

    I think a lot of "tutorials" still mention this setting, so maybe removing it is a bit premature. Needs release notes either way.

  4. rpc: Drop -rpcuser and -rpcpassword from server fe31964831
  5. promag force-pushed on May 13, 2019
  6. promag commented at 2:55 PM on May 13, 2019: member

    I think a lot of "tutorials" still mention this setting, so maybe removing it is a bit premature.

    The same can be said for all deprecated options.

    Release note added.

    BTW why no travis?

  7. DrahtBot added the label Docs on May 13, 2019
  8. DrahtBot added the label RPC/REST/ZMQ on May 13, 2019
  9. DrahtBot added the label Utils/log/libs on May 13, 2019
  10. kristapsk commented at 3:03 PM on May 13, 2019: contributor

    There are third party tutorials in the wild that mentions these settings, also it breaks things for already configured setups. Maybe it's better idea to first deprecate with a warning and postpone removal to some later release?

  11. kristapsk commented at 3:09 PM on May 13, 2019: contributor

    See also #14363.

  12. kristapsk commented at 3:15 PM on May 13, 2019: contributor

    Ahh, didn't notice there was already deprecation warning. But it only goes to debug.log of bitcoind, which most of the users may not look at unless there are problems. They should at least be added to bitcoin-cli first too IMO.

  13. promag commented at 3:16 PM on May 13, 2019: member

    @kristapsk the warning is already there: https://github.com/bitcoin/bitcoin/blob/e79bbb73e08e3f191e97d3b67a2fbb510c5545ff/src/httprpc.cpp#L227

    This doesn't change RPC behavior, it just changes how you configure the server - I mean, it doesn't force you to refactor your client code.

  14. gmaxwell commented at 4:55 PM on May 13, 2019: contributor

    It might be better to deactivate and require reenabling it to keep using it.

  15. promag commented at 4:58 PM on May 13, 2019: member

    @gmaxwell it's already "deactivated" unless you set the options?

  16. gmaxwell commented at 7:21 PM on May 13, 2019: contributor

    It is, but many people set the options 5+ years ago. There has been no /active/ notification to those users. A nag in the debug log isn't nothing, true, but it's not much. :) Is there any pressing reason to remove this? AFAIK removing it just saves a couple lines of code.

  17. promag commented at 7:25 PM on May 13, 2019: member

    No pressing reason. Let's remove the warning then? :trollface:

  18. promag closed this on May 13, 2019

  19. DrahtBot locked this on Dec 16, 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-13 15:14 UTC

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