OpenBao auto-unseal over KMIP

Using OpenBao's built-in KMIP seal to unseal the server from a KMS or HSM that speaks KMIP, with key material created before initialization. This page covers when it fits, how to set it up and what to confirm first.

On this page

When an OpenBao auto-unseal over KMIP setup makes sense

An OpenBao auto-unseal over KMIP setup makes sense when your organization already runs a KMIP-capable key management service or HSM, trusts it as the custodian of key material, and wants OpenBao to unseal automatically at startup instead of depending on Shamir key holders to type shares after every restart or failover. The KMIP seal lets OpenBao protect its root key with a key that lives in that external system, so the unseal decision moves to infrastructure your security team already operates and audits. If you have no KMIP service today, or your only candidate is a cloud KMS or HSM with a dedicated OpenBao seal plugin, the KMIP path adds a protocol layer you may not need. The sibling topics on Shamir ceremonies, PKCS#11 HSMs and cloud KMS seals cover those alternatives.

In practice, the KMIP seal works by sending wrapping and unwrapping requests from OpenBao to the KMIP server at startup, so the external key must exist and be reachable before you initialize the cluster. The key material is created externally, in the KMIP server's own tooling, and OpenBao is configured with the endpoint, client certificates and key identifier. Before initialization you need to confirm which KMIP operations your server supports, which key type and length it issues, how client authentication is handled, and who can rotate or revoke the key. Confirm the exact KMIP and OpenBao configuration details with the KMIP vendor's documentation and the OpenBao seal documentation for your release, since support can differ between versions.

This page is written for the platform engineer who will build the seal, the security or key custody owner who must approve the external key, and the operations lead who will handle a restart or failover when the KMIP endpoint is unavailable. If your answer to the availability question is unclear, read the rest of the page before committing: a KMIP seal is only as available as the KMIP service it depends on, and recovery planning belongs in the design, not after the first outage. The OpenBao documentation is the natural next read for how clustered nodes behave when unsealing depends on an external service.

How the KMIP seal unseals OpenBao at startup

The flow starts when an OpenBao node boots and reads its seal configuration, then opens a TLS connection to the KMIP endpoint using client credentials. The KMIP server holds the key object created before initialization, and the node uses it to recover the root key so the node can become unsealed. The diagram marks the trust boundary between the OpenBao zone and the KMS or HSM zone, and shows the separate recovery key path. Check that the client certificate is trusted by the KMIP server, that the key object is reachable, and that the recovery material is stored apart from the seal.

Startup flow from OpenBao node to KMIP endpoint, with the trust boundary and recovery path.

Which seal option fits your key custody model

This table compares the six ways OpenBao can protect its root key, from manual Shamir shares to a KMIP service. Read each row for who holds custody, what must be reachable when a node starts, and what the KMS or HSM side has to provide. The main takeaway is that every external seal trades manual unseal effort for a dependency that must be available at startup.

Seal optionKey custody modelNeeded at startupWhen it fits
Shamir unsealRoot key split into shares held by named people, with no external systemA threshold of key holders must provide their shares after every restartTeams without a KMS or HSM, or the initial setup before moving to auto-unseal
KMIP sealRoot key wrapped by a key on a KMIP-speaking KMS or HSM, created before initializationKMIP endpoint reachable and wrapping key present; confirm supported KMIP operations with the vendorOrganizations that already run a KMIP-capable KMS or HSM and want one custody system
PKCS#11 HSM sealRoot key protected by a specific HSM through its PKCS#11 libraryHSM partition, PKCS#11 library and credentials available to each nodeTeams with a validated HSM that has a documented OpenBao path; use the vendor sibling topics
Cloud KMS sealRoot key protected by a cloud provider key service, accessed through a workload identityCloud KMS API reachable and the node identity permitted to use the keyWorkloads already in one cloud where the account owner should hold key custody
Transit sealRoot key protected by a key in another OpenBao cluster's transit engineSource cluster unsealed, reachable, and a token with access to the keyTeams without a KMS or HSM that accept a second cluster as an availability dependency
Static sealA 32-byte AES-256-GCM key kept alongside the configurationKey material supplied to the node from its configurationOnly where the risk is accepted and the key is protected separately, with a plan to move to a stronger seal

Why key material must exist before OpenBao is initialized

With the KMIP seal, the root key protecting OpenBao is a key object that lives on the KMIP server, not inside OpenBao. That object has to exist, be reachable and carry the right attributes before the first bao operator init runs, so the custody decision is effectively made before OpenBao has stored a single secret. Before the first start, the operator should have the KMIP endpoint address, the client credentials or client certificate OpenBao will present, the CA certificate that signed the server's certificate, and the unique identifier of the key object that the seal configuration will reference. Confirm with your KMS or HSM vendor exactly which KMIP protocol version and key attributes their server supports, because a key created with the wrong algorithm, length or usage flags may be rejected at initialization or fail later during unseal.

Creating the key wrongly is expensive to fix. If the key is generated with the wrong properties, or in a partition or account that the OpenBao credentials cannot use, the first initialization either fails or produces a cluster whose recovery material depends on a key you cannot easily replace. Changing the seal on an initialized cluster is a planned migration, not a configuration edit, and it still depends on the existing key remaining available. Test the full sequence on a non-production cluster first: create the key, initialize, restart a node, and confirm automatic unseal works without a human entering a share. Record the key identifier, the KMIP server it lives on and the credential that can read it.

Before the first start, decide three things in writing. First, key ownership: which team owns the KMIP server, the key object and its access policy, and who can disable or delete the key. Second, rotation responsibility: who rotates the client certificate and credentials, and whether the key itself will be rotated and how OpenBao is told about a new version. Third, recovery key custody: where the recovery keys or the backup material needed if the KMIP service is unavailable are stored, who can reach them and how that access is logged. A KMIP outage then becomes a planned recovery procedure instead of an unplanned search for the people who created the key.

How to configure OpenBao auto-unseal over KMIP

This sequence takes a KMIP-capable key store from vendor confirmation through client certificates, seal configuration, initialization and a verified automatic unseal after restart. Each step ends with a check you can record as evidence.

  1. Confirm KMIP support with the vendor

    Before touching OpenBao, ask the KMS or HSM vendor which KMIP version and operations the appliance or service supports, including creating, locating and using symmetric keys for encrypt and decrypt. Confirm the exact KMIP operations OpenBao's KMIP seal requires against the official OpenBao seal documentation, because the vendor's KMIP profile may not cover every operation. Record the supported version, the endpoint address and port, and the authentication model the server expects. Done when the vendor has confirmed in writing which operations and client certificate profile are supported, and you can match each required operation to that list.

  2. Create the key object externally

    An administrator on the KMIP server creates the symmetric key object that OpenBao will use to protect its root key, before OpenBao is initialized. Give the object a clear name, restrict which client identity may use it, and record its unique identifier or name exactly as the server reports it. Keep this key in the KMS or HSM and never export it into a configuration file. Check that the key object is listed on the server, that its algorithm and length match the vendor guidance in the OpenBao docs, and that the administrator account can see it but the OpenBao client identity cannot change or delete it.

  3. Issue client certificates and install the trust chain

    Your PKI team issues a client certificate for the OpenBao nodes that the KMIP server accepts, and installs the CA certificate chain that signs the KMIP server's TLS certificate on every OpenBao node. Store the private key with restrictive file permissions readable only by the OpenBao service account. Confirm the certificate's subject, validity period and extended key usage meet the KMIP server's requirements. Verify from each OpenBao host with a TLS client that the server certificate chains to the installed CA and that the client certificate authenticates, without disabling certificate verification. Done when each node completes a TLS handshake to the KMIP endpoint with validation on.

  4. Write the KMIP seal stanza

    Add a seal stanza of type kmip to the OpenBao server configuration on every node, pointing at the KMIP endpoint, the client certificate and key files, the CA file and the external key reference from step two. Confirm the exact configuration keys, their names and whether any value must be supplied through an environment variable against the official OpenBao seal documentation, since those keys are not reproduced here. Keep the same stanza on all nodes so every node can unseal the cluster. Validate the file with the OpenBao configuration check before restarting anything, and confirm that the key reference is the same string the KMIP server reports.

  5. Initialize with recovery key handling

    Initialize the cluster on one node so that OpenBao generates recovery keys rather than Shamir unseal shares, because the KMIP seal removes the need to unseal manually. Store the recovery keys and the initial root token under split custody according to your key ceremony policy, since recovery keys are needed for operations such as rekeying and generating new root tokens. Confirm the node reports initialized and that the seal type shows as KMIP. Record where each recovery key share is held and who can reach it. Done when the initialization output is stored under your approved custody process and the node reports sealed status consistent with the configured seal.

  6. Restart a node and verify automatic unseal

    Restart one standby or non-leader node and watch its startup log and status output without any manual unseal command. The node should contact the KMIP server, decrypt its root key and report unsealed. Confirm the status shows the KMIP seal type, the node joins the cluster, and a test secret written through the active node can be read back through the restarted node. If the node stays sealed, read the log for TLS, authentication or key lookup errors before changing anything. Repeat the restart on the remaining nodes, one at a time, and record the time and result of each unseal as evidence for your change record.

  7. Test the failure path before production

    Before relying on the seal, test what happens when the KMIP server is unreachable or the client certificate is rejected. Restart a node while the KMIP endpoint is blocked and confirm the node stays sealed and logs a clear error, then restore access and confirm automatic unseal resumes. Document the recovery procedure your operators follow, including who holds recovery keys if the KMIP service cannot be restored, and confirm with your vendor how certificate renewal and key lifecycle events affect the seal. Done when the failure test results and recovery steps are written down and reviewed by the team that owns the KMIP service.

How the KMIP seal changes by environment

When the KMIP server is an HSM or KMIP appliance in your own data center, the OpenBao nodes and the appliance usually sit on the same internal network, and the seal traffic stays within infrastructure your team already governs. The key is generated and held on the appliance, so OpenBao never sees the key material. Most of the design work is about the network path and the certificate chain that OpenBao uses to reach the appliance.

  • Network path: Confirm that every OpenBao node has a routed, firewalled path to the KMIP port on the appliance, and that the appliance is reachable from each node's subnet during startup, not just during steady state.
  • Certificate issuance: Decide whether the appliance trusts your internal CA or uses its own, and confirm which client certificate format the appliance expects for OpenBao.
  • Rotation: Plan client certificate renewal on a calendar owned by a named team, and test that OpenBao reloads or restarts cleanly with the new certificate.
  • Key location: The unseal key lives on the appliance. Confirm backup, replication and key-deletion procedures with the appliance vendor before go-live.
  • HA across sites: If standby nodes sit in another data center, confirm the appliance is reachable from that site, or that a second appliance is in place.

Before the build starts, ask the appliance vendor which KMIP protocol version and client authentication modes the device supports, and confirm them against the OpenBao seal documentation.

Security risks of a KMIP-unsealed OpenBao cluster

A KMIP seal moves part of the root key protection to a system outside OpenBao. The cards below cover the links that connect the two: the client identity, the key object, the availability dependency, recovery material, the network path and the logs on both sides. Each one names the control your team must own and the evidence a reviewer will ask for.

KMIP client credential lifecycle

OpenBao authenticates to the KMIP server with a client certificate or credential, and that identity is the only thing allowed to wrap and unwrap the root key. Your team must own its issuance, storage in the node, rotation and revocation, and the procedure for replacing it when a node is rebuilt. Ask for the issuance record, the expiry date of each credential, and a tested rotation runbook. Confirm with the KMIP server vendor exactly which client certificate format and revocation checks it supports.

Seal docs

Access control on the key object

The KMIP server holds the key object that protects the OpenBao root key, so anyone with rights over that object can effectively disable the unseal path. Limit which KMIP client identities may get, encrypt, decrypt or destroy the object, and keep the key administrators separate from the OpenBao operators. Evidence to request includes the access policy export for the object, the list of administrators with their approvals, and a change log showing that no broad group holds decrypt rights.

Unseal dependency on the KMIP endpoint

Every OpenBao node must reach the KMIP endpoint to unseal after a restart, upgrade or failover, so an outage of that service stops the cluster from coming back. Map which nodes depend on which endpoint, check whether the KMIP service is highly available, and decide how an operator would respond during an outage. Keep a documented, tested drill that restarts a node with the KMIP service unavailable, and record the time to recovery as evidence for the resilience review.

Custody of recovery keys

A KMIP seal still generates recovery keys during initialization, and those keys are what allows root token generation and some administrative operations if the seal fails. Store them under dual control, split custody among named holders, and keep them out of the same systems that hold the KMIP credentials. Ask for the custody register, the holder acknowledgments, and the record of any recovery key use. Confirm in the current OpenBao documentation how recovery keys behave with your chosen seal.

Network exposure between zones

The KMIP connection crosses from the OpenBao zone into the key management zone, which makes it a path an attacker could use if the segmentation is weak. Restrict traffic to the specific source nodes and the KMIP port, require mutual TLS on that channel, and block all other east-west access to the key service. Evidence includes the firewall rule set, the network diagram showing the trust boundary, and the results of a scan from outside the permitted sources.

Audit logging on both sides

A reviewer must be able to reconstruct each unseal and each key operation, and that requires matching records from OpenBao and from the KMIP server. Enable OpenBao audit devices, forward the KMIP server's operation logs to the same central store, and synchronize time sources so events can be correlated. Ask for a sample event pair from one unseal, the retention period configured on each side, and the alert rules that fire on failed KMIP operations.

OpenBao HA docs

What does OpenBao auto-unseal over KMIP cost and take to set up?

What drives the cost of setting up OpenBao auto-unseal over KMIP?

The cost is driven mostly by the KMIP side of the design, the number of OpenBao nodes and sites, and how much testing the unseal path needs. Work on the KMIP server or KMS, the certificates OpenBao uses to authenticate to it, the key objects created before initialization, and the failover and restart tests all add effort. A single-site cluster with an existing KMIP service is a much smaller job than several sites with separate key stores. Ask any provider for a written scope that lists each of these items separately, so you can see which parts are one-time work and which are recurring. DeployOpen does not publish prices, and a quote follows from the written scope.

How long does OpenBao KMIP auto-unseal take to set up?

Duration depends on what already exists and how many environments need the seal. The main factors are whether the KMIP server or HSM is already running and reachable, whether the key objects can be created and named in advance, how many OpenBao nodes and sites must unseal from it, and how many failure scenarios you test before go-live. Work to confirm the timeline includes a restart test, a network loss test, and a certificate rotation test on a non-production cluster. Ask for the schedule to be tied to these milestones rather than a single end date, and confirm which items depend on your change windows and vendor support responses.

What does the client need to provide for a KMIP unseal project?

The work needs several people from your side before the engineering starts. A KMIP administrator must confirm the server, the object and key policies, and the client registration process. Network owners must allow the path from every OpenBao node to the KMIP endpoint. Your PKI owners must issue and renew the client certificate and confirm the trust chain. Key custodians or the team that owns the HSM or KMS must approve how key objects are created and who can use them. Ask the provider to list each of these roles, the decisions each one makes, and the dates by which those decisions are needed.

Can an internal team set up OpenBao KMIP auto-unseal without outside help?

Yes, a team with KMIP, PKI, OpenBao and network skills can build it, and the project documentation covers the seal configuration. The harder parts are usually outside OpenBao: agreeing on key object lifecycle with the KMIP or HSM owners, getting certificates issued correctly, and testing recovery from a failed unseal source. If your team has done a comparable seal or HSM integration before, an internal build with a written test plan is realistic. If the KMIP platform is new to the team, or several sites must be coordinated, an outside partner can run a fixed-scope build and hand over runbooks. Decide this by comparing the skills in the team against the list of work in the written scope.

What is one-time work and what recurs after OpenBao KMIP auto-unseal goes live?

Initial design, key object creation, the first configuration and the failover tests are one-time work. Recurring work includes rotating the client certificate before it expires, renewing it on the schedule your PKI sets, reviewing KMIP access logs, and retesting unseal after each OpenBao upgrade or KMIP server change. Patching the KMIP or HSM platform also recurs and can affect the seal path. Ask a provider which of these items are included in the fixed scope, which need a separate retainer, and what your team must run afterward without them.

What should be in a written scope for OpenBao KMIP auto-unseal?

A written scope should name the OpenBao version and the KMIP server or KMS product, list every node and site that will unseal, and state where key objects are created. It should cover certificate issuance and renewal, the configuration changes on each node, and a test plan that includes restarts, KMIP unavailability and node replacement. Deliverables should include runbooks, the recovery procedure for a failed unseal source, and a handover session. Confirm what is out of scope, such as the KMIP server build itself or the key custodian process, and what evidence you receive for your compliance or audit team.

What operational risks should the cost estimate account for?

The biggest risk is that OpenBao cannot unseal after a restart if the KMIP endpoint, certificate or key object is unavailable, so the cluster stays sealed until the path is restored. Budget for failover testing, a documented manual recovery plan, and monitoring of the seal status. Certificate expiry is another common cause of failure and should be on a tracked renewal calendar. Ask the provider how they will test these cases on a non-production cluster before go-live and how the findings will be fixed and retested.

Limits to confirm before you commit to a KMIP seal

A KMIP seal depends on three parties agreeing: the OpenBao release, the KMIP server and the TLS setup between them. Each card below is a question to settle with the KMIP vendor and the OpenBao documentation before you buy hardware, create keys or schedule a cutover.

KMIP version and operations

Ask the KMIP server vendor which KMIP protocol version it implements and which operations it supports for creating, locating, wrapping and retrieving keys. Then check that the OpenBao KMIP seal documentation for your release uses the same operations. A mismatch in one operation can surface only at unseal time, after a restart, so test the exact call sequence in a lab before production.

Seal docs

OpenBao release line support

Confirm that the OpenBao release line you plan to run documents the KMIP seal and that the feature is not marked experimental or deprecated for that line. Seal behavior has changed between releases, and the project's release notes list the current versions. Pin the release in your build plan and record it alongside the KMIP server version you tested against.

OpenBao releases

Object types and key wrapping

Establish with the KMIP server vendor which object types it can create and which wrapping methods it applies to exported key material. OpenBao needs a key it can use for wrapping and unwrapping the root key, so confirm that the server can create that object type with the attributes OpenBao requires. Ask whether the key can be marked non-exportable, since that determines whether a server compromise exposes the wrapping key.

TLS and client authentication

List every TLS requirement before deployment: server certificate chain, whether the KMIP endpoint requires mutual TLS, which client certificate OpenBao presents, and how that certificate is issued and rotated. Confirm the trust anchor the KMIP server uses and who owns renewal. A certificate that expires on a standby node can block unseal during the next restart, so put renewal dates in your operations calendar.

Behavior during endpoint outages

Ask what happens to OpenBao when the KMIP endpoint is unreachable during a restart, a node replacement or a failover. Because auto-unseal depends on the external service, an outage can keep a sealed node from becoming active. Confirm the retry behavior, the timeout settings, and whether recovery keys are needed for emergency operations. Write a runbook that names who can restore the KMIP service and how quickly.

Migration to or from another seal

Confirm the procedure for moving from a Shamir seal or another auto-unseal method to KMIP, and back again if you later change hardware. Check the OpenBao seal migration documentation for the release you run, and the steps needed to keep existing recovery keys valid. Test the migration on a copy of your data, because a failed seal change can leave a cluster that will not restart.

How DeployOpen scopes and delivers KMIP auto-unseal

DeployOpen treats OpenBao auto-unseal over KMIP as a planned change to how the root key is protected, not a single configuration edit. We agree the key custody model, the KMS or HSM that speaks KMIP, and the test and rollback plan in writing before any node is changed, then deliver the build, verification and handover inside your own infrastructure.

How we scope

  • We confirm which KMIP-capable KMS or HSM your organization already runs, and who administers it.
  • We document which OpenBao nodes, storage backend and environments the seal change covers.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • We create the unseal key material in the external KMS or HSM before OpenBao initialization begins.
  • We configure the KMIP seal stanza on a staging cluster and test unseal behavior after restarts.
  • We plan the migration from any existing Shamir or other seal, including recovery key handling and node-by-node rollout.

How we hand over

  • We deliver the configuration, runbooks and key custody records for your security and operations teams to review.
  • We document failure modes, including what happens when the KMIP endpoint or its credentials are unavailable at startup.
  • We walk your engineers through unseal, seal-change and recovery procedures in your own environment.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • We can retest the KMIP path after OpenBao version upgrades, KMS changes or certificate rotation.
  • We help your team prepare evidence of key custody and unseal controls for internal and external assessments.

Sources and further reading

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.