How to Install & Set Up OpenBao
Install OpenBao — the Linux Foundation's fully open source fork of Vault — store your first secret, then look at how a real (non-dev) server initializes, unseals, and authorizes access.
Prerequisites
- ✓A Linux host
The model: encryption as a service
OpenBao isn't just a place to dump passwords — it's a server that mediates every read and write through auth methods (how a caller proves who it is: tokens, LDAP, Kubernetes service accounts) and policies (what that identity is allowed to do, expressed as HCL rules over paths). Secrets themselves live behind secrets engines; the KV engine used below is the simple key-value case, but database, PKI, and cloud-credential engines can hand out short-lived, dynamically generated credentials instead of static ones.
Install the OpenBao binary (any Linux distro)
Alternative — run OpenBao in Docker
Build from source
OpenBao is Go and fully open source under the MPL, so a from-source build is a genuine, documented option — not just a workaround.
Start a dev server
The dev server runs in-memory, unsealed, and pre-authenticated — perfect for learning, never for production.
Store and read a secret
How a real server starts: init and unseal
The -dev server skips two steps that matter in production. bao operator init generates the root encryption key and splits it into a configurable number of unseal key shares using Shamir's Secret Sharing — by default you need any 3 of 5 shares to reconstruct the key. Every time the server process restarts, it comes up sealed (unable to decrypt anything) until enough shares are supplied again with bao operator unseal.
There is no recovery if you lose enough unseal key shares to fall below the threshold — the data is cryptographically unreadable, by design. Back the shares up somewhere durable and separate from the server itself.
Enable a secrets engine and scope access with a policy
Documentation & Knowledge Base
Download OpenBao— all versions & official links→Need OpenBao deployed and managed for you?
We're OpenStack Dev — we design, deploy, and operate production DevOps infrastructure.