aboutsummaryrefslogtreecommitdiffstats
path: root/controller-server/src/main/java/com/yahoo/vespa/hosted/restapi/impl/StatusPageResource.java
diff options
context:
space:
mode:
Diffstat (limited to 'controller-server/src/main/java/com/yahoo/vespa/hosted/restapi/impl/StatusPageResource.java')
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/restapi/impl/StatusPageResource.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/restapi/impl/StatusPageResource.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/restapi/impl/StatusPageResource.java
index 67c69ddc887..f5852b9dfcf 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/restapi/impl/StatusPageResource.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/restapi/impl/StatusPageResource.java
@@ -4,7 +4,7 @@ package com.yahoo.vespa.hosted.restapi.impl;
import com.fasterxml.jackson.databind.JsonNode;
import com.google.inject.Inject;
import com.yahoo.container.jaxrs.annotation.Component;
-import com.yahoo.jdisc.http.SecretStore;
+import com.yahoo.vespa.hosted.controller.api.integration.security.KeyService;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
@@ -24,20 +24,20 @@ import javax.ws.rs.core.UriBuilder;
public class StatusPageResource implements com.yahoo.vespa.hosted.controller.api.statuspage.StatusPageResource {
private final Client client;
- private final SecretStore secretStore;
+ private final KeyService keyService;
@Inject
- public StatusPageResource(@Component SecretStore secretStore) {
- this(secretStore, ClientBuilder.newClient());
+ public StatusPageResource(@Component KeyService keyService) {
+ this(keyService, ClientBuilder.newClient());
}
- protected StatusPageResource(SecretStore secretStore, Client client) {
- this.secretStore = secretStore;
+ protected StatusPageResource(KeyService keyService, Client client) {
+ this.keyService = keyService;
this.client = client;
}
protected UriBuilder statusPageURL(String page, String since) {
- String[] secrets = secretStore.getSecret("vespa_hosted.controller.statuspage_api_key").split(":");
+ String[] secrets = keyService.getSecret("vespa_hosted.controller.statuspage_api_key").split(":");
UriBuilder uriBuilder = UriBuilder.fromUri("https://" + secrets[0] + ".statuspage.io/api/v2/" + page + ".json?api_key=" + secrets[1]);
if (since != null) {
uriBuilder.queryParam("since", since);