morganstanley / modern-cpp-kafka

A C++ API for Kafka clients (i.e. KafkaProducer, KafkaConsumer, AdminClient)
Apache License 2.0
331 stars 86 forks source link

How to configure Kafka client to authenticate using `SASL_PLAINTEXT` and `SCRAM-SHA-256`? #213

Closed baqeri closed 1 month ago

baqeri commented 1 year ago

How to configure the Kafka client to authenticate using SASL_PLAINTEXT and SCRAM-SHA-256?

When I configure Kafka consumer by this, it says:

N5kafka14KafkaExceptionE: 2023-07-05 19:51:10.546194: Local: Invalid argument or configuration [-186] (.../include/kafka/KafkaClient.h:429)

Does it throw such an exception because modern-cpp-kafka doesn't support it?

kenneth-jia commented 11 months ago

Hi, @baqeri I don't think the problem still exists, -- it was fixed almost 2 years ago, https://github.com/morganstanley/modern-cpp-kafka/pull/86

eaxeax commented 5 months ago

the problem is on librdkafka side. You need to compile lib with sasl support

Neustradamus commented 4 months ago

To follow this ticket

Neustradamus commented 1 month ago

@baqeri: Where is the fix? Without a solution, do not close a ticket!

eaxeax commented 1 month ago

@baqeri: Where is the fix? Without a solution, do not close a ticket!

the problem is on librdkafka side. You need to compile lib with sasl support