From 93a62a4033025a46cc9950ab821c16ec41cdf86e Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Tue, 18 Apr 2023 17:51:05 -0400 Subject: [PATCH] backport of commit b930010ae23f5b48dda7e8be023aaef744b3b474 (#20236) Co-authored-by: Yura Shutkin --- changelog/20109.txt | 3 +++ website/content/api-docs/system/wrapping-unwrap.mdx | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 changelog/20109.txt diff --git a/changelog/20109.txt b/changelog/20109.txt new file mode 100644 index 000000000000..8c7cb3b32de1 --- /dev/null +++ b/changelog/20109.txt @@ -0,0 +1,3 @@ +```release-note:improvement +sys/wrapping: Add example how to unwrap without authentication in Vault +``` diff --git a/website/content/api-docs/system/wrapping-unwrap.mdx b/website/content/api-docs/system/wrapping-unwrap.mdx index a3ed5973eee9..701bc6eecf28 100644 --- a/website/content/api-docs/system/wrapping-unwrap.mdx +++ b/website/content/api-docs/system/wrapping-unwrap.mdx @@ -51,6 +51,15 @@ $ curl \ http://127.0.0.1:8200/v1/sys/wrapping/unwrap ``` +Or you can use token to unwrap without authentication in vault + +```shell-session +$ curl \ + --header "X-Vault-Token: abcd1234..." \ + --request POST \ + http://127.0.0.1:8200/v1/sys/wrapping/unwrap +``` + ### Sample Response ```json