diff options
author | Andreas Eriksen <andreer@verizonmedia.com> | 2022-02-03 15:46:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-03 15:46:22 +0100 |
commit | 89d79239582499426478db60dd122d368d2010d9 (patch) | |
tree | ff116d585eff70b117498e00c43b77c6b02778ed /controller-api | |
parent | 0d07d24049e67014e12cd3f534c94ee9b7e58ccc (diff) |
andreer/endpoint cert retry on null (#21052)
* retry when receiving "null" from secret store
* improve progress and error messages for endpoint certs
Diffstat (limited to 'controller-api')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/certificates/EndpointCertificateValidatorImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/certificates/EndpointCertificateValidatorImpl.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/certificates/EndpointCertificateValidatorImpl.java index 87e0a82fc0b..9bfd8f9d34e 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/certificates/EndpointCertificateValidatorImpl.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/certificates/EndpointCertificateValidatorImpl.java @@ -36,7 +36,7 @@ public class EndpointCertificateValidatorImpl implements EndpointCertificateVali var pemEncodedEndpointCertificate = secretStore.getSecret(endpointCertificateMetadata.certName(), endpointCertificateMetadata.version()); if (pemEncodedEndpointCertificate == null) - throw new EndpointCertificateException(EndpointCertificateException.Type.VERIFICATION_FAILURE, "Secret store returned null for certificate"); + throw new EndpointCertificateException(EndpointCertificateException.Type.CERT_NOT_AVAILABLE, "Secret store returned null for certificate"); List<X509Certificate> x509CertificateList = X509CertificateUtils.certificateListFromPem(pemEncodedEndpointCertificate); |