Prove OpenBao isolated restore
This commit is contained in:
parent
b8fdc4aa45
commit
7fd89ad6b0
4 changed files with 64 additions and 5 deletions
13
tools/openbao-attended-unseal-drill.sh
Executable file
13
tools/openbao-attended-unseal-drill.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
remote=(ssh -tt railiance01)
|
||||
unseal='kubectl -n openbao-restore-drill exec -it openbao -- env BAO_ADDR=http://127.0.0.1:8200 bao operator unseal'
|
||||
status='kubectl -n openbao-restore-drill exec openbao -- env BAO_ADDR=http://127.0.0.1:8200 bao status'
|
||||
|
||||
echo "OpenBao isolated restore: enter source share 1 of 2 at the hidden prompt."
|
||||
"${remote[@]}" "$unseal"
|
||||
echo "OpenBao isolated restore: enter a different source share at the hidden prompt."
|
||||
"${remote[@]}" "$unseal"
|
||||
echo "OpenBao isolated restore status:"
|
||||
"${remote[@]}" "$status"
|
||||
Loading…
Add table
Add a link
Reference in a new issue