Class VaultSecretSource
java.lang.Object
io.jenkins.plugins.casc.SecretSource
com.datapipe.jenkins.vault.jcasc.secrets.VaultSecretSource
- All Implemented Interfaces:
ExtensionPoint
@Extension(optional=true)
public class VaultSecretSource
extends io.jenkins.plugins.casc.SecretSource
Requires either CASC_VAULT_USER and CASC_VAULT_PW, or CASC_VAULT_TOKEN, or CASC_VAULT_APPROLE and
CASC_VAULT_APPROLE_SECRET, or CASC_VAULT_KUBERNETES_ROLE, or CASC_VAULT_AWS_IAM_ROLE environment
variables set alongside with CASC_VAULT_PATHS and CASC_VAULT_URL
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
U> void allPresent
(Optional<T> o1, Optional<U> o2, BiConsumer<T, U> consumer) void
init()
void
setSecrets
(Map<String, String> secrets) Methods inherited from class io.jenkins.plugins.casc.SecretSource
all
-
Constructor Details
-
VaultSecretSource
public VaultSecretSource()
-
-
Method Details
-
allPresent
-
reveal
- Specified by:
reveal
in classio.jenkins.plugins.casc.SecretSource
-
getSecrets
-
setSecrets
-
init
public void init()- Overrides:
init
in classio.jenkins.plugins.casc.SecretSource
-