-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controller certificate CN too long #445
Comments
The error message indicates the generation of a certificate for a KafkaUser was rejected by cert-manager due to the CN being longer than 64 characters. (see https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1beta1.CertificateSpec -> commonName) kafka-operator passes the name of KafkaUser into CN when requesting a certificate from cert-manager for the user. Do you have any KafkaUser with name longer than 64 chars? |
I don't. I really don't think this was about a user, I could see the cert |
If you look carefully at the error log line you pasted above:
This shows that the kakfauser controller ( For details see: Since |
You're right, there is technically a user called |
What do you mean by |
That's the broker controller user, isn't it? |
You're right that is the user created for the controller. |
Describe the bug
Kafka clusters with medium sized names in namespaces with medium sized names fail to create, with an error like the following in the logs:
Steps to reproduce the issue:
Create a Kafka cluster in a namespace whose effective commonName is longer than 64 characters
Additional context
I ran into this error rebuilding my cluster after #444 happened. Weirdly, this was successful before, and in production I have an even longer name ("production" vs "stage") that is running just fine. Even though I have the same versions of cert-manager and kafka-operator in both environments, the stage environment has been upgraded to Kubernetes 1.16, while production is still on 1.15.
I found a workaround for this, which was to disable the admission webhook for cert-manager. I think I created these clusters (and their certs) before the webhook was in play, which is why production is still working - the resource was already admitted before the validation was added.
The text was updated successfully, but these errors were encountered: