Skip to content

Cleanse database connection string when logging - #149

Merged
pennydreadful merged 3 commits into
pennydreadful:developfrom
ch604:develop
Sep 10, 2026
Merged

pennydreadful merged 3 commits into
pennydreadful:developfrom
ch604:develop

Conversation

@ch604

@ch604 ch604 commented Apr 8, 2026

Copy link
Copy Markdown

resolves #101, use CleanseLogMessage when recording the migration info message. Also removes two unneeded readarr docs.

@pennydreadful
pennydreadful merged commit 8962edd into pennydreadful:develop Sep 10, 2026
1 check passed
ricetim added a commit to ricetim/readarr-rresurrected that referenced this pull request Oct 14, 2026
The log files and the log database run every message through
CleanseLogMessage, but the console target didn't, and in Docker the
console is what `docker logs` shows: API keys in failing request URLs and
the PostgreSQL password in the migration log line appeared in clear. The
console layout is now wrapped in a ${cleanse} renderer. The colon inside
it has to be escaped, or NLog drops the rest of the layout.

Builds on Bookshelf pennydreadful/bookshelf#149, which cleansed the migration line alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tn4bj5wVjKTZjyEap9F7e4
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.

MigrationController leaks db credentials in logs

3 participants