How can I access a secret from another secret in the vault?

Hi,

Is it possible to reference the value of a kv from another kv, i.e. suppose we have a secret with path app1 and a kv with key db.password and value “papafrita” and on the other hand I have a secret with path app2 with a kv with key db.password and I want to reference the secret app1.db.password.

I don’t know if I’ve explained well…

Thank you very much

Regards.

Hi @jagudo ,

You can not (as far as I am aware) reference a secret value in another secret. In a previous role I had what sounds like a similar use case where I had a set of secrets that were common across multiple apps.

In this scenario I set up a path like secret/common/sharedthing and had a policy that allowed access to those common secrets.