How interal producer with port 9092 access an topic that has authorization #4523
Unanswered
barryzhounb
asked this question in
Q&A
Replies: 2 comments 4 replies
-
Is this the same question as answered on https://stackoverflow.com/questions/66510182/topicauthorizationexception? In any case the answer there seems to apply! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @scholzj , if port 9092 apply no authentication to connect cluster, but topic has authorization, you mean it will be an ANONYMOUS user to access. Now how can I add permission for ANONYMOUS to access dlake-topic? Is the following correct?
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First, define a Kafka cluster named dlake-cluster, 9094 for external access with SSL protocol, and 9092 with plain protocol for internal access
Then, define a topic named dlake-topic
Then, define a user ACL named dlake-user
Now I retrieve cluster-ca-cert, dlake-user certificate and keystore, then generated truststore.jks and keystore.jks, and generate file ssl-config for producer/consumer client as following.
Then external client (producer/consumer) use the above configuration, they can access dlake-topic via Routes port 443, it did authentication and authorization with SSL protocol succesfully.
Now, an app inside internal cluster want to access dlake-topic via port 9092. As you know, port 9092 listener doesn't need to do authentication, but app want to access dlake-topic, in fact, in order to access dlake-topic, it need some permission with authorization for dlake-topic. I am confused here and get stuck here. How this app inside OpenShift access dlake-topic?
(1) Does app inside internal cluster need to use the same ssl-config?
(2) is it possible for app inside internal cluster to access dlake-topic without athentication and authoriation?
(3) Could you please give a complete solution how app inside internal cluster access dlake-topic?
Beta Was this translation helpful? Give feedback.
All reactions