aboutsummaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/secrets/GcpSecretStore.java
blob: eeb7f7b06e54f8f9a19dea65ea62a516a64e848c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.secrets;

import java.time.Duration;
import java.util.Optional;

public interface GcpSecretStore {

    void setSecret(String secretName, Optional<Duration> expiry, String... accessorServiceAccounts);

    void addSecretVersion(String secretName, String secretValue);

    String getLatestSecretVersion(String secretName);

}