13 lines
570 B
Bash
Executable file
13 lines
570 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
remote=(ssh -tt railiance01)
|
|
unseal='kubectl -n openbao exec -it openbao-0 -- env BAO_ADDR=http://127.0.0.1:8200 bao operator unseal'
|
|
status='kubectl -n openbao exec openbao-0 -- env BAO_ADDR=http://127.0.0.1:8200 bao status'
|
|
|
|
echo "Private railiance01 target: enter rotated source share 1 of 2 at the hidden prompt."
|
|
"${remote[@]}" "$unseal"
|
|
echo "Private railiance01 target: enter a different rotated source share at the hidden prompt."
|
|
"${remote[@]}" "$unseal"
|
|
echo "Private railiance01 target status:"
|
|
"${remote[@]}" "$status"
|