summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Musum <musum@oath.com>2018-10-23 18:56:51 +0200
committerGitHub <noreply@github.com>2018-10-23 18:56:51 +0200
commit9516a2442760eb530ab2cda152f5f6bb592a5ad5 (patch)
tree1d9c953a44807db34ce04cfe0174c5dcad1a6fe8
parent4f6d8c912ec858bc41aa77a129d403c46b78d22c (diff)
parent5b94655543289c4d7522b93e854d4ba867fea812 (diff)
Merge pull request #7395 from vespa-engine/mpolden/remove-prepare
Remove deprecated prepare
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServer.java5
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/tls/ControllerSslContextFactoryProvider.java9
2 files changed, 6 insertions, 8 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServer.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServer.java
index 4255c24c977..3905a7b1921 100644
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServer.java
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServer.java
@@ -27,11 +27,6 @@ public interface ConfigServer {
PrepareResponse prepareResponse();
}
- // TODO: Deprecated, remove when implementations have been removed
- default PreparedApplication prepare(DeploymentId applicationInstance, DeployOptions deployOptions, Set<String> rotationCnames, Set<String> rotationNames, byte[] content) {
- return deploy(applicationInstance, deployOptions, rotationCnames, rotationNames, content);
- }
-
PreparedApplication deploy(DeploymentId applicationInstance, DeployOptions deployOptions, Set<String> rotationCnames, Set<String> rotationNames, byte[] content);
void restart(DeploymentId applicationInstance, Optional<Hostname> hostname) throws NoInstanceException;
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/tls/ControllerSslContextFactoryProvider.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/tls/ControllerSslContextFactoryProvider.java
index 332c440d18e..09f8de40378 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/tls/ControllerSslContextFactoryProvider.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/tls/ControllerSslContextFactoryProvider.java
@@ -65,7 +65,7 @@ public class ControllerSslContextFactoryProvider extends AbstractComponent imple
// Key store containing key pair from secret store
factory.setKeyStore(KeyStoreBuilder.withType(KeyStoreType.JKS)
- .withKeyEntry(getClass().getSimpleName(), privateKey(), certificate())
+ .withKeyEntry(getClass().getSimpleName(), privateKey(), certificates())
.build());
factory.setKeyStorePassword("");
@@ -77,8 +77,11 @@ public class ControllerSslContextFactoryProvider extends AbstractComponent imple
return KeyUtils.fromPemEncodedPrivateKey(secretStore.getSecret(config.privateKeySecret()));
}
- /** Get certificate from secret store */
- private List<X509Certificate> certificate() {
+ /**
+ * Get certificate from secret store. If certificate secret contains multiple certificates, e.g. intermediate
+ * certificates, the entire chain will be read
+ */
+ private List<X509Certificate> certificates() {
return X509CertificateUtils.certificateListFromPem(secretStore.getSecret(config.certificateSecret()));
}