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
  • Constructor Details

    • VaultSecretSource

      public VaultSecretSource()
  • Method Details

    • allPresent

      public static <T, U> void allPresent(Optional<T> o1, Optional<U> o2, BiConsumer<T,U> consumer)
    • reveal

      public Optional<String> reveal(String secret)
      Specified by:
      reveal in class io.jenkins.plugins.casc.SecretSource
    • getSecrets

      public Map<String,String> getSecrets()
    • setSecrets

      public void setSecrets(Map<String,String> secrets)
    • init

      public void init()
      Overrides:
      init in class io.jenkins.plugins.casc.SecretSource