envrc: load VAULT_HTTP_TOKEN from vault_token_provider

This allows users to provide their own method of loading the token.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2024-10-21 15:49:13 +02:00
parent 9d403471d6
commit afce4d22a0
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 4 additions and 0 deletions

View File

@ -3,3 +3,7 @@ export VAULT_CLIENT_CERT=./ansible/files/vault-client-user.crt
export VAULT_CLIENT_KEY=./ansible/files/vault-client-user.key
export VAULT_ADDR=https://vault-api.infra.status.im:8200
export CONSUL_HTTP_TOKEN=$(pass services/consul/tokens/terraform)
# Provide a script in your PATH matching this name to load the token.
if command -v vault_token_provider >/dev/null; then
export VAULT_TOKEN=$(vault_token_provider)
fi