Skip to content

fix(node): redact RPC URLs in chain-read warnings #2264

Closed

Description

@alpergundogdu

Problem

Three chain-read warnings log raw alloy errors with %err:

  • crates/node/src/binding_check.rs:106
  • crates/node/src/buyer_channel.rs:841
  • crates/node/src/buyer_channel.rs:1778

alloy's Display can include the reqwest URL, and an RPC URL can carry the provider API key, so the key can land in node logs.

Fix

Log these with %sanitize_rpc_display(&err) (crates/common/src/redact.rs:141), or %sanitize_err_chain(&err) where the chain matters. Grep the workspace for other %err / %e sites on alloy provider errors and convert them too. Add a test that a provider error whose URL holds a key logs without it.

Found while reviewing #2259.

Activity

  1. self-assigned this
    on Oct 1, 2026
  2. added a commit that references this issue on Oct 1, 2026
    6a66769
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions