A Vault to OpenBao migration replaces HashiCorp Vault with OpenBao, the open-source fork of Vault licensed under MPL 2.0 and hosted by the Linux Foundation's OpenSSF. OpenBao forked from Vault's last MPL-licensed code and keeps its API, so for a community Vault 1.14 cluster on Raft storage the project documents an in-place, node-by-node upgrade rather than an export and import of secrets (OpenBao: Migrate from Vault).
This page is the migration guide: why the licence changed, what the fork is, what to check before you move, the official upgrade steps, and what to do when your cluster does not fit the tested path. If you are still choosing between OpenBao, staying on Vault and a cloud secrets manager, start with OpenBao vs HashiCorp Vault and other alternatives.
Table of Contents
- What changed with HashiCorp's licence
- OpenBao: the community fork of Vault
- Before you migrate: checklist
- Step by step: the in-place Raft migration
- When the in-place path does not fit
- Auto-unseal after the move
- Where DuoKey helps
- FAQ
What changed with HashiCorp's licence
On 10 August 2023 HashiCorp announced that future releases of its products, Vault included, would move from the Mozilla Public License 2.0 (MPL 2.0) to the Business Source License 1.1 (BSL or BUSL). End users can still copy, modify and redistribute the code for non-commercial and commercial purposes, except when they provide "a competitive offering to HashiCorp" (HashiCorp announcement, licence FAQ).
BSL 1.1 is source-available, not an OSI-approved open-source licence. Under the standard BSL 1.1 text, each version converts to the named open-source licence on its Change Date, at the latest four years after that version is first published (Business Source License 1.1). IBM then completed its acquisition of HashiCorp on 27 February 2025 (IBM).
For most organisations that only use Vault internally, the licence change did not make Vault unusable. What it changed is the long-term picture: Vault is now a vendor product with a commercial roadmap, and several controls that regulated teams ask for, such as HSM auto-unseal over PKCS#11 and seal wrapping, require Vault Enterprise (HashiCorp: PKCS#11 seal). That combination is what drives most migration projects.
OpenBao is an open-source, community-driven secrets manager and fork of Vault. Its repository is licensed under MPL 2.0 (GitHub: openbao/openbao), and the project is a Series of LF Projects, LLC, in the OpenSSF sandbox. Its command-line tool is bao instead of vault.
What matters for a migration:
- Same API for most clients. OpenBao's migration guide states the API "should be compatible" and that "existing clients should not even register a difference", although some clients or services may need a restart.
- Different from Vault Enterprise. OpenBao did not inherit Enterprise code. It has since built its own features, for example namespaces for multi-tenancy in the open-source release (OpenBao: namespaces), and ships the PKCS#11 seal without a paid tier.
- The two are diverging. Both projects have released new versions since the fork. Check every feature you rely on against the current OpenBao documentation rather than assuming parity.
Before you migrate: checklist
OpenBao's official guide is explicit about what it has and has not tested (OpenBao: Migrate from Vault). Check these points first:
| Check | What the OpenBao guide says | What to do |
|---|
| Vault version | Tested from Vault 1.14.1 to OpenBao 2.2.0. Newer Vault versions are "untested and unsupported", and OpenBao "makes no guarantees about storage compatibility with Vault" | On an older Vault, upgrade to 1.14.1 first. On a newer one, plan a parallel migration |
| Edition | Only Vault community edition 1.14.x was tested, not Vault Enterprise | Enterprise estates: plan a parallel cluster |
| Storage | Tested with Raft (integrated storage) | Other backends: test on a copy or migrate in parallel |
| Seal | Tested with Shamir unseal. Auto-unseal and HSMs are not covered | Plan the target seal separately (see below) |
| Plugins | Mounts whose plugins OpenBao does not ship are skipped at startup | Run vault secrets list and vault auth list and map every mount |
| Tokens | Token prefixes change from hvs./hvb./hvr. to OpenBao's s./b./r.; old tokens stay valid until their TTL expires | Find clients that parse or validate token formats |
| Config | OpenBao no longer uses mlock | Remove disable_mlock from the configuration |
| Audit | A file audit device must remain writable | Give OpenBao write access to the same audit file |
| Old clusters | Clusters bootstrapped before Vault 1.3 may need a rekey, because OpenBao removed the old Shamir implementation | Rekey before the move |
Step by step: the in-place Raft migration
This is the procedure OpenBao documents for a Raft cluster with Shamir unseal, without Autopilot upgrade automation:
- Back up. Take a Raft snapshot or an atomic filesystem snapshot of every node. This is your rollback.
- Install OpenBao on every node without starting it. Use the same configuration, adjusted for OpenBao. A separate storage path is recommended and makes rollback simpler.
- Upgrade the followers one at a time. On each follower: stop Vault, start OpenBao, run
bao operator raft join, unseal, and wait until the node is a voter again.
- Upgrade the leader last. When every follower runs OpenBao, step the leader down, confirm a new leader is elected, then repeat step 3 on the former leader.
- Verify. Check that every secrets engine and auth method mounted, that applications authenticate and read secrets, and that audit logs are written.
Because the API stays the same, applications keep the same paths and policies. What changes for them is the binary name in scripts (bao instead of vault) and the token prefix.
When the in-place path does not fit
Vault Enterprise, Vault versions newer than the tested 1.14.1, non-Raft storage and external plugins all fall outside the tested path. The safer pattern for those estates is a parallel migration:
- Stand up an OpenBao cluster with the target seal and storage.
- Recreate configuration as code. Auth methods, policies, mounts and roles, ideally from Terraform or scripts you already keep for Vault.
- Move static secrets. Copy KV data with a script that reads from Vault and writes to OpenBao, and verify counts and versions.
- Re-issue dynamic material. Database credentials, cloud credentials and PKI certificates are better re-issued by OpenBao than copied.
- Cut over client by client. Point each application at the new address, monitor errors, and keep Vault read-only until the last client has moved.
This takes longer than an in-place upgrade but gives a clean rollback at every step.
Auto-unseal after the move
The migration guide covers Shamir unseal only, so decide early where the unseal key will live in OpenBao. OpenBao supports cloud KMS, KMIP, PKCS#11, static key and Transit seals, and PKCS#11 is part of the open-source release. The OpenBao auto-unseal guide compares each seal and shows the configuration.
With DuoKey, the OpenBao PKCS#11 seal (or the native OpenBao KMS plugin) calls DuoKey Cockpit, which wraps OpenBao's root key with an AES-256 key held in a Cockpit-managed vault. Deactivating or revoking that key in Cockpit blocks unsealing (DuoKey docs: OpenBao). With the MPC vault, no single node holds the complete key; MPC vs HSM explains how that differs from a single hardware module. If you are staying on Vault Enterprise for now, the same approach works through Vault's PKCS#11 seal; see Vault auto-unseal with an HSM.
Where DuoKey helps
OpenBao + DuoKey SD-HSM combines three things:
- Managed OpenBao, run as an EU-hosted service delivered by an OpenBao co-maintainer and Linux Foundation TSC member.
- MPC auto-unseal through DuoKey SD-HSM, so the unseal key is not tied to a dedicated HSM per cluster or to a cloud KMS.
- A free migration assessment that maps your clusters, auth methods, plugins and Enterprise features to a cutover plan. DuoKey describes a 2 to 4 week path where the estate fits that window; the assessment checks whether yours does.
A worked example is the Vault to OpenBao migration story.
FAQ
Q: How do I migrate from Vault to OpenBao?
For a Vault community 1.14 cluster on Raft storage, OpenBao documents an in-place upgrade: back up, install OpenBao on every node, replace Vault on the followers one at a time, then on the former leader after a step-down. For Vault Enterprise, newer Vault versions or other storage backends, run OpenBao in parallel, recreate configuration as code, copy static secrets and move clients one by one.
Q: Is OpenBao a fork of HashiCorp Vault?
Yes. OpenBao is a community fork of Vault, created after HashiCorp moved Vault to the Business Source License, from the last MPL-licensed code. It keeps Vault's API for most clients and is hosted by the Linux Foundation's OpenSSF.
Q: What licence does OpenBao use?
The Mozilla Public License 2.0 (MPL 2.0), an OSI-approved open-source licence. HashiCorp Vault releases since the August 2023 change use the Business Source License 1.1, which is source-available but not open source.
Q: Can I still use HashiCorp Vault under the BSL?
Yes, for most internal use. HashiCorp's terms restrict providing a competitive offering to HashiCorp; ordinary use inside your organisation remains allowed. Check the licence with your counsel if you host Vault for third parties.
Q: Can I migrate Vault Enterprise to OpenBao?
Yes, but not with the in-place procedure, which OpenBao tested only on Vault community edition. Map every Enterprise feature you use (replication, namespaces, Sentinel, HSM seal, plugins) to OpenBao first, then migrate in parallel.
Q: Do applications need code changes?
Usually not. OpenBao keeps the Vault API, so applications keep their paths, auth methods and policies and only need the new address. Check clients that validate token formats, because token prefixes change, and scripts that call the vault binary.
Q: Can I roll back a Vault to OpenBao migration?
Plan for it. Take a Raft or filesystem snapshot before you start and use a separate storage path for OpenBao, which the OpenBao guide recommends because it makes rollback easier. In a parallel migration, keep Vault read-only until the last client has moved.
Q: Does OpenBao support HSM auto-unseal?
Yes. The PKCS#11 seal is part of open-source OpenBao, alongside cloud KMS, KMIP, static key and Transit seals. DuoKey provides a PKCS#11 library and a native OpenBao KMS plugin that keep the wrapping key in a DuoKey Cockpit vault, including an MPC vault.
References