Unsealing OpenBao after a restart

In manual unseal mode an OpenBao replica returns in the initialized but sealed state after a restart, because the Shamir keys are not held in the cluster.

An operator must therefore apply the unseal keys to each replica. In auto unseal mode each replica unseals itself, and this task does not apply.

Cloudera Cloud Factory keeps working while at least one of the three replicas is unsealed, and Cloudera Cloud Factory stops working when every replica is sealed.

  1. List the Pods in the taikun namespace, 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 OpenBao initialization file, one key for each command.
    export VAULT_ADDR=https://127.0.0.1:8200 VAULT_SKIP_VERIFY=true
    vault operator unseal <unseal-key>
  4. Repeat the previous two steps for each sealed replica.

Each replica reports that it is unsealed, and the Cloudera Cloud Factory services reach OpenBao again.

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