OpenBao security hardening

A hardening plan for OpenBao covering TLS, unseal and key custody, root token handling, least-privilege policies, audit devices and network isolation, with the effort each control adds.

On this page

Why OpenBao security hardening decides whether the secrets store is trustworthy

A team that has a working OpenBao cluster has not yet shown that the cluster is a defensible security boundary. Hardening is the work of making the trust boundaries, key custody and access paths of that cluster explicit, reviewed and provable to someone other than the people who built it. Until that review happens, the cluster is a service that answers requests, not a control that a security or compliance reviewer can rely on.

The default path is easy to get wrong because an initialized and unsealed cluster looks healthy. Clients can read and write secrets, applications connect, and nothing fails visibly. Three things carry most of the risk: the initial root token, which can do almost anything until it is revoked or narrowed; the unseal material, which determines who can bring the cluster back online and who could reconstruct its master key; and the storage backend, which holds encrypted data and coordination state that an attacker with access to it will try to reach. Each needs an owner, a documented custody path and a check that it stays where it belongs.

The pillar facts describe OpenBao encrypting values before they reach storage, issuing leases and revoking them automatically. Those properties are useful, but they do not decide how well the deployment resists misuse. The hardening choices sit with the operator: how TLS is terminated and which listeners are exposed, whether unseal keys sit with a cloud key service or with people, who may hold the root token and for how long, which auth methods and policies grant access, which audit devices record requests, and whether the network path to the cluster is limited to the callers that need it. Do not assume any of these settings is secure because it is the default. Confirm each one against the current OpenBao configuration reference and your own environment, and record the answer.

Before changing anything, the team should write down the current state of each of these areas and name who approves the target state. Ask the reviewers which evidence they will need, such as configuration files, a list of token holders and sample audit logs, so the hardening work is measured against what an assessor will actually check. A short, dated record of decisions is often more useful to a later audit than a long list of settings.

Which OpenBao components and settings carry the hardening work

Most OpenBao hardening decisions sit in a small set of components: the listener, the seal, the storage backend, auth methods, audit devices and namespaces. Each one has a default or a choice that changes your exposure, so each needs an explicit answer in your own configuration before the cluster holds real secrets.

Listener and TLS settings

The listener is where clients, peers and the API meet the server, so its TLS configuration decides who can read secrets in transit. Check that TLS is enabled on every listener, that certificates chain to a CA your clients trust, that the minimum TLS version and cipher choices match your policy, and that the cluster and API addresses are not exposed beyond the networks that need them. Confirm the exact keys with the configuration reference for your OpenBao version before you copy any example.

HA docs

Seal configuration and key custody

The seal protects the key that encrypts everything OpenBao writes to storage. Decide whether unsealing is manual or automated through a key management service, and who holds each unseal or recovery key. Record where the key material lives, how it is rotated, and which people or systems can trigger an unseal. An auto-unseal dependency is also a new availability and trust dependency, so the key service itself belongs in your threat model.

Storage backend choice

The storage backend holds the encrypted data, and the officially supported HA options are integrated storage (Raft) and PostgreSQL. The docs describe PostgreSQL as easier to operate safely than Raft. Check who can reach the storage path, how backups are encrypted, and how node identities are protected. In-memory storage is not a production choice unless your own requirements confirm that data loss on restart is acceptable, so confirm that before anything else.

Storage docs

Auth methods and policies

Auth methods decide how people and workloads prove identity, and policies decide what each identity can read or change. Use the method that fits each caller: the docs recommend Userpass for developer machines and AppRole for servers. Review every mounted method, remove unused ones, and grant each policy only the paths it needs. Check that login MFA is enabled where people authenticate, and that root-level policies are limited to a few named administrators.

Auth methods docs

Root token handling

The root token bypasses policy checks, so it should be used only for initial setup and rare recovery work. Confirm that no root token remains in automation, scripts or CI variables, that any generated root token is revoked after use, and that recovery steps are written down and tested. Record who can start a root token generation and who must approve it.

Audit devices and namespaces

Audit devices record requests and responses so you can trace access and investigate misuse, and they need a destination that cannot be silently disabled. Confirm that at least one audit device is enabled, that its log destination is monitored, and that failure behavior is understood. Namespaces provide tenant isolation inside one cluster, so check that each tenant's policies and mounts stay inside its own namespace and that administrators of one namespace cannot reach another.

Namespaces docs

Key decisions in hardening OpenBao and what each costs to operate

This table compares the main hardening decisions for an OpenBao cluster: unseal method, storage backend, authentication for people and servers, and isolation model. Read each row for the operational work it adds, especially who holds unseal material and what on-call effort follows. The main takeaway is that the cheapest choice to set up is often the most expensive to run safely.

DecisionOption and trade-offOperational cost to runWhen to choose it
Unseal methodManual Shamir key shares: no external key service, but operators must supply quorum to unseal after every restart or seal eventKey share holders are on call for restarts; share custody, rotation and quorum availability need written proceduresSmall environments with a reliable approval path, or where no external key service is permitted
Unseal methodExternal key service (auto-unseal): restarts unseal without people, but the key service becomes a dependencyKey service access, its own availability and audit logs must be run and monitored; confirm which seal types your OpenBao version supportsClusters that must recover without manual steps, once you have confirmed the supported seal type
Storage backendIntegrated storage (Raft): no separate database to run, with replication managed inside the clusterRaft peer health, snapshots and recovery drills are your team's job; leader failover needs tested runbooksTeams comfortable operating stateful nodes who want fewer moving parts
Storage backendPostgreSQL: the OpenBao docs describe it as easier to operate safely than RaftDatabase backups, failover and patching are handled with existing database skills, but the database becomes a security-critical dependencyOrganizations with mature database operations and a tested failover process
People authenticationUserpass: simple to set up, but passwords and MFA are managed inside OpenBaoAccount lifecycle, password resets and offboarding are manual; OpenBao recommends it for developer machinesDeveloper machines or small test environments, not broad production access
People authenticationSSO-backed methods (JWT/OIDC, LDAP): identity stays with your provider and group mapping drives policyGroup-to-policy mapping, provider configuration and MFA settings need ongoing review as roles changeProduction access for staff, where identity lifecycle must match your existing controls
Server authenticationAppRole: the method OpenBao recommends for servers, with role IDs and secret IDs issued per workloadSecret ID distribution and rotation must be automated; a leaked secret ID needs a fast revocation pathLong-running servers and services that cannot use a platform identity
Isolation modelNamespace within one cluster: shared operations and upgrades, with tenant isolation enforced by OpenBaoOne upgrade and one unseal process cover all tenants, so a cluster incident affects every namespaceTeams that share an operations group and need logical separation of tenants
Isolation modelSeparate cluster per tenant or trust zone: stronger blast-radius control, with duplicated operationsEach cluster needs its own unseal, backup, monitoring and upgrade cycle, which multiplies on-call workRegulated data sets or environments with separate administrators and audit scopes

How to harden an OpenBao cluster step by step

This sequence moves an OpenBao cluster from a default install to a configuration where traffic is encrypted, unseal material is split across custodians, the root token is retired, every action is logged, and access is limited to what each workload needs. Each step ends with a check you can run before moving on.

  1. Enforce TLS on every listener and between nodes

    Your platform team issues certificates for the API listener and for cluster-to-cluster traffic, then sets the listener configuration so that plaintext connections are refused. Clients, standby nodes and any load balancer must trust the same internal certificate authority, and certificate rotation needs an owner from day one. Confirm the result by connecting with a plaintext client and verifying the connection fails, then checking that the TLS certificate presented by each node matches the expected chain. Do not proceed until every node reports TLS as enforced.

  2. Design unseal and key custody with split responsibility

    Decide how the unseal key or recovery material is generated, stored and released before the cluster holds production data. Split custody across named people or roles so that no single administrator can unseal alone, and document who holds each share and how a share is replaced when someone leaves. If you use an external key management service for auto-unseal, confirm that its access policy is limited to the OpenBao nodes and that its audit logs are retained. Confirm the design by writing a custody register and running a test unseal with the custodians present, so the procedure is known to work before an incident.

  3. Initialize and then retire the root token

    Initialize the cluster, record the root token and recovery material in the custody process, and use the root token only to create a scoped administrative policy and identities for humans. Once those identities work, revoke the root token so that no standing superuser credential remains. For break-glass access, generate a new root token only when a documented procedure requires it, under the supervision of two or more custodians, and revoke it again afterward. Confirm the root token is no longer in use by attempting a privileged operation with it and verifying it is rejected, then checking that the audit log shows no root token activity after revocation.

  4. Enable audit devices before onboarding users

    Enable at least one audit device before any user or application is granted access, so that every request and response is recorded from the first login onward. Send the audit output to storage that the security team controls and that the OpenBao operators cannot silently edit. Plan for what happens if the audit device cannot write: confirm how your version handles that failure, because a blocked audit path can stop requests. Confirm the setup by performing a test login and a test secret read, then finding both entries in the audit destination with the expected identity and path. Treat missing entries as a blocker.

  5. Write least-privilege policies per workload and per team

    Create one policy per workload or team, granting only the paths and capabilities that workload uses, such as read on a single secret path for one application. Map identities to these policies through the auth methods you have chosen, using AppRole for servers and Userpass only where the auth methods documentation recommends it for individuals. Avoid wildcard paths and broad sudo capabilities unless a named owner has approved them in writing. Confirm the policies by testing each identity against a known-good path and a known-denied path, and record the results so that a later policy change can be reviewed against them.

  6. Restrict network paths to API, cluster and storage ports

    Limit inbound access to the API port from the clients and networks that need it, allow cluster traffic only between OpenBao nodes, and allow storage connections only from the nodes that use them. Place the storage backend, whether integrated storage or PostgreSQL, on a segment that no application subnet can reach. Keep administrative access on a separate path if your environment requires it. Confirm the restriction by scanning each port from an allowed and a disallowed host, and verifying that only the expected sources connect. Record the firewall or security group rules as part of the cluster's configuration, so that they are reviewed with every change.

How unseal keys and key custody shape the risk of a stolen backup

A stolen storage snapshot is only as dangerous as the unseal material that goes with it. OpenBao encrypts secrets before they are written to the storage backend, so the data at rest is ciphertext. Reading that ciphertext requires the encryption key, and the encryption key is itself protected by a key that must be supplied when the server starts or is unsealed. The distinction matters: the storage layer (integrated Raft storage, PostgreSQL or another supported backend) holds the protected data, while the unseal material, whether Shamir key shares or an external key service configured for auto-unseal, holds the means to open it. A backup of the data directory or database without the unseal path gives an attacker opaque bytes, but a backup taken together with enough unseal material or access to the key service gives them the secrets.

This is why the custody of unseal material deserves the same scrutiny as the cluster itself. With Shamir shares, whoever holds a threshold of shares can reconstitute the key, so the share-holders are effectively the recovery authority. With auto-unseal, the external key service becomes the control point: anyone who can call it with the cluster's identity, or who controls the cloud or HSM account behind it, can unseal a restored copy. Hardening therefore means deciding who may hold shares or administer the key service, keeping those two groups separate, recording who holds what and when it was issued, and rotating shares after a person with access leaves or changes role. The snapshot and the key custody model should be reviewed together, because a backup policy that is strict on storage encryption can still be weak if the key service is reachable from the backup host.

Ask the key-management owner to confirm several points before go-live. Which unseal method is in use, and where the shares or key service configuration are stored. Who can approve a key operation, and whether anyone can perform it alone. Whether custody records list each holder and are reviewed on a schedule. What the rotation procedure is after personnel change, including how the old share holder's access is removed and how the cluster is rekeyed. Whether the key service audit trail is retained and reviewed independently of OpenBao administrators. Confirm the exact share-rotation and rekey commands against the OpenBao documentation on the high availability and operational guidance for your version, and test the restore path on a non-production cluster so that the team knows whether a backup can be opened by the people you expect and no one else.

How hardening differs for a single node, an HA cluster and a migrated Vault cluster

A single node is common for test environments and small internal use. It has no standby to fail over to, so hardening focuses on the listener, the seal and the audit trail rather than cluster coordination. The configuration is simpler, but the same controls still apply, and a single node is often the first place a shortcut becomes permanent.

  • TLS on the listener: Confirm the listener uses certificates from your own CA and that plain HTTP is not exposed on any interface.
  • Key custody for the seal: Decide where the unseal key or auto-unseal key lives and who can reach it, and record that decision before first initialization.
  • Root token handling: Confirm the initial root token is revoked or stored offline once administrative users and policies exist.
  • Audit device: Enable at least one audit device writing to a location the operators cannot silently edit, and test that events are recorded.
  • Network reach: Restrict the API port to the subnets that need it and block direct access from user workstations.

Before go-live, ask the team to show a restart and a manual unseal on this node, since a single node has no peer to recover from if the process or host fails.

Access control and secrets handling controls to verify

These six controls cover the paths an attacker or careless operator would use to reach OpenBao secrets: network traffic, privileged tokens, overly broad policies, weak login, shared tenancy and secrets left in files. Each one has a specific check you can run against your own deployment before go-live and again after every upgrade.

TLS on every listener and cluster link

Plaintext listeners let anyone on the network path read tokens and secret values in transit. Check that the API listener and the cluster address both require TLS, that tls_disable is not set to true anywhere in the server configuration, and that clients validate the server certificate against your internal CA rather than skipping verification. Confirm the same for the storage backend connection, such as the PostgreSQL SSL mode. Test by connecting with a client that uses the wrong CA and confirming the connection is refused.

HA docs

Root token revocation and break-glass

A root token has unrestricted access and does not expire by default, so a leaked one defeats every other control. After initial setup, revoke the root token, and keep a documented break-glass procedure that generates a new root token only with quorum of unseal key holders and a recorded reason. Check that no root token appears in scripts, CI variables or operator notes, and that the break-glass steps have been rehearsed on a non-production cluster.

Least-privilege policies scoped per path

Broad wildcard paths let a single application read every secret in a mount. Write policies that name exact paths and the minimum capabilities, such as read on one KV path and no list or sudo unless needed. Review policies for * and + globs and for sudo on system paths. Test each policy by running the intended workload and a neighboring workload, and confirming the neighbor is denied.

Auth methods docs

MFA on login where supported

A password or static credential alone is a weak login for human operators. Where the chosen auth method supports it, enable login MFA so that a stolen password is not enough. Recommend Userpass only for developer machines, as the OpenBao auth methods documentation suggests, and use AppRole or identity-based methods for servers. Check that MFA is enforced on the methods that grant privileged policies, and confirm with the vendor docs which methods support it in your version.

Namespaces for tenant boundaries

When several teams or customers share one cluster, namespaces keep their mounts, policies and identities separated inside one deployment. Design the namespace hierarchy before onboarding, and make sure administrators of one namespace cannot read policies or secrets in another. Check this by logging in as a tenant administrator and attempting to list or read objects in a sibling namespace. Confirm the isolation guarantees for your version in the namespace documentation.

Namespaces docs

No static secrets in configuration files

Storage credentials, unseal material or API tokens written into server configuration or deployment manifests end up in backups, version control and logs. Keep credentials in environment injection, a cloud secret store or the platform's own secrets mechanism, and keep unseal keys out of the same place as the data. Scan configuration repositories, container images and CI logs for high-entropy strings and known key patterns, and confirm that the configuration file contains references instead of values.

How trust boundaries and request paths fit together in a hardened OpenBao cluster

The diagram starts with clients and workloads sending requests to the API over TLS, which reach the active node first. Standby nodes forward or redirect traffic to the active node, and all nodes write encrypted data to the storage backend. Unseal keys sit outside the cluster in a separate custody boundary, and audit output leaves through its own path to a log store. Check that the cluster sits in its own network zone, that only expected sources can reach the API, and that each hand-off is covered by a test.

Request, storage, unseal and audit paths around an isolated OpenBao cluster.

How to test that OpenBao hardening holds and fails safely

Hardening is only proven when the controls refuse the requests they are meant to refuse. Start by attempting the actions that should fail: an unauthenticated request to a secrets path, a request made with a root token after it has been revoked, a token issued to one workload reading a secret outside its own path in the policy, and a client connecting over plain HTTP or with a certificate the listener does not trust. Each attempt should return a denial, and the denial should appear in the audit log. Keep the test cases in a script with the expected result written next to each one, so a later upgrade or policy change can be rerun against the same list. The same applies to the unseal test: restart one node and confirm it stays sealed until the correct unseal method, whether a key share quorum or an external key service, releases it. Run the restart with the auto-unseal key service unreachable as well, because that is the failure you need to understand before an incident forces it on you.

Confirm that audit entries are written before you trust them. Enable a file audit device, perform a known set of operations, and check that each one produces a record that identifies the caller, the path and the outcome. Then test the failure mode deliberately on a non-production cluster. OpenBao's audit behavior when every audit device fails to write is the setting that decides whether requests are blocked or served without a record, so read the audit device documentation for your version and write down which behavior you have. Confirm that the record sink is monitored and that someone is alerted when it stops receiving entries. Your team can run the TLS, token, policy and restart checks and the audit write checks with the OpenBao CLI, curl and your existing log tooling. Ask an independent tester to attempt privilege escalation through the auth methods, to test the unseal and key custody design against an attacker who holds one node or one key share, and to review whether the audit trail would support an investigation. Their findings should be reported with evidence and retested after fixes, and you should not treat your own passing checks as an independent result.

What to monitor, back up and document after OpenBao hardening

This table lists the recurring items that keep a hardened OpenBao deployment hardened, with the owner we suggest for each and the review cadence your own policy should set. Use it to assign responsibilities before go-live, not after the first incident. The main takeaway is that most failures after hardening come from unowned routine tasks, such as unreviewed audit logs or policies that outlive the team that wrote them.

ItemWhat to check or keepSuggested ownerReview cadence
Audit log review and retentionConfirm audit devices are enabled and writing, review denied requests and admin actions, and keep logs for the period your records policy requiresSecurity operations, with platform team for log pipeline healthSet by your policy; confirm retention period with your compliance lead
Seal status and leader monitoringAlert on sealed nodes, unexpected leader changes and standby health so failures surface before applications noticePlatform or SRE on-callContinuous alerting; review alert thresholds after each incident
Storage backup and restore testsBack up the storage backend (integrated storage or PostgreSQL) and test restores into an isolated environmentPlatform team, with database owner for PostgreSQLSet by your recovery objectives; confirm with your own policy
Unseal material and key custodyConfirm where recovery keys or KMS access sit, who can use them, and that custody records match current holdersSecurity lead, with named key custodiansAt least after every staff change and on your policy schedule
TLS certificate rotationTrack expiry of listener and cluster certificates, rotate before expiry, and confirm clients trust the new chainPlatform team, with PKI owner if certificates come from an internal CATrack expiry continuously; rotation timing set by your policy
Policy and token reviewRemove stale entities, groups and policies, check root token has not been reissued, and confirm least-privilege scope still matches rolesIdentity or security team with application ownersAfter every team change and on your access review schedule
Release line and security patch trackingWatch the OpenBao releases page for new minor lines and security patches, then assess impact on your build and configurationPlatform team, with security sign-off for patchesCheck the releases page on a fixed schedule set by your patch policy
Hardening documentationKeep current the architecture, listener and seal configuration, auth method list, audit device list and runbooks for failover and recoveryPlatform team, reviewed by security and complianceUpdate on every configuration change and review at least once per your documentation cycle

Questions teams ask before hiring help with OpenBao hardening

How much effort does OpenBao hardening take, and what drives it?

Effort depends mostly on how many environments you run, how many auth methods and integrations you connect, and how you hold unseal and root material. A single production cluster with one identity provider and a few AppRole workloads is a much smaller job than separate development, staging and production clusters with Kubernetes, database and PKI integrations. The key custody model matters as much as the topology. An auto-unseal design that depends on a cloud key service needs its identity and access settings, logging and failure modes reviewed alongside OpenBao itself. Ask any provider for a written scope that lists each environment, auth method, secrets engine, integration and storage backend, so the quote follows from those items.

Can our internal team harden OpenBao without an outside partner?

Often yes, if the team already runs TLS, Linux hosts and identity systems and has someone who can design policies. The install is the smaller part. Most of the effort goes into deciding how TLS certificates are issued and rotated, where unseal keys live, how the root token is retired, and how each workload receives only the policies it needs. Internal teams often find change control the hardest part, because every step touches a running secrets service that other systems depend on. Check whether you have someone to own key custody, someone to write and test policies, and time in a change window to rehearse failover. If any of those is missing, a partner or a short advisory review can fill the gap.

What does hardening work need from our team before it starts?

Plan for access, decisions and time from your side before work begins. The main items are:

  • Administrative access to the hosts, network segments, load balancers and cloud accounts where OpenBao runs, plus read access to current configuration.
  • Named owners for unseal material and recovery keys, with a documented split so that no single person can unseal the cluster alone.
  • Identity provider and DNS owners who can register clients and issue certificates.
  • Change windows for TLS changes, auto-unseal changes and failover tests, agreed in advance.
  • A security reviewer who signs off on policies and audit device settings.

Missing any of these usually delays the project more than the technical work does.

Does hardening make our OpenBao cluster audit-ready?

No. Hardening makes the system easier to review, and it produces evidence such as configuration records, audit device logs and policy listings. DeployOpen prepares those systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those determinations against the framework you are assessed under. Before starting, ask your auditor which controls they expect to see and which evidence formats they accept, so the hardening work produces what the assessment needs. Also confirm how long audit logs must be retained and where they will be stored, since audit device output has to go to a destination you control.

How do OpenBao upgrades affect hardening work?

Upgrades can change configuration and behavior you have already hardened, so plan them as part of the same project. For example, OpenBao stopped using mlock in 2.0.0, so any disable_mlock setting must be removed from configuration. Teams moving from Vault should note that the OpenBao migration guide describes an in-place replacement of the server process on all nodes, with configuration, endpoints and URLs unchanged. That path was tested only against Vault 1.14.1 community edition, so Enterprise clusters need separate confirmation. After each upgrade, rerun your policy, TLS and audit checks, because a new release can change defaults.

What should we confirm about OpenBao version support before starting?

First confirm which release line you run and whether it still receives patches. The OpenBao releases page lists v2.7.0, released September 23, 2026, and v2.7.1, released October 1, 2026, with v2.6.4 released the same day for the previous minor line. Then confirm with the project or your provider how long each line receives security fixes, and set the hardening baseline on a version you can keep patched. Review the release notes for changes to storage, auth methods and audit behavior between your current version and the target. Record the version decision in the scope so the hardening baseline, upgrade plan and support expectations match.

Does the storage backend change how we harden OpenBao?

Yes. Integrated storage (Raft) and PostgreSQL are the officially supported HA backends, and the docs describe PostgreSQL as easier to operate safely than Raft. With Raft, hardening covers peer communication, snapshot handling and the disks holding data on each node. With PostgreSQL, hardening covers database roles, TLS to the database, backup protection and the lock behavior that HA depends on, and much of that sits under the database team's controls. Confirm which backend fits your operating model before writing the hardening plan, because network paths, backup owners and failover tests differ between the two.

How DeployOpen scopes, hardens and hands over OpenBao clusters

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including OpenBao. Each hardening engagement starts from a written, fixed scope that names the cluster, storage backend, unseal method and auth methods in use.

How we scope

  • Inventory the existing or planned OpenBao cluster, storage backend, unseal design and network paths before agreeing on work.
  • Agree in writing which hardening controls are in scope, such as TLS, key custody, audit devices and policy review.
  • Confirm who owns root token custody, unseal key holders and on-call duties so the scope reflects real decision makers.

How we build

  • Configure TLS for listeners and cluster traffic, and document certificate sources, rotation steps and trust chains.
  • Set up auto-unseal or manual unseal with key custody agreed with your security team, then test seal and unseal procedures.
  • Review least-privilege policies and auth method settings, then enable audit devices and isolate network access to the cluster.

How we hand over

  • Deliver written configuration, policy and runbook documentation for your team to review and keep under change control.
  • Provide test evidence for TLS, unseal, audit logging and network isolation so your compliance reviewers can trace each control.
  • Walk your operators through root token revocation, break-glass handling and failover steps before the engagement closes.

How we support

  • Retest hardened settings after OpenBao upgrades or configuration changes, as set out in the agreed scope.
  • Offer ongoing support, upgrades and continuous testing as a retainer, priced separately from the fixed-scope build.
  • Confirm with DeployOpen during scoping which retest cadence and support hours apply to your environment.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.