diff options
author | Andreas Eriksen <andreer@verizonmedia.com> | 2021-01-21 09:14:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 09:14:00 +0100 |
commit | 44c35b15ab1849a13f6d86464984e0d31cf8188b (patch) | |
tree | 904dea50e837eaaad0b87865a66904154178d458 /config-model-api | |
parent | c2c6faa030f68efa35ec42157e6d7b4d532b804d (diff) |
andreer/endpoint certificate maintainer (#16099)
* remove support for old formats and introduce EndpointCertificateMaintainer
* record certificate refresh time, run maintainer every 12 hours
* retrigger prod deployments if refreshed certificate not deployed after one week
* only re-trigger production jobs
* unit test EndpointCertificateMaintainer
* take application lock to avoid concurrent modifications when managing endpoint certs
* only trigger deployment jobs
Co-authored-by: Jon Marius Venstad <jonmv@users.noreply.github.com>
Diffstat (limited to 'config-model-api')
-rw-r--r-- | config-model-api/src/main/java/com/yahoo/config/model/api/TlsSecrets.java | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/config-model-api/src/main/java/com/yahoo/config/model/api/TlsSecrets.java b/config-model-api/src/main/java/com/yahoo/config/model/api/TlsSecrets.java deleted file mode 100644 index 0937b8b77ec..00000000000 --- a/config-model-api/src/main/java/com/yahoo/config/model/api/TlsSecrets.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -package com.yahoo.config.model.api; - -public class TlsSecrets { - public static final TlsSecrets MISSING = new TlsSecrets(); - - private final String certificate; - private final String key; - - private TlsSecrets() { - this(null, null); - } - - public TlsSecrets(String certificate, String key) { - this.certificate = certificate; - this.key = key; - } - - public TlsSecrets(EndpointCertificateSecrets endpointCertificateSecrets) { - this.certificate = endpointCertificateSecrets.certificate(); - this.key = endpointCertificateSecrets.key(); - } - - public String certificate() { - return certificate; - } - - public String key() { - return key; - } - - public boolean isMissing() { - return this == MISSING; - } -} |