OpenBao variables
Set the OpenBao variables to control how the installer configures OpenBao and how the OpenBao replicas unseal.
Cloudera Cloud Factory uses OpenBao to encrypt the keys that protect the credentials held in the Cloudera Cloud Factory database. OpenBao is the secrets store that the vault-init, vault-unseal, and vault-configure phases configure, so the variables keep the VAULT_ prefix. The following table lists the OpenBao variables:
| Variable | Description | Mandatory | Default |
|---|---|---|---|
| VAULT_INIT_OUTPUT_FILE | Specifies the path of the file to which the vault-init phase writes the root token and the unseal or recovery keys, and from which the later phases read them. The installer also writes a timestamped copy next to this file. | No | .secrets-vault-init.json in the working folder |
| VAULT_ROOT_TOKEN | Specifies the root token that the installer uses to configure OpenBao. When you omit this variable, the installer reads the token from the OpenBao initialization file. | No | None |
| VAULT_SEAL_MIGRATE | Enables or disables a one-time migration from Shamir unseal keys to a static key. Set this variable to true together with VAULT_UNSEAL_MODE=auto on a deployment that was initialized with Shamir keys, and set it back to false after the migration. | No | false |
| VAULT_SKIP_VERIFY | Controls whether the vault commands that the installer runs inside the OpenBao Pods skip the verification of the TLS certificate of the local listener. Valid values: true, false. | No | true |
| VAULT_UNSEAL_MODE | Controls how the OpenBao replicas unseal. auto generates a 32-byte static key in the ccf-openbao-seal Secret, which every replica mounts and reads, so each replica unseals itself after a restart. manual uses Shamir keys, which an operator must apply to each replica after every restart. Valid values: auto, manual. The --vault-unseal-mode command-line option overrides this value. | No | auto |
The static seal key is held in a Kubernetes Secret, so any principal that can read Secrets in the taikun namespace can read the key, and a stolen key allows offline decryption. Cloudera recommends enabling encryption at rest for etcd, auditing access to Secrets, rotating the seal key periodically, and scanning the role-based access control rules.
In auto mode, the installer also renders the seal "static" stanza into the openbao_seal_config cluster variable, which the ccf artifact expands into the OpenBao configuration. In manual mode, the installer omits the variable, and OpenBao keeps the Shamir seal. To override the rendered value, set CLUSTER_VAR_openbao_seal_config.
