Issue when using external certificate for Strimzi Operator #10136
Replies: 2 comments 7 replies
-
Hi, since regex is not allowed in strimzi, I had to write a custom class and then set that as a parameter whilst kakfa starts. Let me see the write up , I will share the link. |
Beta Was this translation helpful? Give feedback.
-
The username (subject of your certificate) has to correspond to what Strimzi is using if you want to use the User Operator. So the subject of your certificate should be always only |
Beta Was this translation helpful? Give feedback.
-
HI All,
We use strimzi operator via OpenShift to create a Kafka cluster.
But in my organization, we were asked not to use the strimzi signed certificate for interaction with the client.
Hence, I updated the Client CA to the
company signing authority
and created user with authentication type astls-external
.When I tried to produce a message to a topic using a certificate singed by the company signing authority, I could see that the authentication is passing (since I did not get SSL handshake failed error) but the authorization failed with Error
ERROR [Producer clientId=console-producer] Topic authorization failed for topics [dev-testing-topic] (org.apache.kafka.clients.Metadata)
On checking the Broker logs, found that the acls are failing because of the mismatch between the username and cert subject.
INFO Principal =
User:C=XX,O=XXXX,CN=mws-kafka-dev-kafka-0-mws-kafka-dev.apps.ocp-ap-test
is Denied Operation = Write from host = 10.131.0.1 on resource = Topic:UNKNOWN:NONE for request = InitProducerId with resourceRefCount = 0 (kafka.authorizer.logger) [data-plane-kafka-request-handler-6]
On checking the certificate, I found that even though I created the csr with just the CN name part in the subject, once the certificate was signed, the country and Organization part got added automatically in the certificate and strimzi only accepts cert subjects in the format
CN=<username>
. Our security team confirmed that addition of Country and Organization to the subject cannot be avoided.Now, is there any way for us to use our company signed certificates to interact with strimzi ? Any help is appreciated!!
cc @scholzj
Beta Was this translation helpful? Give feedback.
All reactions