docs: keep public RustChain TLS verification enabled#5619
Conversation
|
CI note after opening: the This PR only changes docs plus I am not bundling dependency packaging changes into this docs fix because that is a separate baseline CI issue. |
TJCurnutte
left a comment
There was a problem hiding this comment.
Approved. This fixes the security-relevant docs drift from #5618: public https://rustchain.org examples no longer teach users to disable certificate verification, while the private/self-signed-node guidance is scoped to an explicit CA bundle instead of verify=False.
Validation run locally on head b25852b8e1dbdddbedc726b517063a9f76c3f727:
git diff --check origin/main...HEADpassed.python3 -B -m py_compile tests/test_public_docs_tls_examples.pypassed.python3 -B -m pytest -q tests/test_miner_checklist.py tests/test_postman_collection_validator.py tests/test_public_docs_tls_examples.py --tb=shortpassed with11 passed in 0.48s.python3 tools/bcos_spdx_check.py --base-ref origin/mainreturnedBCOS SPDX check: OK.- Custom scan across the 49 changed files found
311insecure public-host TLS examples onorigin/mainand0after this PR. The scan coveredcurl ... -k/--insecureagainsthttps://rustchain.org, Pythonrequests.*(... verify=False ...)blocks forhttps://rustchain.org, and public-host self-signed/verify=Falselabeling. - Live strict-TLS probes with
curl -fsS --max-time 20returned HTTP200forhttps://rustchain.org/health,https://rustchain.org/api/miners, andhttps://rustchain.org/wallet/balance?miner_id=iamdinhthuan.
The broad docs sweep is justified here because the regression test now prevents the specific public-host TLS anti-pattern from reappearing across Markdown/HTML docs. I did not see runtime auth, transfer, withdrawal, or payout code paths changed in this PR.
jaxint
left a comment
There was a problem hiding this comment.
LGTM! Great work on this PR. 🚀
Code Review: PR #5619Title: docs: keep public RustChain TLS verification enabled SummaryDocumentation update emphasizing TLS verification best practices. CriticalNone. WarningNone. Suggestion
VerdictApprove - Documentation improvement promotes security best practices. Review by Herr Amano | 2026-05-18 |
💰 Wallet Address for Bounty Rewardsminer_id: Verification: Please transfer rewards to this address. Wallet address added by Herr Amano |
|
Closing as stale branch — would cause destructive deletions if merged. Your branch was filed roughly 155 commits behind current main. Since then, many overlapping fixes from other contributors have landed via parallel PRs. GitHub's Bounty credit acknowledgedIf your fix addressed a real bug, the canonical version has very likely already shipped via a parallel contributor's PR over the past two weeks. Specific cases covered by today's audit:
If you want fresh reviewRebase against current main and verify your diff shows roughly the size of the changes you originally made: If the deletion count is significantly higher than what you added, the branch is still picking up stale assumptions — recreate from a fresh main. Thanks for the contribution work this week. |
Fixes #5618.
Related bounty: Scottcjn/rustchain-bounties#71
Payout/miner id if accepted:
iamdinhthuanSummary
https://rustchain.orgcurl -kexamples with strict-TLScurl -fsSexamplesverify=Falsefrom Python requests examples for the public RustChain hostnameDuplicate and Safety Checks
curl -k/verify=Falsepublic-host guidance.Validation
python3 -B -m pytest -q tests/test_miner_checklist.py tests/test_postman_collection_validator.py tests/test_public_docs_tls_examples.py --tb=short->10 passed in 0.07sgit diff --check HEAD~1..HEAD-> passedpython3 tools/bcos_spdx_check.py --base-ref origin/main->BCOS SPDX check: OKrg -n "curl -[A-Za-z]*k[A-Za-z]*.*https://rustchain\\.org|verify=False" README.md docs/API.md docs/README.md docs/zh-CN/README.md-> no matchescurl -fsS --max-time 15 -o /tmp/rustchain-health.json -w '%{http_code}\n' https://rustchain.org/health->200curl -fsS --max-time 15 -o /tmp/rustchain-miners.json -w '%{http_code}\n' https://rustchain.org/api/miners->200curl -fsS --max-time 15 -o /tmp/rustchain-balance.json -w '%{http_code}\n' 'https://rustchain.org/wallet/balance?miner_id=iamdinhthuan'->200