Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update wrapping-unwrap.mdx #20109

Merged
merged 2 commits into from
Apr 18, 2023
Merged

Update wrapping-unwrap.mdx #20109

merged 2 commits into from
Apr 18, 2023

Conversation

yura-shutkin
Copy link
Contributor

@yura-shutkin yura-shutkin commented Apr 12, 2023

What I did

It is possible to unwrap data without authentication in Vault. I've added an example in the documentation with a curl request.

How to check

curl -s -H "X-Vault-Wrap-TTL: 600" -H "X-Vault-Token: 12345" --request POST -d '{"msg": "another_success"}' http://127.0.0.1:8200/v1/sys/wrapping/wrap | jq -r '.wrap_info.token'

hvs.CAESICWi76JlYaIuEw6gUUhoonSHV6s9AEEe6tP8yToFrSyXGh4KHGh2cy5taEtROGZBYWZqMmxaTXFJTUIyZ3dYUUE

curl -s -X POST -H "X-Vault-Token: hvs.CAESICWi76JlYaIuEw6gUUhoonSHV6s9AEEe6tP8yToFrSyXGh4KHGh2cy5taEtROGZBYWZqMmxaTXFJTUIyZ3dYUUE" http://localhost:8200/v1/sys/wrapping/unwrap | jq '.data'
{
  "msg": "another_success"
}

It is possible to unwrap data without authentication in Vault. I've added an example of a curl request.
@hashicorp-cla
Copy link

hashicorp-cla commented Apr 12, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@yhyakuna yhyakuna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants