Reputation: 55
I am using Postman to call the Vault API.
Right now I am doing an API call to this endpoint
I am passing in the body a roleId and secretId and in the headers the X-Vault-Namespace and X-Vault-Token and I am getting the value of the secret at this path.
I am also able to get all the keys by calling
https://vault.something.com/v1/kv/metadata/ENV/DEV?list=true
I need to get the values of all the secrets from ENV/DEV/ using a single API call. Can you give me an idea? I got stuck in the existent documentation.
Upvotes: 3
Views: 5451
Reputation: 36
If you can relax the requirement of "a single API call", then it can be simply achieved by following these two steps:
Upvotes: 1
Reputation: 171
This is not possible, Hashicorp has had an open issue on this subject for over four years and shows no sign of picking it up.
Many people have already built code to handle the recursion, and simply hammer the Vault API until a directory tree is fully explored. Check the GitHub issue linked above for helpful people that have posted their solutions.
Upvotes: 1