Skip to content

Backport fix mark peer rpcs unsafe#1039

Merged
gilescope merged 2 commits into
release/node-0.22.1from
backport-fix-mark-peer-rpcs-unsafe
Mar 19, 2026
Merged

Backport fix mark peer rpcs unsafe#1039
gilescope merged 2 commits into
release/node-0.22.1from
backport-fix-mark-peer-rpcs-unsafe

Conversation

@gilescope

@gilescope gilescope commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Backport of #1027 to release/node-0.22.1.

Marks the network_peerReputations, network_peerReputation, and network_unbanPeer RPC methods as unsafe so they require --rpc-methods unsafe to be called. This prevents exposing peer reputation data and peer management on public-facing RPC endpoints.

Changes

  • Added with_extensions to peerReputations and peerReputation RPC method attributes
  • Added check_if_safe(ext)? guard to both method implementations
  • Included change file

Signed-off-by: Giles Cope <gilescope@gmail.com>
Signed-off-by: Giles Cope <gilescope@gmail.com>
@gilescope gilescope requested a review from a team as a code owner March 19, 2026 18:48
@gilescope gilescope merged commit aa66c28 into release/node-0.22.1 Mar 19, 2026
27 of 31 checks passed
@gilescope gilescope deleted the backport-fix-mark-peer-rpcs-unsafe branch March 19, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants