Skip to content

OpenBao: standbys stay 0/1 during seal migration to transit

Securitytested on OpenBao v2.7.1 auf kind, Helm-Chart 0.30.2

During a seal migration from Shamir to auto-unseal (transit), the standbys are already unsealed with -migrate, but their barrier is still Shamir-encrypted. bao status answers with 500 and the readiness probe fails – until a migrated pod becomes leader.

Symptom

NAME        READY   STATUS    RESTARTS   AGE
openbao-0   1/1     Running   0          40m
openbao-1   0/1     Running   0          50s
openbao-2   0/1     Running   0          25s

After restarting the standbys with the new seal block they stay 0/1.

Diagnosis

bao status on a standby shows the new seal type and a migration in progress; the logs count the unseal steps.

Seal Type                     transit
Recovery Seal Type            shamir
Seal Migration in Progress    true
4

Causes

MigrationMigration only half done

The standbys have the new seal block (transit) and are unsealed with the old keys and -migrate. Only the leader rewrites the barrier.

ReadinessStatus 500 fails the probe

Until then bao status answers 500 barrier seal type of shamir does not match loaded type of transit – the readiness probe reports 0/1.

Fix

Delete the old leader. A migrated standby becomes leader, rewrites the root key encrypted with transit, and all pods become ready.
kubectl -n openbao delete pod "$LEADER"
sleep 5
NEW=$(kubectl -n openbao get pods -l openbao-active=true \
  -o jsonpath='{.items[0].metadata.name}')
kubectl -n openbao logs "$NEW" | grep -E 'seal migration|migrating from shamir'
kubectl -n openbao wait --for=condition=Ready pod -l component=server --timeout=180s
... core: seal migration initiated
... core: migrating from shamir to auto-unseal: to=transit
... core: seal migration complete
pod/openbao-0 condition met
pod/openbao-1 condition met
pod/openbao-2 condition met

Don't: Do not try to unseal the standbys without -migrate or roll back the seal block while the migration is running.

▶
Break it yourself and find it – free
OpenBao hands-on, Day 10: auto-unseal with transit – seal migration standby by standby, understanding recovery keys.
Go to day 10 →

FAQ

Why does the migration need the old unseal keys?

With -migrate and the old keys you prove that you really want the migration; afterwards they become recovery keys.

What are the keys good for after the migration?

They no longer unseal anything but are needed as recovery keys for operator generate-root and rekeying – keep them safe.

Related error patterns

More