-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Split away code for decoding root tokens into a function #10504
Labels
Comments
can we decode the root token from this code using API? |
@PayalSasmal10 the workflow that I had in mind (and that I implemented based on this) is that you get a new token via the API and then decode it using the helper function. so in pseudo-Go it looks like this:
|
Thanks @ptzianos . Waiting for merging this commit. |
ptzianos
added a commit
to ptzianos/vault
that referenced
this issue
Feb 15, 2021
ptzianos
added a commit
to ptzianos/vault
that referenced
this issue
Nov 24, 2021
ncabatoff
pushed a commit
that referenced
this issue
Dec 1, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
When using the API client to generate a temporary root token using the unseal keys, there is no way of easily decoding the root token that is returned. The piece of code that performs this function is inside the
command/operator_generate_root.go
file and can't be re-used.Describe the solution you'd like
Split away the code into a function that can be re-used by anyone who wants to create a temp root token using the API client
The text was updated successfully, but these errors were encountered: