Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.59 KB

earthly-secret-provider-vault.md

File metadata and controls

42 lines (27 loc) · 1.59 KB

earthly-secret-provider-vault

earthly-secret-provider-vault is a secret provider for Earthly that connects to Vault

Synopsis

earthly-secret-provider-vault is a secret provider for Earthly that connects to Hashicorp's Vault. For docs on how to configure this take a look here: https://docs.earthly.dev/docs/earthly-config#secret_provider-experimental.

Since the contract for secret providers is fairly simple you can test this provider by running:

$ earthly-secret-provider-vault <vault-path>

This prints the secret on stdout.

Generally the CLI will look at ~/.vault-token and ~/.earthly/vault.yml for the configuration. The token from ~/.vault-token will be used if it exists, otherwise the token from ~/.earthly/vault.yml will be used. vault.yml should be used to set the Vault address and optionally a lookup secret can be added.

For configuration you can also use the config command:

$ vault login --method=userpass username=test
$ earthly-secret-provider-vault config token $(vault print token)
$ earthly-secret-provider-vault config address $VAULT_ADDR

To set a config option in the vault.yml file, use the config subcommand.

earthly-secret-provider-vault [flags]

Options

  -h, --help   help for earthly-secret-provider-vault

SEE ALSO

Auto generated by spf13/cobra on 7-Jun-2022