FALVARIX
FALVARIX
devops --real --no-hype

Step-by-step: migrating Vault to OpenBao in production

Step-by-step: migrating Vault to OpenBao in production

Step-by-step: migrating Vault to OpenBao in production

In August 2023, HashiCorp switched Vault’s license from MPL 2.0 to the Business Source License (BSL 1.1). Many teams read that as “it’s no longer free.” The reality is more nuanced, but just as important for anyone running Vault in production: Vault is still free for internal use, but it’s no longer open source software. That difference affects your legal strategy, your vendor dependency and your infrastructure roadmap.

This article explains what changed and what OpenBao is. Then it walks through a real migration from Vault to OpenBao, with commands, validation steps and a rollback plan.

Is Vault no longer free? What the license actually says

BSL 1.1 lets you copy, modify and use the code in production. What it restricts is offering a product that competes with HashiCorp’s. If you use Vault to protect your own applications, nothing forces you to pay.

The problems show up in other scenarios:

  • Vendors and consultancies that bundle Vault into a managed platform for third parties.
  • Companies with compliance policies that only accept OSI-approved licenses.
  • Teams that want to avoid vendor lock-in, especially after IBM’s acquisition of HashiCorp.
  • Upstream projects (distributions, operators, charts) that can’t integrate BSL code without legal friction.

If your case is one of these, or you simply want a secrets manager with open governance, OpenBao deserves a serious look.

What OpenBao is and why it’s a credible alternative

OpenBao is a fork of Vault built from the last MPL-licensed release (the 1.14 line). It was born under the Linux Foundation umbrella, with open governance and an MPL 2.0 license. It isn’t a single vendor’s project.

Its strengths for production are:

  • Vault-compatible API: the same /v1/ endpoints, the same policy model, tokens, secrets engines and auth methods.
  • bao binary: the CLI follows the same logic as vault, with BAO_ADDR and BAO_TOKEN variables.
  • Built-in Raft storage, just like Vault, which simplifies operations with no external dependencies.
  • Its own development: it’s no longer just a frozen copy; it ships features the community prioritizes, including some that are Enterprise-only in Vault.

One honest caveat. As a fork of 1.14, data and feature compatibility shrinks the more recent your Vault version is. Always check the project’s official migration guide for your specific version before touching production.

When to migrate and when not to

Migrate if your priority is genuine open source, neutrality, or avoiding future license changes. Also if you run Vault OSS with standard engines and auth methods (KV, PKI, Transit, AppRole, Kubernetes, OIDC).

Postpone or rethink the migration if you depend on Enterprise features (performance replication, Sentinel, commercially supported HSM) or if you need contractual vendor support. In that case you have to choose between paying HashiCorp or sourcing third-party support for OpenBao.

Step-by-step migration plan

Step 1: inventory and audit your current Vault

Before installing anything, document what you have:

vault version
vault status
vault secrets list -detailed
vault auth list -detailed
vault policy list
vault plugin list

Note the exact version, the storage backend (Raft, Consul, file), the unseal type (Shamir or auto-unseal with KMS) and any custom plugins. Also check whether any team is using Enterprise features without your knowledge, such as namespaces. If they are, your path changes.

Step 2: stand up a realistic test environment

Never rehearse the migration directly in production. Build a staging cluster with the same topology: same number of nodes, same storage and same unseal method. A different environment invalidates the test.

Take a snapshot of the current cluster:

vault operator raft snapshot save vault-backup.snap

Keep an encrypted copy outside the cluster. That file is your lifeline and must be treated as the organization’s most sensitive secret.

Step 3: deploy OpenBao with an equivalent configuration

The HCL configuration is nearly identical to Vault’s. A minimal example with Raft:

ui = true

storage "raft" {
  path    = "/opt/openbao/data"
  node_id = "bao-1"
}

listener "tcp" {
  address       = "0.0.0.0:8200"
  tls_cert_file = "/etc/openbao/tls/tls.crt"
  tls_key_file  = "/etc/openbao/tls/tls.key"
}

api_addr     = "https://bao-1.interno:8200"
cluster_addr = "https://bao-1.interno:8201"

If you use Kubernetes, the project maintains its own Helm chart. Keep the same resource requirements, PersistentVolumes and network policies you already applied to Vault.

Step 4: restore the snapshot in staging

With the OpenBao cluster initialized, restore the snapshot:

export BAO_ADDR=https://bao-1.interno:8200
bao operator raft snapshot restore -force vault-backup.snap

After the restore, the cluster adopts the data and seal configuration from the source. With Shamir unseal you’ll need the original Vault keys. With auto-unseal, the new cluster must access the same KMS key, or you’ll need to plan a seal migration.

Step 5: validate in depth

That the service starts doesn’t mean the migration works. Check at least the following:

  1. Secrets: read a representative sample from each KV engine and compare values.
  2. Authentication: test each method (AppRole, Kubernetes, OIDC) with real application accounts.
  3. Policies: confirm permissions behave the same, both allowed and denied access.
  4. PKI and Transit: issue a certificate and encrypt and decrypt a test value.
  5. Leases and dynamic tokens: verify dynamically generated database or cloud credentials.
  6. Auditing: enable an audit device and confirm events reach your SIEM.

Automate these tests in a script. You’ll run it again on migration day.

Step 6: adapt clients and integrations

This is where most migrations fail. The API is compatible, but integrations must be reviewed one by one:

  • Environment variables and scripts: replace VAULT_ADDR with BAO_ADDR wherever you use the OpenBao CLI.
  • Agent and Kubernetes injection: validate the sidecar agent and injector, or migrate to External Secrets Operator or the CSI provider.
  • Terraform: check the provider you use against your OpenBao instance in staging before running a apply.
  • CI/CD: review pipelines that invoke the vault binary by name.

A good practice is to keep URLs behind your own DNS record, such as secretos.empresa.interno. Then the cutover comes down to changing a single pointer.

Step 7: production cutover window

Plan a maintenance window with these steps:

  1. Announce the write freeze to affected teams.
  2. Take a final snapshot of the production Vault.
  3. Restore it to the production OpenBao cluster and unseal it.
  4. Run your validation suite from step 5.
  5. Switch DNS to the new cluster and monitor for 403 and 5xx errors.
  6. Keep Vault in read-only mode, without deleting it, for at least one or two weeks.

Step 8: rollback plan

Define the abort criterion up front: for example, authentication failures in more than a given percentage of critical services for 15 minutes. If it’s met, point DNS back to the original Vault. Since you kept it intact and write-free, the return is immediate. If there were already writes in OpenBao, assess whether you need to replicate them manually back to the source.

Common mistakes to avoid

  • Skipping the version check: migrating from a Vault version much newer than 1.14 without reading the docs can cause data incompatibilities.
  • Forgetting the seal: losing access to the KMS key or the Shamir keys leaves the snapshot useless.
  • Not testing custom plugins: they may need recompiling against OpenBao.
  • Deleting Vault too soon: without a coexistence period there’s no real rollback.
  • Ignoring observability: adjust dashboards, alerts and Prometheus metrics to the new instance names.

Conclusion: decide with data, not panic

The BSL license doesn’t force you to pay for using Vault internally, but it does change the landscape: Vault is no longer open source and its evolution depends on a single vendor, HashiCorp, now part of IBM. OpenBao offers a path with open governance, a compatible API and a manageable migration if you plan it rigorously.

Start with the inventory, rehearse with a snapshot in staging and automate the validations. Keep rollback available until you’re completely sure. With that method, the migration stops being a risky bet and becomes a controlled software vendor change, without disrupting the secrets that keep your services running.