Hi, I’m trying to retrieve a secret from Vault and I’m able to do that from the CLI. However, when I tried to do that through the REST API, I got the response {"errors":[]}
.
Here is the command I used to retrieve the secret from CLI. This command returns the right secrets I need.
vault kv get secret/flink/twitter
Here is the command I used to retrieve the secret from the REST API.
# curl \
--header "X-Vault-Token: ..." \
--header "Content-Type: application/json" \
-X GET \
http://vault2:8200/v1/secret/data/secret/flink/twitter
This command returns {"errors":[]}
.
Any suggestion how I can further debug this? Thanks.