Skip to content

docs: clarify RPC credentials security boundary - #32424

Closed
crStiv wants to merge 0 commit into
bitcoin:masterfrom
crStiv:ishak
Closed

crStiv wants to merge 0 commit into
bitcoin:masterfrom
crStiv:ishak

Conversation

@crStiv

@crStiv crStiv commented May 6, 2025

Copy link
Copy Markdown
Contributor

Explicitly states that RPC credentials grant full administrative access to the node and filesystem resources accessible by bitcoind. Adds a new section in JSON-RPC-interface.md to address issue #32274 by documenting that providing RPC credentials to untrusted clients

@DrahtBot

DrahtBot commented May 6, 2025 •

Copy link
Copy Markdown
Contributor

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

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/32424.

Reviews

See the guideline for information on the review process.

Type Reviewers
Stale ACK davidgumberg, janb84

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@DrahtBot DrahtBot added the Docs label May 6, 2025

@janb84 janb84 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK ed86201

The updated documentation provides greater clarity on the security consequences of sharing RPC credentials.

Comment thread doc/JSON-RPC-interface.md Resolved
@maflcko
maflcko requested a review from davidgumberg May 6, 2025 18:35
@davidgumberg

Copy link
Copy Markdown
Contributor

lgtm ACK ed86201

I opened #32274 because I wasn't sure if this status quo is desirable or not, but I believe this documentation note reflects the present expectations for bitcoind RPC servers.

@janb84

janb84 commented May 6, 2025

Copy link
Copy Markdown
Contributor

Please squash your commits

@crStiv

crStiv commented May 6, 2025

Copy link
Copy Markdown
Contributor Author

Please squash your commits

@janb84 yeah sure, np

@janb84 janb84 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reACK 348dc97

Changes since last ACK:

  • Small textual change

@crStiv thnx for incorporating my nit !

@luke-jr

luke-jr commented May 14, 2025

Copy link
Copy Markdown
Contributor

Seems to contradict the existence of -rpcwhitelist

@crStiv
crStiv requested a review from janb84 May 19, 2025 10:50
@crStiv

crStiv commented May 19, 2025

Copy link
Copy Markdown
Contributor Author

Seems to contradict the existence of -rpcwhitelist

@luke-jr now seems to be better, what are your thoughts?

@janb84

janb84 commented May 19, 2025

Copy link
Copy Markdown
Contributor

Would move the remark of the -rpcwhitelist to the end of the section and add something about the -rpcwhitelistdefault function that is needed to set the default on no whitelist for all users. The added documentation is still strong imo 👍

@janb84 janb84 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re ACK d6f622f

Changes since last ACK:

  • Added text to clarify that there are additional flags to restrict RPC access

@crStiv

crStiv commented Aug 14, 2025

Copy link
Copy Markdown
Contributor Author

@davidgumberg @janb84 @luke-jr i'm not sure if I should mention all of you guys, please tell if not

but just wanted to make sure if everything is alright with this pr as it's inactive for almost three months

@janb84

janb84 commented Aug 14, 2025

Copy link
Copy Markdown
Contributor

Still looks like a good addition to me.

@davidgumberg

Copy link
Copy Markdown
Contributor

Please squash your commits: https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#squashing-commits

@crStiv

crStiv commented Aug 14, 2025

Copy link
Copy Markdown
Contributor Author

i tried to squash commits via GitHub Desktop and it seems to be I f"ckd all the things up

@janb84

janb84 commented Aug 15, 2025

Copy link
Copy Markdown
Contributor

i tried to squash commits via GitHub Desktop and it seems to be I f"ckd all the things up

yeah try to use the CLI, should be relatively straightforward (and changes are made local so if you mess up you can revert)

@crStiv

crStiv commented Aug 15, 2025 •

Copy link
Copy Markdown
Contributor Author

@janb84 i used CLI and and I dunno what I did wrong but I closed the PR, sorry for my dumbness, I hope it won't give you any trouble

@bitcoin bitcoin deleted a comment from varo0000000 Aug 15, 2025
@bitcoin bitcoin deleted a comment from varo0000000 Aug 15, 2025
@bitcoin bitcoin deleted a comment from varo0000000 Aug 15, 2025
achow101 added a commit that referenced this pull request May 2, 2026
938312d docs: clarify RPC credentials security boundary (crStiv)

Pull request description:

  Explicitly states that RPC credentials grant full administrative access to the node and filesystem resources accessible by bitcoind. Adds a new section in JSON-RPC-interface.md to address issue #32274 by documenting that providing RPC credentials to untrusted clients

  reopened #32424

  P.S. I've tried to somehow squash all the commits from the previous pr but accidentally closed the pr and had no idea how to return back, therefore created a new pr, I'm really sorry for the inconvenience

ACKs for top commit:
  achow101:
    ACK 938312d
  janb84:
    re ACK 938312d
  sedited:
    ACK 938312d

Tree-SHA512: 54db0651cfe4a92d700d09c822db5cb68f60f17a4634eb8f132939294e7a0ca2aea15ddc4d581610976158f7546e9c4463cfe113de9500162a0f107e168833cd
@bitcoin bitcoin locked and limited conversation to collaborators Aug 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants