abraham-leal / kafka-idle-topics

A tool to detect idle topics in your cluster
Apache License 2.0
19 stars 2 forks source link

Authentication error connecting to Confluent Cloud #15

Open Damien-Fayet opened 1 week ago

Damien-Fayet commented 1 week ago

Hello,

It's a really interesting tooling that I would love to test out ! Unfortunately, I'm running into an error while trying it :

$GOPATH/bin/kafka-idle-topics -bootstrap-servers pkc-xxxx.northeurope.azure.confluent.cloud:9092 -username xxxx -password xxxx -kafkaSecurity plain_tls

2024/11/22 16:13:34 Unable to create Kafka Client: kafka: client has run out of available brokers to talk to: kafka server: SASL Authentication failed: Authentication failed

Of course, I'm sure of my credentials (even tried with others), those are org Admin ones so it should not be credentials issue.

Did I miss something on the configuration ?

Thanks !

abraham-leal commented 6 days ago

Hi @Damien-Fayet ! Config looks right. Have you confirmed there are no network restrictions that may be affecting the tool? AKA have you tried producing or consuming a message from the machine you ran this from?

Damien-Fayet commented 3 days ago

Hello @abraham-leal, Yes indeed, I can consume messages using either console consumer or kcat for example. All from same machine, same environment, same shell.