strimzi / strimzi-kafka-oauth

OAuth2 support for Apache Kafka® to work with many OAuth2 authorization servers
Apache License 2.0
143 stars 89 forks source link

How to integrate kafka clients like- strimzi kafka connect or any other with keycloak enabled kafka broker? #130

Closed bharat15-ml closed 3 years ago

bharat15-ml commented 3 years ago

Hi Team,

Please give some overview on how we can integrate kafka connect to kafka broker as it have oauth authentication/authorization feature enabled?

Or any client which wants to connect with kafka broker what necessary packages or dependency required to include so that it will work with kafka broker?

I have seen in strimzi kafka images all the packages located in /opt/kafka/libs/* there can see packages related to oauth like - opa-authorizer-1.1.0.jar, kafka-oauth-server-plain-0.8.1.jar, kafka-oauth-server-0.8.1.jar, kafka-oauth-keycloak-authorizer-0.8.1.jar, kafka-oauth-common-0.8.1.jar, kafka-oauth-client-0.8.1.jar

Please let us know, Do we have to include all packages in clients, who wants to communicate with kafka broker in order to work?

scholzj commented 3 years ago

Have you read the README file? Kafka Connect is just a wrapper around Kafka clients. So the same what applies to them applies also to Kafka Connect: https://github.com/strimzi/strimzi-kafka-oauth#configuring-the-kafka-client-with-sasloauthbearer