How to deploy a listener with Oauth authentiication #4982
barryzhounb
started this conversation in
General
Replies: 1 comment 6 replies
-
You have to distinguish two different things which in Kafka are separate - authentication & authorization. In the first config you got from the blog post (apart from the old listeners format which you should not use), the |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In OpenShift, I have installed keycloak as Oauth server, now I am configuring Stimizi Kafka cluster. I had some experiences in how to deploy a SSL authentication as following, it worked well.
Now I am going to replace SSL with Oauth.
I refer to https://strimzi.io/blog/2019/10/25/kafka-authentication-using-oauth-2.0/, it looks like:
but I refer to https://strimzi.io/docs/operators/latest/using.html, it looks a little difference.
So I get confused and not sure how to deploy a listener with Oauth.
Now, I have prepared the following information for deploying Oauth listener.
Step 1: I have created a kafka-broker client id and get its secret. Then I create a secret broker-oauth-secret.
Step2: This is URLs for Keycloak accessing.
Keycloak: https://keycloak-barry-test.apps.aaaa-1.cp.fyre.ibm.com/auth
Keycloak Admin Console: https://keycloak-barry-test.apps.aaaa-1.cp.fyre.ibm.com/auth/admin
Keycloak Account Console: https://keycloak-barry-test.apps.aaaa-1.cp.fyre.ibm.com/auth/realms/myrealm/account
Then I want to refactor the following with above info
I got stuck and not sure how to deploy it. Please give some guidance how to deploy listener with Oauth, an example is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions