Manual init and unseal — loop script (Approach 1)
Test cases(26 of 50)
Complete the OpenBao prerequisites before running these tests. Go to prerequisites
Seal migration — Shamir to Transit auto-unseal
Seal migration — Shamir to AWS KMS auto-unseal
Requires AWS KMS, IAM permissions, and credentials. Independent of transit auto-unseal (UNSEAL-002).
Enable and Use KV v2 Secrets Engine
KV v2 Metadata and Custom Metadata
KV Secret Rotation Pattern with CAS
Configure PKI Engine as Internal CA
Auto-Rotate TLS Certificates with cert-manager
Cross-Sign External CA with OpenBao PKI
Dynamic PostgreSQL Credentials
Dynamic MySQL/MariaDB Credentials
Kubernetes Auth Method
OIDC Authentication with Keycloak/DEX
Raft Cluster Operations
Raft Snapshot and Restore
Create Raft snapshots for backup purposes, restore from a snapshot on the same or different cluster, and automate snapshot scheduling using a Kubernetes CronJob. Raft snapshots capture the complete state of OpenBao including all secrets, policies, and configuration.
Prerequisites checklist
Confirm these before running steps:
- TC-OPENBAO-HA-001Raft Cluster Operations
- PVC or S3-compatible storage for snapshot files
1Get current (raft) leader
oc exec -it openbao-0 -n openbao -- bao operator raft leader2Create a manual Raft snapshot
oc exec -it openbao-0 -n openbao -- bao operator raft snapshot save /tmp/backup.snap3Copy the snapshot out of the pod
oc cp openbao-0:/tmp/backup.snap ./backup-$(date +%Y%m%d).snap -n openbao4Verify the snapshot file
ls -la backup-*.snap5Test restore on the same cluster
oc cp ./backup-$(date +%Y%m%d).snap openbao-0:/tmp/restore.snap -n openbaooc exec -it openbao-0 -n openbao -- bao operator raft snapshot restore /tmp/restore.snap6Verify data integrity after restore
oc exec -it openbao-0 -n openbao -- bao secrets listoc exec -it openbao-0 -n openbao -- bao kv list secret/7Deploy a CronJob for automated snapshots (manifest in Commands / YAML tab)
oc apply -f snapshot-cronjob.yaml -n openbao8Trigger a one-off Job from the CronJob
oc create job --from=cronjob/openbao-snapshot test-snapshot -n openbaooc wait --for=condition=complete job/test-snapshot -n openbao --timeout=120soc logs job/test-snapshot -n openbaoThis should return Snapshot saved...
Full OpenBao Backup Strategy
Disaster Recovery Restore
TLS Certificates for OpenShift Routes via PKI
Dynamic PostgreSQL Credentials for Applications
Multi-Tenant Secret Isolation
Encryption as a Service - Transit Encryption for Application Data
External Secrets Operator with OpenBao
CSI Secrets Store Driver with OpenBao
OpenBao Agent Sidecar Injector
Sealed Secrets Migration to OpenBao