Unsealing OpenBao after a restart

Unseal each sealed OpenBao replica with three unseal keys from the initialization file after a restart in manual unseal mode.

In manual unseal mode, an OpenBao replica restarts sealed. Cloudera Cloud Factory keeps working while at least one of the three replicas is unsealed, and it stops when all replicas are sealed. In auto unseal mode, this task does not apply.

  1. List the Pods, and identify the sealed ccf-openbao replicas.
    kubectl get Pods -n taikun
  2. Open a shell in a sealed replica.
    kubectl exec -it -n taikun <pod-name> -- sh
  3. Apply three different unseal keys from the initialization file, one for each command.
    export VAULT_ADDR=https://127.0.0.1:8200 VAULT_SKIP_VERIFY=true
    vault operator unseal <unseal-key>
  4. Repeat steps 2 and 3 for each sealed replica.

Each replica reports that it is unsealed.

Alternatively, run the vault-unseal phase, which applies the keys from the initialization file to the sealed replicas.