Github action parse a mustache.js template using values from a vault secret
jobs:
parse:
steps:
- name: Vault Values
uses: hexlyOSS/vault-values@v1
with:
url: "vault.hexlyoss.io"
port: "8200"
secret: "staging/test/"
token: ${{ secrets.VAULT_TOKEN }}
renew: true
template: "./k8s/staging/secret.yaml"
extras: '{"project": "processor", "lane":"staging", "releaseSha": "abc123"}'Required Vault address
Required Vault port
Enable https connection to vault. Default false.
Skip mTLS check when connecting to vault. Default false.
Vault token to use. Default none.
Attempt to renew the token after use. Default false.
Required Secret (path) in vault to look for values under.
Required Path to template file to parse.
Path to write the parsed output to. Default <input.template>.parsed.
Additional values to be added to the vault values. Default none.
vault-values will parse the provided template file with the values from vault secret secret and extras and write the output to out.