vault

The plugin exports KV pairs from Hashicorp Vault to Codefresh pipeline ENV variables

Arguments

  • VAULT_ADDR * - Vault server URI. Example: https://vault.testdomain.io:8200 (required)
  • VAULT_AUTH_TOKEN * - Vault authentication token (required)
  • VAULT_CLIENT_CERT_BASE64 - Base64 encoded client cerificate
  • VAULT_CLIENT_KEY_BASE64 - Base64 encoded client key
  • VAULT_PATH * - Path to secrets in vault. Example: secret/codefreshsecret (required)
    version: '1.0'
steps:
  Vault_to_Env:
    title: Importing vault values
    type: vault
    arguments:
      VAULT_ADDR: '${{VAULT_ADDR}}'
      VAULT_PATH: '${{VAULT_PATH}}'
      VAULT_AUTH_TOKEN: '${{VAULT_AUTH_TOKEN}}'
      VAULT_CLIENT_CERT_BASE64: '${{VAULT_CLIENT_CERT_BASE64}}'
      VAULT_CLIENT_KEY_BASE64: '${{VAULT_CLIENT_KEY_BASE64}}'

  
github.com
Alexander Aladov
Sep 18, 2019