-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Eliminate the need for activator restart when the certs update of internal encryption #13694
Comments
Fixes: 13754 |
/triage accepted #13754 highlights that if you don't restart the activator it will start serving 503s |
Just a quick note for this:
It would be possible to support by using
Golang does not have the feature to reload root certificate and some requests are alrady opened like golang/go#41888 golang/go#35887 |
I'm wondering if we could do something like this: https://github.com/ReToCode/serving/blob/803b9f9d232a8e202df6edabe276f512279697b3/pkg/activator/certificate/resolver.go to improve the performance issue? |
Great! Yes, |
Currently we need to restart activator when certificates are updated. This patch fixes it by: * Using `GetCertificate` for server certs. * Using `VerifyPeerCertificate` for custom CA verification. * Caching the cert for peformance. Fix knative#13694
Certificates may also expire and be replaced. |
That's already done by contro-protocol - https://github.com/knative-sandbox/control-protocol/blob/main/pkg/certificates/certs.go#L194-L200 |
With said, I think there is a bug in the rotation - knative-extensions/control-protocol#272 😞 |
Currently we need to restart activator when certificates are updated. This patch fixes it by: * Using `GetCertificate` for server certs. * Using `VerifyPeerCertificate` for custom CA verification. * Caching the cert for peformance. Fix knative#13694
…abled (#13854) * Load certificate when they are updated Currently we need to restart activator when certificates are updated. This patch fixes it by: * Using `GetCertificate` for server certs. * Using `VerifyPeerCertificate` for custom CA verification. * Caching the cert for peformance. Fix #13694 * Merge if statement * Use TLSConfig for cache * Use LegacyFakeDnsName * Clean up * Fix CI * Drop delete and lock * Get secret beforehand * certificates to certificate * Fill in certificate before reconciler loop * Rename function
Describe the feature
Currently activator must be restarted when certs are updated. The requirement should be eliminated.
The text was updated successfully, but these errors were encountered: