kafka mTLS authentication issue with External Certificate #10535
Replies: 8 comments 6 replies
-
Yes, the subject of the certificates should be |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response @scholzj There are 2 things which wanted to ask.
|
Beta Was this translation helpful? Give feedback.
-
Hello @scholzj Thanks for you quick response and Sorry for the delay response from my side (there was vacations). We tried the method of using principal builder class and build the custom image of kafka. Also, we have given this new image and principal builder class in our kafka cluster configuration (snip of code attached below) but we are getting below error. (Attached the screenshot).
|
Beta Was this translation helpful? Give feedback.
-
Hello @scholzj I have changed the formatting of principal builder class code and kafka cluster deployment code. |
Beta Was this translation helpful? Give feedback.
-
Hello @scholzj we tried to use the same regex as you have used in principal builder class.
|
Beta Was this translation helpful? Give feedback.
-
Hi @scholzj , This way it works as the super user.
Kafkauser CRD, this way it fails to authorize(Status 409):
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response. Below is the CRD, along with the broker and client applications logs.
Error Logs AKHQ log
Broker logs
|
Beta Was this translation helpful? Give feedback.
-
Hello @scholzj Thank you so much for the help, principal builder class is working fine now with ACLs format suggested by you. |
Beta Was this translation helpful? Give feedback.
-
Hello @scholzj
we are getting the authentication issue with when we are using the user with type:tls-external.
as our external CA which sign the certificate for user, also include C=<some_value> OU=<some_value> in subject name. (and this is mandate in our organization )
as i understood from the post here that in subject name only the CN=<user_name> should be there.
6515
so as you suggested that we should use the kafkaAdmin API, but i am not sure how to use it to manage user separately (not from operator).
can you please suggest some other solutions?
Please let me know if you wanted to see our code.
Beta Was this translation helpful? Give feedback.
All reactions