--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/b01e4cef-34c3-45a6-865f-5510deab2332%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi there,Generating an OTP and decoding it are helpers in the CLI, not part of the server API. If you're using Go you could use the same function that the CLI does via https://godoc.org/github.com/hashicorp/vault/helper/xor but otherwise it's a pretty simple XOR operation.You can have as many root tokens as you like alive at a given time; they're normal, independent tokens. But we suggest that you don't keep any of them alive longer than you need.Best,Jeff
On Mon, May 14, 2018 at 3:51 AM primate <Richa...@sky.com> wrote:
Hi,--Using Vault 0.9.3, I'm following the API guide to generate a new root token: https://www.vaultproject.io/api/system/generate-root.htmlI'm using the OTP option. I get the encoded root token out but there doesn't seem to be an API route to pass the token and the OTP back in to decode the encoded root token like there is at the CLI - am I missing something obvious?Also, do I need to follow up the root token generation by revoking the preceding one? The preceeding one appeared to still be valid in my test environment.Cheers.
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault...@googlegroups.com.