-
Notifications
You must be signed in to change notification settings - Fork 37
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
operator request conversion-webhook error: x509: certificate signed by unknown authority #399
Comments
Hi, thanks for reporting. I believe this should work, we haven’t seen this issue on the Try Now production cluster. The certificate for the webhook is self-signed since it’s only used internally within the cluster, so there shouldn’t be any issues during renewal. Could you check the READY state of the certificate and the status/age of the conversion webhook?
Does restarting/killing the |
Yes, restarting the conversion-webhook pod can resolve this issue. The validity period of the certificate generated by cert-manager is 3 months. I am worried that this problem may occur again if the certificate expires after 3 months. Or why not use HTTP instead of HTTPS inside the cluster? This avoids the problem of SSL certificate expiration. |
Thanks. To summarize what I found out, the certificate is stored as a Kubernetes secret and loaded into the conversion-webhook pod as a volume mount. When the certificate changes, the mounted files update automatically: The conversion webhook consumes the certificate via these options: It looks like we are missing this option to instruct Quarkus to reload the certificate periodically: In our production environments, the webhook likely never ran longer than three months without Kubernetes restarting it (due to node/cluster updates or scaling), so we never encountered this issue before. We will fix it for the next release |
Describe the bug
I used to use theia-cloud version 0.10.0, then I upgraded to version 1.0.0.
After upgrading to 1.0.0 for a while, I couldn't log into theia-cloud in my browser.
I see in the background that the operator Pod failed to start.
operator Pod log:
Certificate validation failed when the operator accessed the conversions-webhook service.
In theia-cloud 0.10.0, the workspace CRD is v1beta4; In theia-cloud 1.0.0, the workspace CRD version is v1beta5. so the CRD version needs to be converted.
I see that the conversion-webhook Pod will no longer log output after January 28, 2025 08:37.
Also I see that the HTTPS certificate used by the convertition-webhook was updated on January 28, 2025 at 08:37 through cert-manager.
I assume that the conversion-webhook service does not automatically update the certificate internally, causing an error.
Expected behavior
Conversions-webhook can convert CRD version normally,
The operator Pod can be started successfully.
Cluster provider
No response
Version
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: