OpenBao auto-unseal with AWS KMS

Auto-unsealing OpenBao with an AWS KMS key removes manual unseal ceremonies after restarts, but it moves trust to your AWS account and IAM. This page covers the setup, the 2.6 plugin change and the checks to run.

On this page

When OpenBao auto-unseal with AWS KMS fits your environment

Choose AWS KMS auto-unseal when your OpenBao nodes restart often enough that re-entering Shamir shares after each restart becomes an operational burden. An OpenBao node starts sealed. With Shamir, the root key is rebuilt only after enough key holders supply their shares. With an AWS KMS seal, the node asks AWS KMS to decrypt the protected root key at startup, so a restart, an instance replacement or an autoscaling event can return to service without a person in the loop. The trade is a dependency: the node's ability to unseal now depends on AWS KMS being reachable and on the IAM permissions granted to the instance or pod that runs OpenBao.

The option fits best when your organization already runs workloads and key policy in AWS, has an identity team that can scope IAM permissions to a single KMS key, and accepts AWS as the custodian for the seal. Shamir fits when you want no cloud dependency and can staff a ceremony and a custody process. An HSM fits when regulation, a customer contract or internal policy requires keys in dedicated hardware, because a cloud KMS key is a different custody model and needs its own review. Before committing, confirm with your compliance team how KMS key custody is described in your control set, which account and region the key must live in, and how recovery material will be stored. Those decisions shape the design more than the seal itself. Also confirm the seal configuration keys for your OpenBao version in the project documentation, since the 2.6 line moved built-in seals to KMS plugins.

DeployOpen plans and implements AWS KMS auto-unseal inside your own AWS accounts. The work covers the KMS key and its key policy, the IAM role or pod identity OpenBao uses, the seal settings in configuration, the handling of recovery material, and a test plan. The tests include a rolling restart, a node replacement and a deliberate loss of access to the key, so your team sees how the cluster behaves before an incident shows it. These tests matter because a seal that works on a normal day can still leave a cluster sealed after a node failure if permissions or the network path are wrong. Scope, deliverables and timelines are agreed in writing before work starts, and the design decisions are documented so your team can operate the setup afterward.

What the root key protection decision changes for your team

Choosing an AWS KMS key to protect the OpenBao root key shifts where availability, access control and audit evidence live. Each card below is a decision your platform, security and cloud teams need to make and document before the seal goes into production.

Unattended unseal versus manual key custody

With a KMS seal, OpenBao unseals itself after a restart instead of waiting for an operator to supply Shamir shares. That removes a manual step from node restarts and failover, but it also means the ability to unseal now depends on a cloud key rather than on people holding shares. Decide whether your team accepts that trade and who keeps the recovery shares that remain necessary for operations such as rekeying. Confirm the sealing behavior for your chosen OpenBao version in the project docs before you commit.

HA docs

KMS availability as a cluster dependency

If OpenBao cannot reach AWS KMS at startup, a node cannot unseal, so an outage at the KMS endpoint or a network path problem can block recovery at the same moment a node has failed. Map the region and endpoint your nodes depend on, decide whether you use a regional or multi-region design, and test what happens when the path is cut. Write down the expected recovery order for the cluster so the on-call team does not discover the dependency during an incident.

IAM permissions on the unseal key

The OpenBao node needs an IAM identity allowed to call the encrypt and decrypt operations on the specific KMS key, and nothing broader. Decide how that identity is granted to the nodes, such as an instance role or workload identity, and who can change the key policy or grant access to it. A key policy that is too wide lets other workloads or administrators decrypt the root key material, so review the policy as a security control, not as plumbing.

Key policy and administrator separation

Separate the people who administer the KMS key from the people who administer OpenBao. The key administrators should be able to schedule rotation or change grants without being able to read secrets, and OpenBao operators should not be able to change the key policy that protects their own root key. Document this split in your access model, because auditors and reviewers will ask who can disable or delete the key that unseals the cluster.

AWS CloudTrail as seal activity evidence

KMS calls made to unseal OpenBao can be recorded in AWS CloudTrail, which gives your security team a record of when and from which identity the key was used. Decide whether those events are forwarded to your central log platform, how long they are retained, and who is alerted on unexpected decrypt calls or key policy changes. Confirm which KMS events your organization's CloudTrail configuration captures, since that setting is owned by your AWS account, not by OpenBao.

Migration and key recovery planning

Moving from Shamir or another seal to AWS KMS is a change to the root key protection, so it needs its own runbook, rollback path and test window. Plan how you will keep a copy of the recovery material, how the key is disabled or scheduled for deletion without locking out the cluster, and how you will restore if the KMS key is lost. Ask the project and your AWS account team to confirm the procedure for your version before any production change.

Choosing between AWS KMS, Shamir, HSM and transit seals

This table compares AWS KMS auto-unseal with Shamir key shares, PKCS#11 or KMIP hardware, and the transit seal from another OpenBao cluster. Read each row as a decision point: who holds the root key, what happens on restart, and which outside service must stay available. The main takeaway is that AWS KMS removes manual unseal in exchange for a dependency on your AWS account and network path, so plan its recovery as carefully as the key itself.

Decision criterionAWS KMS pluginShamir key sharesHSM, KMIP or transit seal
Key custodyWrapping key lives in AWS KMS under your key policy and IAM controlsUnseal shares are held by named people with no external key serviceWrapping key sits in a hardware device, KMIP server or another OpenBao cluster
Unseal after restartNodes unseal automatically when they can call AWS KMSOperators supply the threshold of shares after every restart or failoverAutomatic once the device or source cluster is reachable
External dependencyNetwork path and IAM permissions to the AWS KMS endpointNone at unseal time, only the people and share holdersA live HSM or KMIP server, or a second OpenBao cluster for transit
Recovery if the source failsDepends on the AWS account, key state and access to the key policyLoss of enough shares means the root key cannot be rebuiltDepends on HSM backups, device replacement or the source cluster's recovery
Day-two operationsKey policy, IAM role and CloudTrail reviewCeremonies, share custody, and rekeying when holders changeDevice firmware, partitions and PKCS#11 or KMIP client version management
Audit evidenceKey usage logs and key policy history that assessors can reviewCeremony records and a share custody registerDevice certifications and ceremony records, to be confirmed with the vendor
Typical fitClusters hosted in AWS or with dependable AWS connectivitySmall or first-time deployments and environments with no cloud key serviceHardware custody mandates, or multi-cluster setups with an existing trusted cluster

What changes in the move from built-in seals to KMS plugins in 2.6

The main change this topic covers is that cloud key stores such as AWS KMS are handled through a seal plugin in the 2.6 line, instead of the built-in seal configuration that earlier clusters may still use. Before you change anything, read the 2.6 release notes on the OpenBao releases page and confirm three things: which built-in seal types remain supported, whether the built-in AWS KMS seal is deprecated or still recommended, and which plugin package and version match your OpenBao binary. Do not assume the stanza names or plugin install steps carry over from older examples. Check them against the release you will run.

Existing clusters need a review before the seal is touched. Inventory every node's seal block, the OpenBao version each node runs, and whether any node still carries settings removed in earlier releases. The migration guide notes that disable_mlock must be removed from configuration because OpenBao stopped using mlock in 2.0.0, so this is a good moment to catch it. Also confirm whether clusters bootstrapped before Vault 1.3 need a rekey first, since the migration guide flags that case. Record the current seal and recovery arrangements so you know what material you must hold during the switch.

Plan the seal change as its own change, separate from version upgrades. Confirm in the documentation whether moving from a built-in seal to a plugin seal uses a documented seal migration path, what key material is needed during that step, and how recovery keys behave afterward. Test the full sequence on a non-production cluster with the same node count and the same IAM setup, including a restart of every node and a simulated loss of KMS access. Keep the existing unseal material and a rollback plan until the new seal has passed those tests.

How to set up the AWS KMS key and OpenBao seal

This sequence takes an OpenBao cluster from an AWS account decision to a verified auto-unseal, with a KMS key that only the OpenBao node role can use. Each step ends with a check so you know whether to continue.

  1. Decide the account, region and key ownership

    Your cloud or platform owner chooses the AWS account and region where the OpenBao nodes run and where the KMS key will live, and confirms which team administers the key. Keep the key in the same region as the nodes so unseal does not depend on cross-region calls. Record the account ID, region, node IAM role name and the names of the teams allowed to change key policy. The check is a written sign-off from the security and platform owners that names the account, region and key administrators before anything is created.

  2. Create a symmetric KMS key

    In the chosen account and region, create a symmetric encryption key in AWS KMS for OpenBao's seal wrapping. Give it a descriptive alias and a description that names the OpenBao cluster, and turn on automatic key rotation if your policy requires it and the current OpenBao seal documentation confirms it works with your setup. Do not reuse a key that other applications depend on. The check is that the key shows as enabled, symmetric and encrypt/decrypt capable in the console or CLI output, and that you have its key ID or ARN recorded.

  3. Write a restrictive key policy

    Replace the default key policy with one that names the key administrators, the account root for recovery, and only the OpenBao node role as a principal for encrypt and decrypt. Avoid wildcard principals and wildcard actions. Keep administrative actions such as policy changes and key deletion separate from the runtime role. Review the policy with the security team before applying it. The check is a simulated or test call from the OpenBao node role succeeding, and an identical call from an unrelated role being denied.

  4. Grant the node role only the actions it needs

    Attach an IAM policy to the OpenBao node role that allows only the KMS encrypt and decrypt actions on the single key ARN, and any other read-only action the current seal documentation lists as required. Do not grant key administration, wildcard resources or broad KMS permissions. If nodes use instance profiles or workload identity, confirm the role is the one the nodes actually assume. The check is an IAM policy simulation showing the allowed actions and an explicit deny for anything outside the list.

  5. Install the AWS KMS seal plugin

    On each OpenBao node, install the AWS KMS plugin build that matches your OpenBao release, following the seal instructions in the project documentation. Confirm the plugin binary and its version match the OpenBao version running on that node, and that the plugin is available in the image or package you deploy. Keep every node on the same plugin version. The check is that the plugin version reports on every node and matches the OpenBao server version recorded in your change ticket.

  6. Configure the seal stanza

    Add a seal stanza to each node's configuration that names the awskms seal type, the KMS key ID, the region and the endpoint settings the current documentation requires. Use instance metadata or workload identity for credentials rather than static access keys stored in configuration files. Remove any Shamir-only settings that conflict with the new seal according to the migration guidance for your version. The check is that configuration validation passes on every node and that no static AWS credentials appear in the configuration files.

  7. Initialize the cluster with recovery keys

    Initialize one node with the operator init command so OpenBao generates its root key wrapped by AWS KMS, and store the recovery key shares and initial root token according to your key custody plan. Recovery keys are still needed for some operations even with auto-unseal, so record who holds them and where. Then bring the remaining nodes into the cluster. The check is that the initialization output is stored in your approved vault or custody process, and that the cluster reports an initialized and unsealed status without manual key entry.

  8. Verify automatic unseal after a restart

    Restart one OpenBao node, then restart the full cluster during a maintenance window, and confirm each node unseals without an operator entering key shares. Check the status output, the seal-related log lines and the KMS call activity in AWS CloudTrail. Also test that a revoked or disallowed role causes unseal to fail, so you know the key policy is doing its job. The check is a documented restart test with timestamps showing all nodes returning to unsealed, plus a recorded denial test.

How an OpenBao node unseals through AWS KMS

The flow starts when an OpenBao node boots with a sealed core and asks AWS KMS to decrypt the stored recovery material, using the identity its instance or workload presents. Once KMS returns the decrypted material, the node reconstructs its root key and leaves the sealed state. The trust boundary sits between your AWS account and the OpenBao cluster, so check that the KMS key policy and the node's role permit only the decrypt call the seal needs.

Startup unseal sequence from node identity to KMS decrypt and unsealed state.

Security controls for an AWS KMS unseal key

An AWS KMS key that unseals OpenBao is one of the most sensitive dependencies in the cluster, because whoever can use it can bring the cluster up from storage. The controls below connect the key policy, the IAM roles, the logs and the initialization output, so each one can be checked in your own AWS account and in your own runbooks.

Scope the key policy tightly

Write the KMS key policy so that only the OpenBao node role can call the encrypt and decrypt actions the seal needs, and only for this key. Avoid broad principals such as the account root with unrestricted use, and confirm that administrative actions such as key deletion and policy changes sit with a separate set of security administrators. Check the policy with the IAM policy simulator and review it on every change, because a single overly broad statement undermines the whole seal.

AWS KMS seal docs

Separate operator and node roles

Keep the role that runs the OpenBao process separate from the roles people use to administer AWS and the cluster. Operators who manage instances, deployments or Terraform should not hold kms:Decrypt on the unseal key, and the node role should not be able to edit IAM or key policies. Verify this by listing the effective permissions of each role and by attempting the forbidden actions from each identity.

Log every KMS call to CloudTrail

Enable CloudTrail data events for the unseal key so that each Decrypt and Encrypt call is recorded with its calling principal, source address and time. Send these logs to a bucket or log group that the OpenBao administrators cannot modify. Test the alerting by reviewing logs after a planned node restart, and confirm that unexpected principals or calls outside maintenance windows trigger an alert.

Protect the initialization output

When OpenBao initializes with an AWS KMS seal, it still produces recovery keys and an initial root token, and those must be stored outside the cluster. Decide who holds the recovery key shares, store them in separate, access-logged locations, and avoid writing them to CI logs, tickets or shared drives. Confirm the handling process in a tabletop exercise before production go-live, since losing these values can prevent recovery from a seal problem.

Assess the compromised node risk

A compromised OpenBao node that can assume a role with decrypt rights on the unseal key can obtain the same unseal capability as the cluster itself. Limit the blast radius by using instance profiles with narrow trust, short-lived credentials, and network controls that restrict who can reach the node. Ask your team to document how a node would be isolated, how the role would be revoked, and how the unseal key policy would be tightened during an incident.

Rotate and review access regularly

Plan periodic reviews of the key policy, the node role's attached policies and the list of principals with access to the key. Confirm that the review covers changes made through other automation, such as infrastructure-as-code pipelines that can update policies. Record each review result so that auditors and your security team can see the access state at a given date.

Running and testing AWS KMS auto-unseal after launch

After launch, the first test to schedule is a controlled restart of each OpenBao node configured with the AWS KMS seal (seal "awskms" in the server configuration). Restart one node at a time and confirm it returns to an unsealed state without operator input, because that is the behavior auto-unseal is meant to provide. Then stop the active node and confirm that a standby takes over and that clients keep reading secrets through the new active node. Run these tests against the same IAM role, KMS key and network path that production uses, not a simplified lab identity, since a test that passes with broader permissions proves little. Record what you observed for each node and keep the results with your change records. Check seal state on every node with bao status after each step, and wire the seal and unseal indicators from the telemetry docs into your alerting before you rely on them. Confirm the exact metric names against the version you run, because they can change between releases.

Plan for two failure modes that auto-unseal does not remove: KMS throttling and a regional AWS outage. Throttling matters most during simultaneous restarts, such as a node pool replacement or a host patch window, when many nodes call KMS to unseal at once. Ask your AWS account team and review the current KMS request quotas for your account, then stagger restarts so unseal calls do not bunch together. A regional outage stops new unseal operations in that region. Nodes that stay running keep their unsealed state, but any node that restarts or fails during the outage cannot unseal until KMS is reachable again. Test that a restarted node stays sealed and retries cleanly when KMS calls fail, and confirm this behavior in the OpenBao high availability documentation for your release. For key and credential rotation, enable automatic rotation on the KMS key if your key type supports it, and confirm the rotation effect on existing ciphertext in AWS documentation before you enable it. Rotate the IAM role's trust and any access keys on your own schedule, and verify each change with a node restart test.

Document the break-glass path before you need it. Write down what happens if OpenBao loses access to the KMS key, including the exact symptoms your monitoring will show, which nodes are affected and who has authority to decide the next step. Confirm with the OpenBao documentation which recovery keys or root material you need to act when auto-unseal cannot run, and where those items are stored and who holds them. Store recovery material offline in separate custody, and test that the people named in the runbook can reach it. Also check how AWS handles key disabling and scheduled deletion in your account, and set alerts so that no one schedules deletion of the key without review. Rehearse the break-glass procedure on a non-production cluster with the same seal configuration, including a simulated loss of KMS permissions, and update the runbook with any step that took longer or behaved differently than written. Repeat the rehearsal after each OpenBao upgrade, since the seal and recovery behavior are version-dependent.

Limits to confirm before you commit to AWS KMS

AWS KMS auto-unseal depends on a few details that vary by OpenBao release, AWS account setup and storage choice. Confirm each item with the plugin documentation and your own environment before you commit to the design, because changing any of them later means revisiting the seal configuration.

Supported AWS authentication methods

Confirm which AWS credential sources the OpenBao AWS KMS plugin accepts in your deployment: static access keys, environment variables, shared configuration files, or an instance or workload role. Ask whether the plugin supports the role you plan to use on EC2, EKS or another host. Static keys in a configuration file create a secret that must be protected and rotated, so confirm the preferred method before you write the seal stanza.

Storage docs

Region and key type constraints

Ask whether the KMS key must live in the same region as the OpenBao nodes, and whether a multi-Region key is supported or needed for your recovery design. Confirm that the key type is symmetric encryption, the usage the seal requires, and that key policy grants the OpenBao principal the encrypt and decrypt actions. Check whether your organization's key rotation settings interact with the seal's ability to decrypt the root key.

Plugin version compatibility

Match the AWS KMS plugin version to the OpenBao release you run, and confirm which minor lines it supports before you pin versions in your image or package manager. Current releases are listed in the project's release notes, so verify the plugin build against the exact tag you deploy. Ask whether an upgrade of OpenBao requires a matching plugin upgrade in the same change window.

OpenBao releases

Storage backend effect on the procedure

Confirm whether your chosen backend, integrated storage (Raft), PostgreSQL or another documented option, changes the seal migration or recovery steps. Ask how a seal change is applied across nodes in a Raft cluster compared with a PostgreSQL-backed HA cluster, and whether standbys need restarts in a particular order. Verify the procedure on a non-production cluster first.

Recovery and audit of KMS access

Ask what happens to the cluster if the KMS key is disabled, deleted or its IAM permissions are removed, and whether recovery keys exist for that scenario. Confirm how AWS CloudTrail records KMS decrypt calls from OpenBao so the security team can review unseal activity. Document who can change the key policy, because that person can effectively control the root key.

Questions buyers ask about AWS KMS auto-unseal for OpenBao

What drives the implementation effort for AWS KMS auto-unseal?

The effort depends less on the seal setup itself than on the surrounding environment: how many OpenBao clusters are involved, whether they run as a single node or in a high availability group, how many AWS accounts and regions are in play, and how the existing key policies and IAM roles are governed. Migrating from a Shamir-sealed or built-in seal configuration adds planning for the transition, and any move to the KMS plugin model needs its own check of the OpenBao version in use. Key policy design, a rehearsed recovery path and evidence for your audit team also add work. Ask any provider to break its quote into these components so you can see which items your own team already covers.

Can our own team set up AWS KMS auto-unseal without outside help?

Yes, a team with working knowledge of AWS KMS, IAM and OpenBao configuration can usually build it internally, and the project documentation is the starting point. The harder part is operational: deciding who may administer the KMS key, testing unseal after a restart or node replacement, and proving to reviewers that the recovery plan works. Teams without much AWS or security engineering depth often use outside help for the design review and the test plan, then run the system themselves. Confirm which parts of the work your staff have already done before deciding.

What does the work need from our AWS and security teams?

The AWS team provides an account and region decision, access to create or import a KMS key, IAM roles or instance profiles for the OpenBao nodes, and network paths from those nodes to the KMS endpoint. The security team reviews the key policy, defines who can administer or disable the key, sets logging expectations for key use, and approves the recovery procedure. Both teams should agree on how the key is protected across accounts and who can approve changes. Your team also needs to confirm how the unseal key material is handled during the transition and who keeps recovery credentials.

How long does AWS KMS auto-unseal take to implement?

Duration depends on scope: a single test cluster with an existing AWS account and clear IAM policies takes far less time than several production clusters across multiple accounts that need change approvals, migration of existing seal settings and audit evidence. The main timing drivers are access approvals, key policy review, the number of rehearsals required before production, and any dependency on a maintenance window. DeployOpen does not publish fixed durations. Ask for a timeline tied to a written scope, and check which milestones depend on your change control calendar.

Do we need ongoing support after auto-unseal is in place?

Auto-unseal is a configuration that runs quietly, but it still needs ongoing attention: AWS permission changes, key rotation decisions, OpenBao upgrades, and periodic recovery tests all affect whether a restart unseals cleanly. Some teams handle this in house with their normal operations routine. Others prefer a retainer for upgrades, continuous testing and support. DeployOpen offers ongoing support, upgrades and continuous testing as retainers, so you can decide later whether that fits your operating model.

How does a fixed-scope written agreement work for this project?

Most DeployOpen engagements are fixed-scope, meaning the scope, deliverables and timelines are agreed in writing before work starts. Your written scope should list the OpenBao clusters covered, the AWS accounts and regions, the KMS key design, the test and recovery evidence to be delivered, and any items excluded, such as the rest of the OpenBao configuration. Changes to scope are handled in writing. DeployOpen does not publish a price list, so a quote follows from the written scope. Ask for the scope document and check that each deliverable can be verified by your team.

What should we check in the AWS KMS key and IAM setup?

Engineers should confirm that the KMS key is created in the intended region, that its key policy grants only the OpenBao node roles the ability to encrypt and decrypt, and that administrative rights to change or schedule deletion of the key are restricted and logged. Check that nodes use instance profiles or equivalent identities rather than long-lived static credentials, and that network paths to the KMS endpoint work from every node. Test a full restart of the cluster, a single node replacement and a recovery drill before relying on the setup. Confirm exact configuration keys and plugin options against the current OpenBao documentation for your version.

Official OpenBao documentation to read next

Before you commit to an AWS KMS seal, read the OpenBao releases page for the version you plan to run. The page lists the 2.6 and 2.7 lines that matter for this topic, including v2.7.0 released on September 23, 2026, v2.7.1 on October 1, 2026, and v2.6.4 released the same day for the previous minor line. Use it to confirm which release carries the seal plugin behavior you need, and to check the release notes for changes to seal configuration between 2.6 and 2.7 before you pin an image tag. Confirm the exact plugin version and the compatibility notes with the release you select, not with older blog posts or forum answers.

The OpenBao high availability documentation explains how the active node holds a lock in the data store while standbys forward or redirect requests, which determines what a KMS outage does to your cluster. Read it alongside the OpenBao migration guide, which covers in-place replacement of the Vault server process on all nodes with configuration, endpoints and URLs unchanged, and which was tested only against Vault 1.14.1 community edition. If you move from a built-in seal to a KMS plugin, the migration guide and the HA page together tell you how to sequence node restarts, what to back up first, and where the seal change requires a rekey. Plan a staging rehearsal, because the migration guide states its testing scope and does not cover your environment.

How DeployOpen scopes and delivers AWS KMS auto-unseal

DeployOpen plans, builds, tests, documents and supports OpenBao auto-unseal with AWS KMS inside your own AWS accounts or the infrastructure you control. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • Confirm which AWS accounts, regions and KMS key policies will hold the unseal key and who administers them
  • Record the OpenBao version, the AWS KMS plugin version and whether the cluster moves from a built-in seal
  • Agree in writing which nodes, storage backend and recovery steps fall inside the engagement boundary
  • Identify the compliance evidence your auditors expect, such as key custody and access logging records

How we build

  • Create the KMS key, least-privilege IAM role and instance or workload identity used by each OpenBao node
  • Configure the AWS KMS seal stanza and test unseal on every node before any production traffic reaches the cluster
  • Run a seal migration rehearsal on a non-production cluster and check that recovery keys still work
  • Test failure cases such as revoked KMS permissions, key disablement and regional endpoint loss

How we hand over

  • Deliver the seal configuration, IAM policies and key policy as version-controlled files your team can review
  • Provide runbooks for routine checks, planned key rotation and recovery when KMS access is interrupted
  • Document the test results, open findings and the retest outcome in a handover report
  • Walk your platform and security teams through the design so they can operate it without us

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, scoped separately from the build
  • Retainer scope can cover OpenBao upgrades, KMS plugin updates and periodic seal and permission reviews
  • Ask any provider for the written scope of response, change handling and escalation before you sign
  • Quotes follow from the written scope, so request one that lists each deliverable and the access you need

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.