From 8d3ff2683a3164f6707f5cd273a94954f4696865 Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Sat, 5 Oct 2024 23:20:52 +0200 Subject: [PATCH] feat(docs): Explain token renewal (#5) --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index ba7b168..eabed5f 100644 --- a/README.md +++ b/README.md @@ -222,6 +222,15 @@ Note that we do not specify `"renewable":true` as periodic tokens are implicitly Write down the generated `client_token`. +Token renewal works like so via the `/auth/token/renew-self` endpoint: + +``` +curl --silent --location --header 'X-Vault-Token: ' \ + --request POST \ + --data '{"token":""}' \ + 'https://f.q.d.n/v1/auth/token/renew-self' +``` + Lastly don't forget to create some key value pairs underneath `kv/for_rbacgroup_remco` that the token can access. #### Token lifecycle management