railiance-master/tools/openbao-attended-unseal-drill.sh
2026-08-03 20:38:27 +02:00

13 lines
572 B
Bash
Executable file

#!/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"