-
Notifications
You must be signed in to change notification settings - Fork 251
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
#780: do not log any connection string above DEBUG level #781
base: master
Are you sure you want to change the base?
Conversation
* Do not log connection string above DEBUG level
@mulder999 do you still need this? Despite it might pass any requirements you might have by removing the I was checking how psql handles this in libpq:
|
The solution here is to anonymize the secrets instead of removing the whole conninfo string |
Thank you for getting back to me. As I mentioned, this was intended to be a quick fix for a high risk security issue. Masking the password is perfectly acceptable and precisely the enhancement I was suggesting. |
To be honest, I personally don't think a quick fix would go into upstream. We'll discuss idea how we can mask the password but as long as you don't update the patch to provide this masking or similar, we might need to close this PR. |
Thank you for the feedback. I understand the priority for a robust, upstream-worthy solution, especially for something as sensitive as password masking. My concern is that this security risk has been open for almost two years, and I worry that delaying further could continue to expose some users to potential vulnerabilities. While I’m unable to update the patch right now, I believe implementing a temporary solution might mitigate the risk until a more comprehensive fix can be developed. I’d be happy to help with any discussions around this if it’s helpful. |
I think we should close this PR and open an issue for development on password masking. We are planning on releasing PG17 support, plus some low hanging fruit, and this work would delay that. |
#780: do not log connection string above DEBUG level
Remark
unable to connect
andunable to ping
messages in order to still give valuable hints to admin