Skip to content

Pass variable name in Vault secrets path

Release notes

We now support using a variable to define the path for retrieving secrets stored in Vault.

Problem

I am not able to pass ${ENVIRONMENT} in vault path for reading the values. Tried with #{ENVIRONMENT} and everything, but no luck.

May be secret getting initialized before variables are getting set.

Kindly help as I'm not able to read environment specific values from same vault repo

secrets:
testkey_Value: vault: engine: name: kv-v2 path: tmobile path: pos/mpos/mpos-npe-configs/${ENVIRONMENT}/

Edited by Darren Eastman