Repository navigation
DSN Secret Leak Fix - #354
Open
walsykerem wants to merge 3 commits into
Open
walsykerem wants to merge 3 commits into
walsykerem wants to merge 3 commits into
Conversation
|
Kerem seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.
Reviewed by Cursor Bugbot for commit cc76dac. Configure here.
AI review gate — Cursor Bugbot found issues
Unresolved findings (2): What to do:
Re-run the gate with “Re-run jobs” after an approval or a finished review. A push re-runs it automatically. |
serprex
approved these changes
Nov 26, 2026
serprex
left a comment
Member
There was a problem hiding this comment.
lgtm, not sure why CLA is choking on whoever Kerem is in your commits
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.

DSN Secret Leak Fix
Invalid DSN errors now redact credentials while keeping the scheme, host, port, database and key for diagnosis.
The fix was tested, migrated into the main project, and verification detected no regressions.
Note
Low Risk
Localized change to error message formatting only; behavior of successful DSN parsing is unchanged and tests assert secrets stay out of error strings.
Overview
Invalid Postgres and ClickHouse DSN parsing errors no longer echo passwords in their
Displaytext. EveryDsnErrorvariant now formats URLs through a newredacted()helper instead ofDebug({:?}).The helper masks userinfo (
postgres://***@host/...) andpassword=query values (password=***) while leaving scheme, host, port, path, and other query keys intact for troubleshooting. It works on raw strings so redaction still applies when the URL cannot be fully parsed.Coverage is added in
errors_redact_credentials_but_keep_diagnosticfor postgres authority passwords, ClickHouse query passwords, and mixed invalid-parameter cases.Reviewed by Cursor Bugbot for commit cc76dac. Bugbot is set up for automated code reviews on this repo. Configure here.