Skip to content

Category: Security

OpenBao and HashiCorp Vault: secrets management for your infrastructure

The database passwords, API keys and certificates your applications use, kept out of the code and the repositories, with permissions per service, credentials that expire on their own and a record of who read what.

Where it runs
In your account, in your name
Backups
With tested restores
Updates
Planned and documented
Licence
OpenBao: open source, MPL 2.0. HashiCorp Vault: BSL 1.1 since 2023

In short

OpenBao is an open source secrets manager, licensed under MPL 2.0, that started as a fork of HashiCorp Vault and is hosted at the Linux Foundation. We set it up in your account for high availability, connect Kubernetes, your pipelines and your people, configure short-lived credentials and certificates, enable auditing and take care of backups and upgrades. If you already use Vault, we look after it the same way.

What do we look after?

A secrets manager ends up being the piece everything else depends on: if it is sealed or down, the applications do not start; if someone gets hold of a token with too many permissions, they hold the keys to everything. That is why we run it with more care than almost any other service.

  • Secrets

    Versioned key-value engine, organised by environment and by application.

  • Short-lived credentials

    PostgreSQL, MySQL, MariaDB or Valkey users created on request and revoked when they expire.

  • Certificates

    An internal certificate authority with the PKI engine and short-lived certificates.

  • Encryption

    The Transit engine, so applications encrypt data without handling the keys.

  • Authentication

    Kubernetes, AppRole and JWT for machines; OpenID Connect for people.

  • Auditing

    A record of every request shipped outside the cluster, to know who read what and when.

Which architecture do we recommend?

A three-node cluster with integrated Raft storage, spread across separate availability zones where the provider has them; five nodes if it must survive losing two. No external database to maintain. Unsealing uses the provider’s key management service, so a restarted node comes back on its own; where there is none, keys split between several people. Each application authenticates with its own identity and can only read its own path.

Engine What for What changes
Key-value (KV v2) API keys, tokens and static passwords They leave the repository and hand-written variables, with a version history
Databases PostgreSQL, MySQL or MariaDB users per application Each credential expires on its own and a leaked one stops working within hours
PKI Internal certificates between services Short-lived certificates instead of one that lasts for years
Transit Encrypting sensitive data from the application The key never leaves OpenBao

Which problems do we find most often?

  • Root token in daily use: the initial token kept and shared, instead of revoked.
  • A single node: every upgrade or restart leaves all the applications without secrets.
  • Unseal keys kept together: all in the same place, or on the same server as OpenBao.
  • No auditing: nobody can say who read a leaked credential.
  • Policies that are too broad: any application can read the others’ secrets.
  • Secrets that never rotate: OpenBao used as an encrypted file, holding passwords that are years old.

How do Kubernetes, pipelines and people connect?

In Kubernetes, each application authenticates with its service account and receives only the secrets in its policy, through the OpenBao agent or External Secrets Operator. CI/CD pipelines use AppRole or the JWT issued by your CI platform, with no fixed credentials stored in the pipeline. People sign in with OpenID Connect through Keycloak, with their two-factor authentication and their groups, and removing them from the directory removes their access. Policies live in the repository and are applied with Terraform or OpenTofu.

OpenBao or HashiCorp Vault?

Both share an origin, an API and a way of working. The real differences are these:

  • OpenBao (MPL 2.0, Linux Foundation): open source, community-governed and with no licence change in sight. It is the option we recommend for new installations.
  • HashiCorp Vault (BSL 1.1 since 2023): you can keep using it inside your company, but it is no longer open source and some features are only in the paid Vault Enterprise.

Our recommendation: if you are starting from scratch, OpenBao. If you already have Vault and it works, we keep it as it is; a migration only pays off if the licence worries you or you are about to need paid features, and it is always rehearsed first. Who the licence really affects and how to migrate are covered in this article.

How do we handle backups and upgrades?

We schedule Raft snapshots and copy them off the provider. They are encrypted, so without the unseal keys or the key management service they are useless: that is why we check both when we run test restores on a separate cluster. Before upgrading we read the release notes, take a snapshot and rehearse in an environment with the same configuration; then we upgrade node by node, standbys first and the leader last, so the applications do not notice. Alerts for sealed nodes, leader loss and certificates about to expire go to Grafana and Prometheus monitoring.

How the pieces fit together
  1. Applications and CI/CDRequest the secret at start-up
  2. AuthenticationKubernetes, AppRole, JWT or OIDC
  3. OpenBaoPolicies and secrets engines
  4. Integrated RaftThree or five nodes
  5. Key managementAuto-unseal

Where do we set it up?

In your account, with the provider you already use or the one that fits best. If the data has to stay in the EU, Hetzner and OVHcloud are the European options.

Providers we set it up on

  • Hetzner
  • AWS
  • Google Cloud
  • Azure
  • DigitalOcean
  • OVH
  • Own server
ProviderHow we set it upThings to bear in mind
HetznerThree cloud servers on a private network running OpenBao with integrated Raft, or OpenBao inside your Kubernetes on Hetzner.Hetzner has no key management service: unsealing uses keys split between several people or the Transit engine of another OpenBao.
AWSOpenBao on EC2 or EKS, with auto-unseal through AWS KMS and permissions through IAM roles.If you only use AWS and static secrets, we compare it with AWS Secrets Manager first.
Google CloudOpenBao on GKE or Compute Engine, with auto-unseal through Cloud KMS.
AzureOpenBao on AKS or virtual machines, with auto-unseal through Azure Key Vault.
DigitalOceanOpenBao on Droplets or DOKS, with split unseal keys or Transit from another OpenBao.
OVHOpenBao on Public Cloud or Managed Kubernetes, with auto-unseal through OVHcloud KMS.
Own serverOpenBao on your servers, unsealed with a PKCS#11-compatible HSM or split keys.The three nodes go on separate physical machines: if they share a host, they share the outage.

What is included

  • OpenBao in your cloud account or on your servers, as a three-node cluster with integrated Raft storage and the configuration as code.
  • Auto-unseal with your provider's key management service, or keys split between several people where there is none.
  • Versioned key-value secrets, organised by environment and by application.
  • Short-lived database credentials, created on request and revoked when they expire.
  • An internal certificate authority to issue short-lived certificates.
  • Access from Kubernetes, from CI/CD with AppRole or JWT, and for people with OpenID Connect and Keycloak.
  • Least-privilege policies per service and an audit log shipped outside the cluster.
  • Raft snapshots off the provider, with a test restore, and rehearsed upgrades.

Frequently asked questions

Why do you recommend OpenBao rather than HashiCorp Vault?

Because of the licence. In 2023 HashiCorp moved Vault to the Business Source License (BSL 1.1), which lets you use it inside your company but is no longer open source. OpenBao is the fork of the last open source release, licensed under MPL 2.0 and governed within the Linux Foundation. For most uses it works the same and does not tie you to a vendor.

Do we have to migrate if we already use HashiCorp Vault?

No. If Vault works for you, we look after it with the same care: cluster, backups, auditing and upgrades. If you want to move to OpenBao, we first check your Vault version and whether you use any Vault Enterprise features, and we rehearse the migration in a separate environment.

What happens if the unseal keys are lost?

The encrypted data cannot be recovered. That is why the keys are split between several people in your company and stored separately, or the provider's key management service is used with its recovery keys kept the same way. We write it down and check it during test restores.

Is it worth it compared with our provider's secrets manager?

If you are on a single cloud and only store static secrets, the provider's manager is usually enough and simpler. OpenBao pays off when you have several clouds or your own servers, or want database credentials that expire on their own, an internal certificate authority or independence from a provider.

Can OpenBao be the team's password manager?

That is not what it is for. OpenBao holds the secrets that machines use: applications, pipelines and servers. For the passwords people use, with a browser extension and a mobile app, we recommend Vaultwarden.

Tell us about your case

Call or write to us and we'll tell you where you stand and where to start. Free, no strings attached.

Official documentation consulted

The technical details on this page are based on:

Reviewed on

WhatsApp