Planning an OpenBao Shamir unseal key ceremony

How to plan the initial Shamir unseal key ceremony for OpenBao: choosing shares and threshold, assigning custodians, PGP-encrypting shares, unsealing every node and deciding when to move to auto-unseal.

On this page

What an OpenBao Shamir unseal key ceremony decides before go-live

The Shamir ceremony sets the number of unseal shares, the threshold and who holds them, and every later change to those choices means running another ceremony. Before you initialize OpenBao, decide how many shares to generate, how many are required to unseal, and which named people or roles hold each share. Those decisions determine whether the cluster can recover after a restart, after a staff change or after a lost share, so treat them as a design review, not a clerical step.

A ceremony covers more than the initialization command. It includes generating the shares, distributing them to holders through a method you approve, unsealing each node with enough shares to reach the threshold, and recording evidence that the steps happened as planned. Auditors and internal reviewers will ask for that record, so decide in advance who witnesses the ceremony, where the evidence is stored and how each holder confirms receipt. Confirm the current share-count and threshold options, and any defaults, in the OpenBao documentation for your exact version, because this material does not set them for you.

Choose Shamir seal when your team can staff and govern human custodians reliably, when you have no HSM or cloud key service to anchor the root key, or when the cluster is small and the operating model is simple enough that manual unsealing after restarts is acceptable. Choose an external seal, such as an HSM, cloud KMS or transit-based option, when restarts must happen without people present, when key custody rules require hardware or provider-backed protection, or when many nodes must come back quickly. Note that an external seal adds its own dependency and recovery steps, so the choice is a trade-off, not an upgrade.

If you go ahead with Shamir, write down the holder roster, the replacement procedure for a departed holder, and the process for unsealing after a node restart before the ceremony. Ask your implementation partner or internal team to confirm how the threshold will be met during an on-call incident at 2 a.m. The ceremony is the moment you commit to that operating model, so changing it later means repeating the full process.

How the key ceremony moves from initialization to unsealed nodes

The ceremony starts with planning custodians and the threshold, then initializes the first node so it generates the unseal shares. Each share is PGP-encrypted on the custodian's workstation before it leaves that boundary, and the nodes never see plaintext shares in transit. Once the threshold number of shares is supplied to the first node, the remaining nodes in the HA cluster are unsealed the same way. Before finishing, confirm that every node is unsealed, that evidence of each step is recorded, and whether auto-unseal is needed for the operating model.

Phases from planning through unsealing each node, with the custodian trust boundary marked.

Share count and threshold choices and when each fits

This table compares three ways to divide Shamir unseal shares, from a single team holding everything to custodians spread across locations or organizations. Read each row against your outage, staffing and reboot patterns, because the threshold you pick decides how many people must be reachable before OpenBao can start serving requests. Confirm the share and threshold parameters and their limits in the OpenBao docs for the version you will run, since the current release line is v2.7.x.

PatternWhat it protects againstWhat it makes harderQuestions to answer before choosing
Small single-team splitAccidental loss of one share or a single laptop, with a team that already shares on-call dutiesUnsealing after reboots or outages when team members are on leave, travelling or unavailable, and it concentrates trust in one reporting lineWho is on call at 3 a.m., how many people can reach a key holder within the recovery window, and does one manager control all shares?
Split across independent business ownersA single engineering team or administrator unsealing the cluster alone, and insider misuse that needs more than one business function to agreeCoordinating several executives or leads during an incident, and keeping each share holder's custody procedure current as roles changeWhich business owners must approve a restart, how fast can three or more people be reached, and who records each unseal event?
Split requiring custodians in separate locations or organizationsCompromise of one site, one employer or one jurisdiction, and collusion within a single companyOutage recovery across time zones, custodian turnover, secure delivery of shares to remote people, and reboot planning that depends on external partiesDo custodians have a legal or contractual basis to hold shares, what is the escalation path when a custodian is unreachable, and how are shares stored, transported and re-issued?

Who should hold unseal shares and how PGP encryption protects them

Choose custodians so that no single person can reconstruct the root key. When the threshold is above one, each custodian should hold a share that is useless on its own, and custodians should come from separate reporting lines, so that one manager, one team or one departure cannot collect enough shares to unseal the cluster. Record the custodian list, their roles and their backups before initialization starts, because the ceremony is the moment that list is fixed. Ask whether your compliance team expects a named custodian policy and whether it needs approval from a second function, such as risk or legal.

Use PGP encryption so the operator who runs initialization never sees a plaintext share. OpenBao can encrypt each generated share to a custodian's public key, so the operator only handles ciphertext that the named custodian decrypts on their own machine. Each custodian generates their key pair on a device they control, keeps the private key protected with a passphrase, and shares only the public key with the operator, ideally verified through a second channel. Confirm in the OpenBao docs for your chosen version the exact PGP option names, the key input format and the output format of the encrypted shares, since these details differ between releases and between the initialization and rekey paths.

Plan the custodian lifecycle before it is needed. Each custodian should keep an encrypted backup of their private key in a location their own key recovery process covers, because a lost key means a lost share. When someone leaves, revoke their public key from the process that encrypts new shares, and plan a rekey so that the departed person's share no longer counts toward the threshold. Document who approves custodian changes, how new custodians are added and how often the group is confirmed. Test the recovery path in a non-production cluster so the team knows the steps work before a real incident forces them.

Custodian risks that break a Shamir setup in production

A Shamir setup is only as strong as the people and process around the key shares. The cards below pair each common failure with the control that prevents it, so the ceremony design holds up during an incident, a staff change or an audit.

Custodians unavailable during an incident

If the threshold of custodians cannot be reached when a node restarts after an outage, the cluster stays sealed and no secrets are served. Keep a written custodian roster with primary and alternate contacts for each share, and confirm that enough custodians can be reached within your incident response window. Test the unseal procedure on a non-production cluster so the steps are known before the pressure of a real outage.

OpenBao HA docs

Shares stored together

When several shares sit in the same safe, cabinet, password manager or cloud drive, one compromise or one disaster exposes the threshold at once. Store each share with a different custodian and in a separate location, and record where each one is kept without writing the share itself into that record. Review storage locations when offices, vendors or cloud accounts change.

Custodian leaving the organization

A departing custodian may still hold a share that no longer belongs to an authorized person. Build a departure step into offboarding that removes the custodian from the roster and triggers a rekey or share rotation when the threshold is at risk. Confirm with your own HR and identity team how departures reach the people who run OpenBao, since that handoff is often where the gap appears.

Lost private PGP keys

Shares are usually encrypted to each custodian's PGP public key before distribution. If a custodian loses the private key or its passphrase, the share cannot be decrypted, and that share is effectively gone. Ask each custodian to back up the private key and revocation certificate under their own control, test decryption once during the ceremony, and plan a new rekey if a key is lost.

Operators collecting enough shares in one session

If one operator gathers the threshold of shares, the split-custody model no longer protects the root key. Run the unseal so that each custodian enters their own share, ideally on their own terminal, and keep a record of who participated. Decide in advance who may be present during a ceremony and whether auditors or witnesses should observe it.

OpenBao HA docs

Shares copied into tickets or chat

Shares pasted into tickets, chat threads, email or shared documents spread to systems that were never meant to hold them, and those systems often have long retention. Agree a rule that shares are delivered only through the encrypted channel defined in the ceremony plan, and configure ticketing and chat tools to avoid storing them. Check audit trails and message history for accidental copies after each ceremony.

Running the ceremony and unsealing every node

This sequence takes a new Shamir-sealed OpenBao cluster from a planned ceremony to a verified, serving cluster, with every share handed to a named custodian and every node unsealed and checked.

  1. Confirm the version and HA backend

    The platform engineering lead confirms the OpenBao release that will be installed, along with the storage backend and HA mode chosen for the cluster. Integrated storage (Raft) and PostgreSQL are the officially supported HA backends, and the HA documentation describes how the active node holds a lock in the data store while standby nodes forward or redirect requests. Confirm that every node runs the same version and that the backend is reachable from each node before any key material exists. The step is done when the change record names the version, the backend and the node list.

  2. Prepare the witnessed location and script

    The ceremony lead writes a script covering who enters the room, the order of commands, what is recorded, and where encrypted output is stored. A witness who is independent of the operations team observes the session and signs the log. The room should have no unmanaged recording devices, and the workstation used for initialization should be built for this purpose and wiped afterward. The step is done when the script has been reviewed by the security owner and every attendee has confirmed their role in writing.

  3. Initialize the first node

    The ceremony lead runs the initialization command on the first node with the chosen number of key shares and threshold, and the custodians' PGP public keys supplied so that each share is encrypted before it is displayed or written to disk. Initialization returns the root token, which must be stored under the same controls as the shares. The step is done when the node reports an initialized state and the output has been captured in the ceremony log without any plaintext share appearing in the terminal history.

  4. Distribute PGP-encrypted shares

    Each encrypted share is delivered to the custodian it was encrypted for, through a channel the custodian controls. Custodians decrypt their share only on a device they trust, and they confirm receipt in front of the witness. Nobody holds a share encrypted for someone else, and the ceremony lead should test that each custodian can decrypt before the ceremony closes. The step is done when every custodian has confirmed decryption without revealing the share content.

  5. Record the custodian for each share

    The ceremony lead records which custodian received which share index, the date of delivery, and the witness's signature. This register is the basis for later rekeys, custodian rotation and audit questions, so it should be stored separately from the shares themselves. The step is done when the register has one entry per share, each entry is countersigned, and the custodian list matches the approved governance roster.

  6. Unseal the first node with threshold shares

    Custodians present their decrypted shares one at a time to the first node until the number of shares reaches the threshold. The node reports progress after each submission, and the sealed state changes only when the threshold is met. Confirm that the status command shows the node as unsealed and as the active node, and that a simple request succeeds. The step is done when the node is unsealed, the custodians' shares are cleared from the terminal, and the status output is recorded.

  7. Unseal each standby node

    Each standby node is started with the same configuration and unsealed with the threshold number of shares, following the same witnessed process. Confirm that each standby joins the cluster and that the status output on every node lists the same cluster membership and leader. The step is done when all nodes report unsealed, one active node and the expected number of standbys.

  8. Verify the cluster before closing

    The operations lead checks the status of every node and runs a test write and read against the cluster through a standby to confirm that requests are forwarded or redirected correctly. The test secret is then deleted, and a failover or leader step-down test is run in a non-production window if the environment supports it. Close the ceremony only when the verification log is signed, the root token and shares are stored as planned, and the team has documented when the cluster should move to auto-unseal.

When Shamir unsealing stops being the right model

Shamir unsealing is manual work every time the cluster starts, and that cost grows with the number of nodes and the frequency of restarts. Each sealed node needs enough key shares submitted before it can serve requests, so a planned upgrade, a node replacement or a host reboot becomes a coordinated task that depends on custodians being reachable at the right moment. Ask yourself how often your cluster restarts in a normal year, including OS patching, certificate rotation, node rebuilds and OpenBao version upgrades, and count how many people must be available for each event. If the answer is several custodians for every restart, the ceremony itself has become operational load, and it will tend to be deferred or rushed under pressure.

The decision path is straightforward. If every restart requires a human ceremony, or if an outage cannot wait for custodians to arrive and submit shares, evaluate an auto-unseal option. The choices are an HSM over PKCS#11, a cloud KMS, KMIP, transit seal from another OpenBao cluster, or another seal the project documents. Each option removes the custodian dependency but adds a dependency of its own: a network path to the HSM or KMS, a credential or identity the node must present, and a key that must survive loss or misconfiguration. Before choosing, confirm with your security team which of those dependencies you can monitor, recover and audit within your own environment, and whether the key custody model satisfies your internal policy. The specific seal topics on this site cover each option in turn.

Moving from Shamir to auto-unseal is a separate, planned change, not a setting you flip during an incident. It usually requires a documented migration of the seal configuration, a rekey or recovery procedure that you have rehearsed, and a test cluster that restarts, fails over and recovers using the new seal before production is touched. Confirm the exact migration steps for your OpenBao version in the project documentation, and record which recovery keys or shares remain valid after the change. Plan the window so that custodians are present, keep the old shares in controlled storage until the new seal has passed testing, and treat the transition as a change with its own rollback plan.

Security and operational controls around the ceremony

The ceremony is a one-time event, but the controls around it determine whether your unseal capability stays safe and available for years. Each card below covers a decision you make during the ceremony or a check you repeat during day-two operations, and together they keep the unseal material under your control.

Witnessed and logged ceremony

Run the initialization and share distribution with a named facilitator and an independent witness, and keep a written log of who was present, what was generated and where each share went. The log itself must never contain share values, only custodian names, timestamps and handoff confirmations. Ask your team to confirm in advance who can attend, where the session is held and how the log is stored and signed off.

HA docs

Clean workstations for custodians

Each custodian should encrypt or receive their share on a workstation that is free of unrelated software, unmanaged browser extensions and unnecessary network access. For highest assurance, use an air-gapped or freshly imaged machine for the PGP step. Confirm how your team will verify that a workstation was clean at the time of use and who approves the exception if no clean machine is available.

Share custody without co-location

Record which custodian holds which share and where it is stored, but never place two shares of the same threshold set in one location, one vault or one shared drive. Custody records should describe the holder and storage method, not the content. Review whether any custodian could reach enough shares alone through reporting lines, shared offices or shared credentials, and adjust assignments before the ceremony.

Offline unseal runbook

Write a step-by-step unseal runbook covering the order of nodes, the commands used, the expected output at each step and the escalation path when a share is unavailable. Store a printed or offline copy with the custodian records, and test it against a non-production cluster. The runbook should name the files and configuration keys involved, such as vault.hcl settings, so an on-call engineer can follow it without relying on the original builders.

Every node needs unsealing

OpenBao's HA model keeps one active node holding a lock in the data store, while standby nodes forward or redirect requests. A standby that is still sealed cannot take over cleanly when the active node fails, so you must unseal every node, not just the first one. Include each node in the runbook and in the post-restart checklist, and confirm the unseal state of all nodes after every restart or upgrade.

Custodian reviews and seal monitoring

Review custodian roster and share custody on a fixed schedule, and whenever someone leaves or changes role, then rehearse the unseal with the current holders. Monitor seal status and node health from your metrics and alerting so a sealed node is noticed quickly. Ask your team which alerts they will route to whom and how a sealed node after a restart is escalated.

Questions buyers ask about planning an OpenBao key ceremony

How much effort does an OpenBao Shamir key ceremony take, and who does the work?

The ceremony itself is a short, scheduled event, but the planning around it is where most effort goes. Your platform or security team designs the share count and threshold, selects custodians, writes the procedure, prepares the initialization host and records the outcome. Custodians spend time on their own share handling and on attending the session. Effort rises with the number of nodes, the number of custodians who need separate briefings, and how many approval steps your change process requires. Ask any partner for a written list of the tasks, who performs each one and which of them recur, such as share rotation or re-running the ceremony after a rekey.

How long does planning an OpenBao unseal key ceremony take?

Planning length depends on custodian availability and on your environment, so no fixed duration applies to every organization. The longest step is usually getting named custodians to agree to the role, confirm their availability and complete any identity or background checks your policy requires. Network access to each node, a secured location and a rehearsal on a non-production cluster also add time. Ask your team or a partner to list each dependency, the owner of each one and the date it must close before the ceremony can be scheduled.

What does the buyer need to provide before the ceremony?

You need to provide decisions and access before any work starts. The main inputs are:

  • Named custodians, each with a deputy plan, and a decision on how many shares to issue and the threshold needed to unseal
  • A witnessed location where the ceremony can take place without recording devices or unapproved observers
  • Network and administrative access to every OpenBao node, plus a path for each custodian to receive or encrypt their share
  • Written sign-off from the team that owns the root key and audit logs

Agree these in writing so the scope reflects what your organization can actually supply.

Can our own team run the OpenBao key ceremony without a partner?

Yes, if your team already operates OpenBao and has a documented procedure. The OpenBao documentation describes the initialization and unseal commands, so the technical steps are not the hard part. The harder work is governance: deciding the threshold, separating custodians so no single person can unseal alone, keeping encrypted share copies off shared systems and producing evidence for auditors. A partner is most useful when your team has not run a ceremony before, when no one has done a rehearsal, or when the procedure must be reviewed against your compliance program.

What changes if a Shamir key custodian leaves the organization?

A departure does not expose the cluster on its own, because a single share cannot unseal OpenBao when the threshold is above one. The risk is that the remaining share count can fall below the threshold over time. Your procedure should define how the departing custodian's share is retired, how a replacement is verified and when the key is rotated or the cluster is rekeyed. Confirm these steps with your security team and check the rekey procedure in the OpenBao documentation before you need it.

Can we change the unseal shares later, and what does that involve?

Yes. Shamir shares can be replaced by rekeying the cluster, which generates new unseal keys and requires a quorum of existing shares to authorize the change. Rekeying is a planned operation with its own ceremony, so it needs the same custodian availability, witnessed location and encrypted distribution as the initial setup. Ask your team to confirm the exact rekey commands and any additional steps for high availability nodes against the version you run, since procedures can differ between releases.

When should we move from Shamir unseal to auto-unseal instead?

Consider auto-unseal when manual unsealing after restarts, upgrades or node replacement creates an operational or availability burden that your on-call process cannot meet reliably. Auto-unseal moves the unseal decision to an external key source, such as a cloud KMS, an HSM or a transit seal, so it adds a dependency on that source and on its access policies. Compare the availability and custody model of each option with your compliance owner before switching, and plan the migration as its own change rather than an afterthought of the initial ceremony.

When is it worth bringing in a partner for the key ceremony?

Bring in a partner when the ceremony must satisfy an external assessment, when several business units share one cluster, or when your team lacks someone to act as neutral facilitator. DeployOpen plans, implements and documents self-hosted open-source platforms in your own infrastructure, and prepares systems and evidence for compliance assessments, but it does not issue audit reports or certifications. Ask for a fixed-scope written proposal that lists the procedure, rehearsal, ceremony support and handover documents, so you can compare it directly with running the process internally.

How DeployOpen works on this

DeployOpen plans and runs the OpenBao unseal key ceremony inside your own infrastructure, starting from a written scope that fixes the share count, holders, unseal procedure and seal roadmap before any node is initialized. The work is delivered as a fixed-scope engagement, with documentation and handover so your own team can run the ceremony and later unseals.

How we scope

  • Agree in writing the number of unseal shares, the threshold and the reasoning behind both for your organization.
  • Map who holds each share, who may take part in a ceremony and how holders are replaced when people leave.
  • Define the trigger and target design for moving from Shamir unseal to auto-unseal, with the owner of that decision named.

How we build

  • Prepare the ceremony runbook, including PGP key collection from each holder and the encrypted share distribution steps.
  • Set up the initialization sequence and unseal procedure for every node in the cluster, with the order and checks written down.
  • Test the procedure in a non-production environment so the team sees each step before the production ceremony runs.

How we hand over

  • Deliver the signed-off ceremony runbook, share holder register and evidence template for each ceremony you hold.
  • Walk your security and platform staff through a live unseal drill so they can repeat it without DeployOpen present.
  • Document the recovery path for a lost share or failed unseal, and the questions to put to your team before auto-unseal work starts.

How we support

  • Available as a retainer for rekeys, share rotation, upgrades and periodic unseal drills after the initial ceremony.
  • Support a later move to an HSM, cloud KMS or transit seal under a separate written scope with its own deliverables.
  • Re-test the ceremony procedure and runbook when the cluster topology, holder list or OpenBao version changes.

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.