Hi,
I have a secret in v2 of the kv engine. The path is drmkeys and the secret is called dashkey. CLI works fine to retrieve the key: $ ./vault kv get drmkeys/dashkey
But I’ve not been able to figure out the curl commands to GET the key via curl: $ curl --header "X-Vault-Token: VAULT_TOKEN" --request GET http://127.0.0.1:8200/v2/kv/data/drmkeys/dashkey
Since we need to get a secret into a separate docker image, we don’t have the vault cli availabe.
The curl command you are looking for works like this: