ContainerImage.Pinniped/internal/controller/apicerts
Monis Khan 8b4ed86071
certs_expirer: be specific about what secret to delete
This change fixes a race that can occur because we have multiple
writers with no leader election lock.

1. TestAPIServingCertificateAutoCreationAndRotation/automatic
   expires the current serving certificate
2. CertsExpirerController 1 deletes expired serving certificate
3. CertsExpirerController 2 starts deletion of expired serving
   certificate but has not done so yet
4. CertsManagerController 1 creates new serving certificate
5. TestAPIServingCertificateAutoCreationAndRotation/automatic
   records the new serving certificate
6. CertsExpirerController 2 finishes deletion, and thus deletes the
   newly created serving certificate instead of the old one
7. CertsManagerController 2 creates new serving certificate
8. TestAPIServingCertificateAutoCreationAndRotation/automatic keeps
   running and eventually times out because it is expecting the
   serving certificate created by CertsManagerController 2 to match
   the value it recorded from CertsManagerController 1 (which will
   never happen since that certificate was incorrectly deleted).

Signed-off-by: Monis Khan <mok@vmware.com>
2021-07-28 09:56:05 -04:00
..
apiservice_updater_test.go All controller unit tests should not cancel context until test is over 2021-03-04 17:26:01 -08:00
apiservice_updater.go Use TokenCredentialRequest instead of base64 token with impersonator 2021-03-10 10:30:06 -08:00
certs_expirer_test.go certs_expirer: be specific about what secret to delete 2021-07-28 09:56:05 -04:00
certs_expirer.go certs_expirer: be specific about what secret to delete 2021-07-28 09:56:05 -04:00
certs_manager_test.go certauthority.go: Refactor issuing client versus server certs 2021-03-12 16:09:37 -08:00
certs_manager.go certauthority.go: Refactor issuing client versus server certs 2021-03-12 16:09:37 -08:00
certs_observer_test.go dynamiccert: split into serving cert and CA providers 2021-03-15 12:24:07 -04:00
certs_observer.go dynamiccert: split into serving cert and CA providers 2021-03-15 12:24:07 -04:00
doc.go Save 2 lines by using inline-style comments for Copyright 2020-09-16 10:35:19 -04:00
update_api_service_test.go Use new 'go.pinniped.dev/generated/latest' package. 2021-02-16 13:00:08 -06:00
update_api_service.go Prevent multiple pinnipeds from thrashing on the API service 2020-11-11 20:09:49 -05:00