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