NO JIRA: avoid logging AMQP credentials in python binding#446
Conversation
|
One issue with this fix is that it just omits printing the auth details as if they weren't even there - for proper debugability of authentication issues you really should be able to see that they were there but mask them from logging. |
|
Thanks for the feedback. I updated the PR. I've moved the fix into For the username, I agree it's not really sensitive information, so it's left in clear and this also helps correlate authentication attempts in logs as you mentioned. |
When connecting to an AMQP broker using a URI that contains credentials (e.g. amqps://user:password@host:5671), the _Connector._connect method logged the full Url object via %r which includes username:password in the output.
I replaced the log to only log the scheme, host and port.