Skip to main content

overview

Architecture

OpenBao as a Cockpit key backend

DuoKey Cockpit with OpenBaoApplications use DuoKey Cockpit, which drives OpenBao's Vault-compatible Transit engine as a key backend, so keys are managed from one console with one audit trail.USEKEY BACKENDCLIENTSApplications& internal servicesDUOKEYDuoKey Cockpitone console · auditBACKENDOpenBaoTransit · Vault-compatibleLEGENDYour applicationsDuoKey CockpitOpenBaoIntegration role

DuoKey drives OpenBao's Vault-compatible Transit engine as a key backend, so keys are managed from one console with a single audit trail.

Applies to:
OpenBao (Community Fork)PKCS#11 Auto-UnsealDuoKey Cockpit-managed vaultLinux / Container / Cloud

DuoKey provides seamless PKCS#11 integration with OpenBao, the community-driven fork of HashiCorp Vault, enabling you to auto-unseal your vault using an AES-256 key managed in your DuoKey Cockpit.

Sequence

OpenBao auto-unseal with DuoKey

OpenBao auto-unseal with DuoKey CockpitOn start, OpenBao's PKCS#11 seal asks the DuoKey library to unwrap its root key; Cockpit unwraps it with the linked AES-256 key only while that key is Active, and logs the operation.ALTUNSEALUNWRAP + TOKENAES-256-GCMROOT KEYUNSEALEDREFUSEDSTAYS SEALEDRECORD[key Active][key Deactivated · Compromised]OPENBAOOpenBao serverseal "pkcs11"DUOKEY LIBPKCS#11 librarylibdke_pkcs11.soCOCKPITAuto-unseal appCockpit · AES-256 keyLOGAudit trailunseal operationsLEGENDCallReturnAsync recordUnwrap inside CockpitVault unsealed

OpenBao never holds the wrapping key: Cockpit unwraps the root key with the linked AES-256 key, and only while that key is Active.

What is OpenBao?​

OpenBao is an open-source, community-driven fork of HashiCorp Vault that emerged to ensure the project remains truly open source and community-governed. OpenBao is "an identity-based secrets and encryption management system" that stores secrets securely, provides identity-based access, and generates dynamic secrets on demand.

The Unsealing Challenge​

When OpenBao starts, the vault needs to be "unsealed" before it can be used. Traditionally, OpenBao uses Shamir's secret sharing, which requires multiple human operators to manually unseal - causing availability issues and operational overhead.

ApproachLimitation
Traditional ShamirRequires multiple human operators to manually unseal
Traditional ShamirCauses availability issues during unplanned restarts
Traditional ShamirOperational overhead and potential delays
Traditional ShamirHuman error risks

Modern Solution: Auto-Unseal with DuoKey​

Automatic Unsealing

No manual intervention required when OpenBao starts

Centralized Key Control

The wrapping key's lifecycle is managed in DuoKey Cockpit — deactivating or revoking it immediately blocks unsealing

Authenticated Encryption

AES-256-GCM wrap/unwrap of OpenBao's root key, performed inside the DuoKey Cockpit

Fast Unsealing

Sub-second unsealing latency in typical deployments

Key Features​

Automatic Unsealing

Zero manual key entry, eliminates human operator dependencies, ensures high availability

Enhanced Security

AES-256-GCM key wrap with Cockpit-enforced key lifecycle controls (Active / Deactivated / Compromised)

Operational Excellence

Zero downtime unsealing, seamless failover, comprehensive audit logging

Flexibility

PKCS#11 library or native OpenBao KMS plugin, works with existing deployments, hybrid and multi-cloud support

Benefits​

Use Cases​

Enterprise Secrets

Auto-unseal across infrastructure without manual intervention

Cloud-Native Apps

Deploy in Kubernetes with automatic unsealing for seamless scaling

Zero Trust

OpenBao never holds the unsealing key — only DuoKey Cockpit does

Financial Services

Meet regulatory requirements with centrally-managed, auditable key custody

Multi-Cloud

Consistent deployment across AWS, Azure, GCP, and on-premise

Healthcare

HIPAA compliance with centrally-managed vault unsealing

Community vs Enterprise Comparison​

FeatureOpenBao (Community)OpenBao + DuoKey
Open SourceFully Open SourceFully Open Source
Auto-UnsealSupported (PKCS#11 or KMS plugin)Backed by a Cockpit-managed AES-256 key
Key CustodyDepends on configured sealCentralized in a DuoKey Cockpit-managed vault (Software Vault, HSM, or MPC)
Key Lifecycle ControlNot built-inActive / Deactivated / Compromised states gate unsealing
Geographic DistributionNot NativeDepends on Cockpit deployment
AuditabilityLimitedCentralized audit trail in DuoKey Cockpit

How It Works​

Create the Key

Create (or select) an Active AES-256 key in any DuoKey Cockpit-managed vault

Deploy the Auto-Unseal App

Deploy an OpenBao auto-unseal app in DuoKey Cockpit, linked to that key

Install the Provider

Install the DuoKey PKCS#11 library (or the native OpenBao KMS plugin) on the OpenBao server

OpenBao Configuration

Configure the OpenBao seal stanza generated by DuoKey Cockpit

Initialization

Initialize OpenBao with the auto-unseal configuration

Automatic Unsealing

OpenBao automatically unseals using the DuoKey-managed key on startup

System Requirements​

Prerequisites

  • OpenBao latest version with PKCS#11 support enabled (or the DuoKey native KMS plugin for OpenBao 2.7+)
  • DuoKey Cockpit account with an Active AES-256 key in any Cockpit-managed vault
  • PKCS#11 provider library (or DuoKey KMS plugin) installed
  • Network connectivity to the DuoKey Cockpit (HTTPS/443)
  • Linux server environment (recommended)

Operating System Support​

PlatformVersions
LinuxRHEL/CentOS 7+, Ubuntu 18.04+, Debian 10+
ContainerDocker, Kubernetes support
CloudAWS, Azure, GCP compatible

Performance Characteristics​

MetricValue
Unsealing Time< 5 seconds
Key Operation LatencySub-100ms
Cockpit Uptime SLA99.99% (target)
FailoverAutomatic (< 30 seconds)
ScalabilitySupports thousands of concurrent vaults
Indicative targets

These figures are indicative design targets, not independently benchmarked guarantees. Actual results depend on your deployment, backend and network.

Why Choose OpenBao?​

Truly Open Source

No vendor lock-in, MPL 2.0 forever, community governance

Zero Trust by Design

The wrapping key is centrally managed and access-controlled in DuoKey Cockpit, never held by OpenBao itself

Cost Effective

No enterprise licensing fees with complete infrastructure ownership

Getting Started​

Ready to configure OpenBao auto-unseal with DuoKey? Follow our step-by-step guide:

  • Setup & Configuration — Complete instructions including environment variables, the AES-GCM seal stanza, and troubleshooting
Tip

Our integration specialists are available to help you design and implement OpenBao auto-unseal with DuoKey for your organization.