Quarkus: Smallrye Kafka configure channels for distinct bootstrap servers using different KEY and PASSWORD #30461
-
Hi all, My goal is to produce events in 2 different channels using distinct bootstrap servers using jaas configuration using SASL_SSL, but I am not able to setup the channels to authenticate correctly on the bootstrap servers. My current config is the one on the code block and it works fine with KAFKA1 cluster
note: using Quarkus 2.15.3.Final How to configure the authentication for KAFKA2 cluster? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
/cc @Ladicek (smallrye), @alesj (kafka), @cescoffier (kafka), @jmartisk (smallrye), @ozangunalp (kafka), @phillip-kruger (smallrye), @radcortez (smallrye) |
Beta Was this translation helpful? Give feedback.
-
Hi, you can continue using the global kafka config like |
Beta Was this translation helpful? Give feedback.
-
Hi @ozangunalp thanks for your help. I have applied the suggested
When deploying the application I am getting the following error now Am I doing something incorrect? One additional note I have one consumer for KAFKA1 and it has authenticated correctly only the producers are failing. |
Beta Was this translation helpful? Give feedback.
-
So after a lot of digging I've understood how to configure, as the documentation states a bean can provide additional parameters via kafka-configuration parameter. The working configuration is the following
Provider bean:
|
Beta Was this translation helpful? Give feedback.
So after a lot of digging I've understood how to configure, as the documentation states a bean can provide additional parameters via kafka-configuration parameter.
The working configuration is the following
Provider bean: