Repository navigation
Conversation
When trustedcoin finds bitcoin-rpcuser and bitcoin-rpcpassword in the Core Lightning config, it logs both at startup together with the host and port. With the plugin enabled, Core Lightning's bitcoind RPC password ends up in the lightningd journal, which the operator account can read because it is in systemd-journal. Pin the redaction commit from nbd-wtf/trustedcoin#43 with fetchpatch. The existing patches from nbd-wtf/trustedcoin#44 also include PR 43's connection-error formatting fix. Assisted-by: Codex (GPT-6)
The trustedcoin test only checked that RPC works, so the password could come back into the startup line without anything failing. Wait for the redacted settings line and check the clightning journal for the bitcoind RPC password used by Core Lightning. Assisted-by: Codex (GPT-6)
sebsgent
reviewed
Nov 30, 2026
sebsgent
left a comment
Contributor
There was a problem hiding this comment.
Fix and test look good; one item before merge.
Must
- No release-note draft. Per AGENTS.md, package-only changes go in
docs/release-notes/0.2.2/<title>.md. This one matters to users: on any node that ran trustedcoin before this fix, the clightning bitcoind RPC password is still in the existing clightning journal, readable by theoperatoraccount and any journal shipping. The patch only stops new entries, so users need to be told the old ones exist and what they can do about them.
Tested: CI signet (trustedcoin enabled) ran the new check on the previous push (run 46506914096, reused from cache on 51045b3): the startup line shows password: <redacted> and the journal grep passes. Upstream main.go has no other log of pass.
Assisted-by: Claude Code (Claude Opus 5.5)
Assisted-by: Codex (GPT-6)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TrustedCoin logs its bitcoind RPC settings at startup, including the password Core Lightning uses to authenticate. Anyone with access to the clightning journal can read that credential.
Apply the redaction commit from upstream PR 43 to the pinned TrustedCoin package. The startup log still shows the RPC user, host, and port, with in the password field. The existing PR 44 patches already include PR 43’s connection-error formatting fix. Upstream PR 43 · Upstream PR 44
The regression test waits for the redacted startup line and checks the full clightning journal for the actual RPC password.
Verification