aiokafka icon indicating copy to clipboard operation
aiokafka copied to clipboard

SCRAM SASL mechanism wrongly logged as PLAIN

Open b4dboi opened this issue 1 year ago • 0 comments

Hi,

I found out that the SCRAM SASL mechanism is likely forgotten in the logging logic at conn.py. I am using a SCARAM-SHA-256 SASL mechanism and after a client successfully connects to Kafka the log shows Authenticated as xxx via PLAIN.

I believe there is a missing condition elif self._sasl_mechanism.startswith('SCRAM-SHA-'): before the following line. https://github.com/aio-libs/aiokafka/blob/6360747c4305d1d096d5e55037d60a12c4c9ab15/aiokafka/conn.py#L340

b4dboi avatar Jul 27 '22 12:07 b4dboi