Skip to content

Stop logging payment preimages at INFO level and import clean up - #1035

Merged
tnull merged 1 commit into
lightningdevkit:mainfrom
elnafateh:elnafateh/fix/stop-logging-preimages
Aug 10, 2026
Merged

Stop logging payment preimages at INFO level and import clean up#1035
tnull merged 1 commit into
lightningdevkit:mainfrom
elnafateh:elnafateh/fix/stop-logging-preimages

Conversation

@elnafateh

@elnafateh elnafateh commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Closes #1029

This removes the payment preimage from the success log message in the outbound payment flow. Preimages are sensitive proof-of-payment data and shouldn't be written to logs by default. The payment hash is kept for diagnostics, and the preimage is still available via the PaymentSuccessful event for anyone who needs it.

@ldk-reviews-bot

ldk-reviews-bot commented Aug 9, 2026

Copy link
Copy Markdown

I've assigned @tnull as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@ldk-reviews-bot
ldk-reviews-bot requested a review from tnull August 9, 2026 14:38

@tnull tnull left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please provide a commit description that motivates the change, as well as briefly describes what the commit does.

Comment thread src/entropy.rs Outdated
Payment preimages are proof-of-payment and correlation material. The INFO
log previously included the full preimage after a successful outbound
payment, exposing it to log collectors and anyone with log access.

Remove the preimage from the 'Successfully sent payment' log message in
src/event.rs, retaining only the payment hash for diagnostics. The
preimage remains accessible via the PaymentSuccessful event and payment
store APIs.
@elnafateh
elnafateh force-pushed the elnafateh/fix/stop-logging-preimages branch from fdd56cc to 8828e52 Compare August 10, 2026 07:55
@tnull
tnull merged commit 0119ce3 into lightningdevkit:main Aug 10, 2026
25 checks passed
@elnafateh
elnafateh deleted the elnafateh/fix/stop-logging-preimages branch August 10, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Successful payment preimages are logged at INFO

3 participants