VAULT - How to unwrap Secret ID with HTTP request

Viewed 37

I want to integrate vault with a Java application. I follow this blog to do it.

enter image description here

The question is when I have wrapping token, I want to Unwrap it in step number 9 in the picture above with HTTP request and get the secret_id. I see the API document in here, but it require X-Vault-Token which can not store in my JAVA application. Without it the API response permission denied.

But when I use vault command: VAULT_TOKEN=xxxxxxxxxx vault unwrap -field=secret_id, it response a secret that what I want (I do not login to Vault).

Any have experience about this please help. Thank you.

0 Answers
Related