Skip to content

Eliminate the need for activator restart when the certs update of internal encryption #13694

Closed

Description

@nak3

Describe the feature

Currently activator must be restarted when certs are updated. The requirement should be eliminated.

Activity

  1. added
    kind/feature
    on Feb 14, 2023
  2. added
    triage/accepted
    and removed
    triage/accepted
    on Feb 15, 2023
  3. davidhadas commented on Feb 28, 2023

    @davidhadas
    Contributor

    Fixes: 13754

  4. dprotaso commented on Mar 1, 2023

    @dprotaso
    Member

    /triage accepted
    /milestone Icebox

    #13754 highlights that if you don't restart the activator it will start serving 503s

  5. added
    triage/accepted
    on Mar 1, 2023
  6. added this to the Icebox milestone on Mar 1, 2023
  7. nak3 commented on Mar 2, 2023

    @nak3
    ContributorAuthor

    Just a quick note for this:

    • ingress -> activator

    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#41888 golang/go#35887

  8. ReToCode commented on Mar 2, 2023

    @ReToCode
    Contributor

    However, it causes a performance degradation especially TestActivatorOverload test always fail.

    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?

  9. nak3 commented on Mar 2, 2023

    @nak3
    ContributorAuthor

    Great! Yes, CertResolver caches the certificates so it should improve the performance. I would like to see if it will pass the CI result.

  10. self-assigned this
    on Mar 29, 2023
  11. added a commit that references this issue on Apr 6, 2023
    11b26fb
  12. davidhadas commented on Apr 7, 2023

    @davidhadas
    Contributor

    Certificates may also expire and be replaced.
    There needs to be a mechanism to update certificates.

  13. nak3 commented on Apr 7, 2023

    @nak3
    ContributorAuthor

    Certificates may also expire and be replaced.
    There needs to be a mechanism to update certificates.

    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.

  14. nak3 commented on Apr 7, 2023

    @nak3
    ContributorAuthor

    With said, I think there is a bug in the rotation - knative-extensions/control-protocol#272 😞

  15. added a commit that references this issue on Apr 10, 2023
    7168736
  16. added a commit that references this issue on Apr 12, 2023
    9af99e5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/featuretriage/accepted

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions