You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Eliminate the need for activator restart when the certs update of internal encryption #13694
It would be possible to support by using GetCertificate() like #13695.
However, it causes a performance degradation especially TestActivatorOverload test always fail.
activator -> QP
Golang does not have the feature to reload root certificate and some requests are alrady opened like golang/go#41888golang/go#35887
Activity
davidhadas commentedon Feb 28, 2023
Fixes: 13754
dprotaso commentedon Mar 1, 2023
/triage accepted
/milestone Icebox
#13754 highlights that if you don't restart the activator it will start serving 503s
nak3 commentedon Mar 2, 2023
Just a quick note for this:
It would be possible to support by using
GetCertificate()like #13695.However, it causes a performance degradation especially
TestActivatorOverloadtest always fail.Golang does not have the feature to reload root certificate and some requests are alrady opened like golang/go#41888 golang/go#35887
ReToCode commentedon Mar 2, 2023
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?
nak3 commentedon Mar 2, 2023
Great! Yes,
CertResolvercaches the certificates so it should improve the performance. I would like to see if it will pass the CI result.Load certificate when they are updated
davidhadas commentedon Apr 7, 2023
Certificates may also expire and be replaced.
There needs to be a mechanism to update certificates.
nak3 commentedon Apr 7, 2023
That's already done by contro-protocol - https://github.com/knative-sandbox/control-protocol/blob/main/pkg/certificates/certs.go#L194-L200
So, the certificate in the secret can be updated automatically then #13854 will load the new cert.
nak3 commentedon Apr 7, 2023
With said, I think there is a bug in the rotation - knative-extensions/control-protocol#272 😞
Load certificate when they are updated
Load certificate when they are updated when internal-encryption is en…