Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't log connection-uri on connection failure #192

Merged
merged 1 commit into from
Oct 21, 2020
Merged

Don't log connection-uri on connection failure #192

merged 1 commit into from
Oct 21, 2020

Conversation

whenceforth
Copy link
Contributor

An aggressive fix for issue 189

It simply replaces a non-empty string entirely, to avoid the difficulties of parsing the uri and removing only the password.
(This was suggested as an option by @jysandy when creating the bug.)

While not ideal, this is better than logging a password.
Can we consider showing more information in this case as a future enhancement?

Context: luminus-migrations seem to require passing a URI rather than a db-spec, so issue 189 affects all users of that library.

An aggressive fix for #189
It simply replaces a non-empty string entirely, to avoid the difficulties
in parsing the uri and removing only the password.
@yogthos yogthos merged commit ae15dec into yogthos:master Oct 21, 2020
@yogthos
Copy link
Owner

yogthos commented Oct 21, 2020

This looks reasonable to me as an immediate fix. I agree that logging the password is definitely worse than the alternative. Just pushed out 1.3.1 to Clojars with the fix.

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.

2 participants