Add -dr-token flag to commands to generate OTP and decode with OTP (required on DR secondary as of 0.11) (#5368)

This commit is contained in:
Laura Gjerman-Uva 2018-09-20 09:19:01 -07:00 committed by Yoko
parent 6179375100
commit 2b0c7596d4

View File

@ -274,7 +274,7 @@ secondary cluster. The process, outlined below using API calls, is the similar t
1. Generate an one time password (OTP) to use:
```plaintext
$ vault operator generate-root -generate-otp
$ vault operator generate-root -dr-token -generate-otp
HenFLWmt0AgrjWJp/RECzQ==
```
@ -361,7 +361,7 @@ entered by each key holder via **`/sys/replication/dr/secondary/generate-operati
**Example:**
```plaintext
$ vault operator generate-root \
$ vault operator generate-root -dr-token \
-decode="dKNQqNmh3JfJcSZdGlkttQ==" \
-otp="HenFLWmt0AgrjWJp/RECzQ=="
@ -426,7 +426,7 @@ using the OTP generated earlier. (Be sure to enter your OTP in the command.)
**Example:**
```
$ vault operator generate-root \
$ vault operator generate-root -dr-token \
-otp="vZpZZf5UI1nvB3A5/7Xq9A==" \
-decode="cuplaFGYduDEY6ZVC5IfaA=="