cert-manager/internal/controller
Thomas Müller 12483d3d54 Check JKS/PKCS12 truststores only if issuer provides the CA
The current policy check for keystores in Secrets creates a loop because
the truststore.jks or truststore.p12 will never exist when the issuer didn't
provide the CA certificate. This behaviour was introduced by #5597

The JKS and PKCS12 truststores are only added to the Secret
if the CA is provided by the issuer. The CertificateRequest API
reference states:

> The PEM encoded x509 certificate of the signer, also known
> as the CA (Certificate Authority). This is set on a best-effort basis by
> different issuers. If not set, the CA is assumed to be unknown/not available.

This change will only check the PKCS12/JKS truststores if the CA cert from the
issuer exists in the secret.

Fixes #5755

Signed-off-by: Thomas Müller <thomas@chaschperli.ch>
2023-04-27 17:09:41 +02:00
..
certificaterequests Remove bazel 🎉 2022-07-26 11:38:50 +01:00
certificates Check JKS/PKCS12 truststores only if issuer provides the CA 2023-04-27 17:09:41 +02:00
challenges Remove bazel 🎉 2022-07-26 11:38:50 +01:00
feature Adds SecretsFilteredCaching alpha feature 2023-03-22 09:03:16 +00:00
issuers Remove bazel 🎉 2022-07-26 11:38:50 +01:00
orders Remove bazel 🎉 2022-07-26 11:38:50 +01:00