Skip to content

fix(rpc-client): keep request arguments and results out of the logs - #1147

Merged
ZocoLini merged 1 commit into
devfrom
fix/rpc-redact-logs
Oct 10, 2026
Merged

ZocoLini merged 1 commit into
devfrom
fix/rpc-redact-logs

Conversation

@ZocoLini

@ZocoLini ZocoLini commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #1122.

PR Hygiene · 39048d2

  • Bots — coderabbitai skipped after its own rate limit
  • Self-review — post /self-reviewed
  • Build green
  • Approvals
    • files with no dedicated owner (rpc-client/src/client.rs) — QuantumExplorer or xdustinface

When every merge requirement is met, the PR Hygiene check passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.

The DEBUG request log wrote every argument and the TRACE response log
every result, which include wallet secrets such as the `importprivkey`
key, wallet passphrases and the `dumpprivkey` result. Log only the
command.

Closes #1122

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 46 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: dashpay/rust-dashcore/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e4ec486c-7fb4-4cde-a38e-d5e77da9d57c
📥 Commits

Reviewing files that changed from the base of the PR and between 7b4f91b and 39048d2.

📒 Files selected for processing (1)
  • rpc-client/src/client.rs
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Waiting for bot review — coderabbitai not yet. Wait for the missing reviews, or a writer can post /skip-bots to proceed without them; blocking findings still need addressing.
Full checklist in the description.

@github-actions github-actions Bot added the waiting-bots Waiting for the review bots to report on this head label Oct 8, 2026
@codecov

codecov Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.05%. Comparing base (7b4f91b) to head (39048d2).
⚠️ Report is 5 commits behind head on dev.

Files with missing lines Patch % Lines
rpc-client/src/client.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1147      +/-   ##
==========================================
+ Coverage   76.43%   78.05%   +1.62%     
==========================================
  Files         239      302      +63     
  Lines       56011    79253   +23242     
==========================================
+ Hits        42813    61864   +19051     
- Misses      13198    17389    +4191     
Flag Coverage Δ
core 75.14% <ø> (ø)
ffi 51.90% <ø> (ø)
rpc 49.27% <0.00%> (+0.06%) ⬆️
spv 92.34% <ø> (-0.04%) ⬇️
wallet 81.99% <ø> (?)
Files with missing lines Coverage Δ
rpc-client/src/client.rs 10.17% <0.00%> (+0.03%) ⬆️

... and 71 files with indirect coverage changes

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Bots are done — your move: post /self-reviewed.
Full checklist in the description.

@github-actions github-actions Bot added waiting-self-review Waiting for the author to post /self-reviewed bot-review-skipped A required review bot did not report; it was skipped by the window or by a person. and removed waiting-bots Waiting for the review bots to report on this head labels Oct 8, 2026
@ZocoLini

Copy link
Copy Markdown
Collaborator Author

@coderabbitai approve

@coderabbitai

coderabbitai Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Comments resolved and changes approved.

@ZocoLini
ZocoLini merged commit fefeafa into dev Oct 10, 2026
36 of 37 checks passed
@ZocoLini
ZocoLini deleted the fix/rpc-redact-logs branch October 10, 2026 12:35
xdustinface pushed a commit that referenced this pull request Oct 21, 2026
…1147)

The DEBUG request log wrote every argument and the TRACE response log
every result, which include wallet secrets such as the `importprivkey`
key, wallet passphrases and the `dumpprivkey` result. Log only the
command.

Closes #1122

Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit fefeafa)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot-review-skipped A required review bot did not report; it was skipped by the window or by a person. waiting-self-review Waiting for the author to post /self-reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rpc-client: redact secrets from debug/trace request and response logs

1 participant