OpenBao transit encryption as a service: when application teams need it
Application teams often need field-level encryption, digital signatures or HMACs on data, but they should not generate, store or rotate the keys themselves. The OpenBao transit engine addresses this by performing cryptographic operations on data that applications send to it, while the key material stays inside the OpenBao cluster. The application receives ciphertext, a signature or an HMAC back and never holds the key. OpenBao documents this as encryption as a service, and it is the reason to consider transit before embedding a crypto library in every service.
Teams usually weigh transit against two alternatives. An application-level crypto library keeps the operation close to the code, but every service then owns key storage, key rotation, algorithm choices and the audit trail for each use of a key. Database-native encryption protects data at rest in the database, but it does not usually control which service can decrypt a given field or leave a record of each decryption request. Transit fits when several services must share one set of keys under central policy, when you need to rotate keys without redeploying applications, or when auditors ask who used a key and when.
Before you choose transit, confirm three things with your own architecture. First, latency and availability: every encrypt or decrypt call becomes a network dependency on the OpenBao cluster, so measure the call volume and plan for HA. Second, data volume: confirm the size limits and batch options for your payloads in the transit documentation for your target version. Third, ownership: decide which team holds the policies that govern each key, because transit moves the control point from application code into OpenBao policy.
Request flow from application to transit key
The application starts by authenticating to OpenBao with an auth method such as AppRole or Kubernetes, and receives a token limited by policy. It then sends plaintext or data to the transit mount, where OpenBao applies a named key to produce ciphertext, a signature or an HMAC. The key material never leaves the OpenBao cluster, and only encrypted state reaches the storage backend. Check that the token policy allows only the required transit operations on the intended key.
Application requests flow through a scoped token to a named transit key inside the cluster.
Which transit options fit which workload
Rotation is the default choice for most application data. A transit key keeps multiple versions, so new encryptions use the latest version while older ciphertext stays decryptable until you retire those versions. Applications keep calling one key name and never handle key bytes.
- Enables: rotating keys on a schedule or after an incident without changing application code or re-encrypting all stored data at once.
- Trade-off: ciphertext records carry the key version used to create them, so teams must track which versions are still needed before trimming old ones.
- Re-encryption: the rewrap operation can move stored ciphertext to the latest key version. This is a planned batch job with its own load, monitoring and failure handling.
- Fits: long-lived records such as customer data, where the security team sets the rotation policy and must show evidence of it during an audit.
Confirm the minimum decryption version setting and the retirement process for old versions in the transit documentation, and check that your rotation policy matches what your auditors will ask to see.
Convergent encryption produces the same ciphertext for the same input in the same context, so identical values can be matched without decrypting them. This makes equality lookups possible on encrypted fields, such as finding a record by an encrypted email address, without storing a plaintext copy for search.
- Enables: exact-match search and uniqueness checks on encrypted fields, including joins that compare ciphertext in the database.
- Trade-off: anyone who can read the stored ciphertext can tell which rows hold the same value, so frequency patterns leak even though the contents stay hidden.
- Context requirement: each encryption needs a consistent context value, and changing that value changes the output, so the derivation must be designed before any data is written.
- Poor fit for low-variety fields: fields with few possible values, such as country or status codes, are easy to attack through frequency analysis, so keep them out of this option.
- Threat model: the leak is a design decision, not a configuration default, so test it against your own threat model before production use.
Confirm with your privacy and security teams which fields accept equality leakage, and measure the frequency exposure on a non-production copy of realistic data before you commit.
Imported keys let you bring key material generated elsewhere into transit, such as a key created in your own key ceremony or a key already protecting data in another system. Applications still call transit for every operation, but the first key version came from outside OpenBao.
- Enables: continuity when moving encrypted data from another system, and bring-your-own-key policies where the organization controls key generation.
- Trade-off: the key existed in the process that generated and wrapped it, so custody evidence depends on the environment where that happened.
- Wrapping: the import protects key material with a wrapping key from OpenBao on the way in. Confirm the exact import steps and supported algorithms in the current documentation before you plan the ceremony.
- Lifecycle: imported keys still rotate, and later versions are generated inside OpenBao, so the imported material is only the first version.
- Fits: migrations where existing ciphertext must stay readable, or where a regulation or customer contract requires a specific key origin.
Confirm how the original key was generated and stored, who held it before import, and whether your policy requires the ability to delete the key from OpenBao.
From OpenBao 2.7.0, transit can use external keys, so private key material stays in an HSM or KMS while OpenBao sends the cryptographic operations to it. This option matters when a written custody requirement says the key must sit outside the OpenBao cluster. The setup, supported plugins and differences from other key options are covered in the sibling topic on OpenBao external keys for HSM and KMS-backed PKI and Transit.
- Enables: key material that never sits in OpenBao storage in plain form, with custody inside a boundary your auditors already accept.
- Trade-off: every cryptographic call depends on the HSM or KMS, so its latency, availability and request limits become part of your transit service levels.
- Version floor: this option is documented for OpenBao 2.7 and later, so clusters on earlier lines need an upgrade first. The v2.7.0 release is dated September 23, 2026.
- Who is paid for what: HSM or KMS fees and operations go to the provider, while plugin configuration and integration work go to whoever builds and operates it.
- Fits: regulated workloads with a written key custody requirement and an HSM or KMS the organization already runs.
Confirm which transit operations your chosen plugin supports, how the HSM or KMS fails over, and what your custody requirement actually says before you design around it.
Transit configuration options and when each fits
This table compares the transit key settings that shape how applications use encryption as a service: key type, rotation, convergent encryption, imported keys, deletion and exportability. Read each row as a decision: the workload it suits and the ongoing cost it adds. Confirm the supported key types and export flags for your OpenBao version before you fix a design.
| Setting | What it controls | Workload it suits | Operational cost |
|---|---|---|---|
| Key type and algorithm | Cipher, signing or HMAC function bound to the key at creation | Encrypt-at-application-layer for records, signing of documents or tokens, HMAC for integrity checks | Fixed at creation, so a wrong choice means a new key and re-encryption of stored data |
| Automatic rotation policy | Schedule or trigger for new key versions while old versions remain for decryption | Long-lived datasets where bounded exposure of any single key version matters | Ciphertext carries version prefixes, so rewrap jobs are needed to move old data to new versions |
| Manual rotation | New key version created only when an operator or pipeline calls the rotate endpoint | Teams with change windows or a formal key ceremony | Rotation depends on process discipline, and old versions must be tracked and eventually retired |
| Convergent encryption | Same plaintext and context produce the same ciphertext, enabling equality matching | Deduplication or lookup on encrypted fields such as account identifiers | Reduces confidentiality against guessing of low-entropy values; requires a review of data sensitivity and key derivation context |
| Imported keys | Key material generated outside OpenBao is loaded into the engine | Migrating keys from another system or meeting a policy that key material originates in a specific place | Import wrapping and key handling must be documented; lost source copies cannot be recreated by OpenBao |
| Deletion allowed | Permits the key to be deleted after it is marked for deletion | Short-lived test or tenant keys with a defined end of life | Deleting a key makes data encrypted under it unrecoverable, so retention and backup plans must agree |
| Exportable flag | Whether key material can be read out of OpenBao after creation | Rare cases where a downstream system must hold the same key | Export weakens custody; most designs keep keys non-exportable and confirm the flag names for the version in use |
| Key version minimum decryption | Lowest version allowed for decryption after rotation | Retiring weak or compromised key versions after data is rewrapped | Setting it too early breaks reads of older ciphertext, so rewrap and verify first |
Setting up transit encryption in your OpenBao cluster
This sequence takes an existing OpenBao cluster from a version and storage check to a tested application that encrypts and decrypts through the transit engine without ever holding the key.
Confirm cluster version and HA backend
The platform team checks which OpenBao release the cluster runs and which storage backend and HA mode it uses. OpenBao v2.7.0 and v2.7.1 are the releases named in the project's release notes, and the external key option described for transit arrived in 2.7.0, so confirm that line if you plan to use it. Confirm the HA backend is integrated storage (Raft) or PostgreSQL, the two backends the project documents as officially supported for HA. Record the active node and at least one standby, and confirm the cluster is unsealed and reachable from the nodes that will call transit. Done means the version, backend and seal status are written into your change record and every node reports the same release.
Enable the transit engine on a mount
An OpenBao operator enables the transit secrets engine at a dedicated mount path, such as
transit/or a path named for the workload, using the bao CLI or the API. Use a separate mount for each trust domain so one application's keys and policies do not sit beside another's. If your deployment uses namespaces, enable the engine inside the namespace that owns the workload. Done means the mount appears in the list of enabled secrets engines and a read of the mount configuration returns without error.Create a named key with a rotation policy
The operator creates a named encryption key on the transit mount and sets its rotation behavior, including whether the key is automatically rotated and how many prior key versions are retained for decryption. Choose the key type to match the operation: the transit engine supports symmetric keys for encryption, and asymmetric keys for signing. Ask your team which rotation interval they will enforce, because the documentation describes the mechanism but your interval is a policy decision. Done means a key read returns the key name, type, latest version and the rotation settings, and a manual rotate test creates a new version while older versions remain listed.
Write a least-privilege application policy
The operator writes an OpenBao policy that grants the application only the transit operations it needs on that one key, typically encrypt and decrypt, and nothing on the key's management paths. Avoid wildcards across the mount, and do not grant rotate, delete or key configuration rights to the application identity. Keep the policy in version control so changes are reviewed. Done means the policy is written, readable by the platform team, and a policy test with the intended capabilities matches what the application needs and no more.
Authenticate the application through AppRole or Kubernetes
The application obtains a token through a documented auth method. The OpenBao documentation recommends AppRole for servers, and Kubernetes auth fits workloads running in a cluster. Bind the chosen role to the policy from the previous step, set a token lifetime short enough for your review, and deliver the role identifier and secret ID through your secret-zero process, not in source code. Done means the application logs in, receives a token that carries only the transit policy, and a token lookup shows the expected policy and TTL.
Test encrypt and decrypt round trips
The application encrypts a sample value through the transit endpoint, receives ciphertext prefixed with the key version, and decrypts it back to the original plaintext. Repeat the test after a manual key rotation to confirm old ciphertext still decrypts and new encryption uses the latest version. Done means the round trip returns identical plaintext for every test value, and the ciphertext contains no readable copy of the input.
Confirm an unauthorized policy fails
The team runs the same encrypt and decrypt calls with a token that lacks the transit policy, and with a token scoped to a different key on the same mount. Both calls should be denied with a permission error, and the attempt should appear in the audit log if an audit device is enabled. Confirm this check is part of your acceptance test so a future policy change that widens access is caught. Done means every unauthorized call is refused, and the audit entry, if your audit device records it, identifies the token and path.
Security and operational considerations for transit keys
Transit keys are only as safe as the policies, logs, backups and seal design around them. The cards below cover the decisions that shape risk after the engine is enabled, and what to verify in your own OpenBao cluster before applications depend on it.
Scope policies per key and operation
Transit policies can grant encrypt, decrypt, sign, verify and HMAC rights on specific key paths, so an application that only needs to encrypt does not gain decrypt rights. Review each application's policy against the operations it actually calls, and separate key administration (creating, rotating, deleting keys) from data-path use. Confirm the path and capability names against your OpenBao version before writing policies, and test that a denied operation fails as expected.
Auth methods docsPlan re-encryption after rotation
Rotating a transit key creates a new key version, but ciphertext written under older versions stays readable only while those versions remain in the key's configuration. Decide whether stored data is re-encrypted with the rewrap operation, how that job runs against large tables, and when old key versions can be trimmed. Confirm the rewrap behavior and minimum decryption version settings in the transit documentation for your release before setting a retention rule.
Audit every cryptographic call
Each encrypt, decrypt, sign and HMAC request is a privileged event that should appear in an audit log, which makes audit coverage a security control rather than a convenience. Enable at least one audit device, and consider a second so a failing device does not block requests. Check that the hashed fields your SIEM receives still let investigators match a request to an application identity, and test how the log behaves when the device is unavailable.
Back up the cluster that holds keys
Transit keys live in the cluster's storage, so a backup of ciphertext without the matching key state cannot recover encrypted data, and a restored cluster must have the correct unseal material. Define backup scope for the chosen storage backend, test a full restore into an isolated environment, and record which person or system holds recovery keys. Ask the vendor or your platform team to confirm how the chosen Raft or PostgreSQL backup procedure captures transit key material.
Size plaintext and batch limits
Transit operates on request payloads, so applications sending large files or many items per call hit size and latency limits and add load to the cluster. Design the application to encrypt data encryption keys with transit and keep bulk content encryption local, or to batch items within a tested bound. Measure request sizes and latency under realistic concurrency, and confirm any request size limits in the documentation for your OpenBao version.
Depend on the seal and unseal process
A sealed OpenBao cluster cannot run any transit operation, so every application that encrypts or decrypts depends on the availability of the seal. Decide how the cluster is unsealed after a restart, whether by Shamir shares, an external seal or a transit seal on another cluster, and who is on call to perform it. Document the failure path for a seal that cannot be opened, and rehearse it before production use.
Questions buyers ask about transit encryption services
What does transit encryption as a service cost and what drives the effort?
The cost depends on the scope agreed in writing, and no price list applies. The main drivers are the number of applications that will call Transit, how many key designs you need (per data class, per tenant or per region), how authentication to OpenBao is wired into your identity source, the high availability and backup design, and how much compliance evidence your assessors will ask for. Each of these adds design, build and test work. Ask any partner for a quote that lists these items separately, states which parts are one-time (design, build, migration, testing) and which recur (upgrades, patching, key reviews, retainers), and names the environments covered. DeployOpen provides a quote from the written scope.
How long does a transit encryption rollout take?
The timeline depends on the number of applications onboarded, how many key designs must be approved, whether an identity provider is already in place, and whether the HA and backup design is ready before go-live. Applications that only need encrypt and decrypt calls move faster than those that need signing, HMAC or convergent encryption, because each use needs its own review. Ask for a plan that sequences a pilot application, a key policy review, and then waves of onboarding, with each milestone tied to an agreed deliverable. Do not accept a duration that is not tied to a written scope.
What does our team need to provide before a Transit project starts?
You need to provide the target infrastructure (cloud accounts, data centers or air-gapped networks), a working identity source such as OIDC, LDAP or Kubernetes for workload login, named application owners who can confirm what each service encrypts, and a data classification that states which fields need encryption and which keys may be shared. Also provide a decision on who approves key creation, rotation and deletion. Without these inputs, key designs stay provisional and onboarding stalls. Confirm access to logging and monitoring systems, since audit records from Transit calls must reach your existing tooling.
Can our internal team run OpenBao Transit without a partner?
Many internal teams can run Transit, but the work needs skills in four areas: operating OpenBao itself (clustering, storage, unseal and upgrades), writing policies that limit which identities may use which keys, integrating application code with the Transit API, and producing evidence for audits. Application developers usually need help with key versioning and rotation, since an old ciphertext must still decrypt after a rotation. A realistic self-assessment asks whether two or more people can operate the cluster during an incident and whether someone owns key lifecycle after launch. Gaps in any of these areas are a reason to scope a partner for a defined part of the work.
Is OpenBao an enterprise edition, and does it have a price?
OpenBao is open source and its repository is licensed under MPL-2.0, so there is no per-seat license fee from the project itself. The OpenBao project is a Sandbox project of the Open Source Security Foundation under Linux Foundation stewardship. Licensing questions, support options and which vendors sell subscriptions or managed services are covered in the OpenBao buyer's guide, which answers these questions in more detail. Costs you will still pay include infrastructure, staff time, and any services you contract for.
What changes when moving transit encryption from HashiCorp Vault to OpenBao?
For most Transit use, the API paths, policies and client calls are expected to stay the same, because OpenBao's migration guide describes in-place replacement of the Vault server process on all nodes with configuration, endpoints and URLs unchanged. That guide was tested only against Vault 1.14.1 community edition, not Vault Enterprise, so Enterprise features and their dependencies need separate verification. Check that disable_mlock is removed from configuration, since OpenBao stopped using mlock in 2.0.0. Clusters bootstrapped before Vault 1.3 may need a rekey first. Confirm each Transit key version and any client library behavior in a staging copy before the production switch.
How does high availability affect a Transit deployment?
Transit depends on the cluster being unsealed and reachable, so availability design matters for every application that encrypts on the write path. OpenBao high availability uses an active node that holds a lock in the data store, with standby nodes forwarding or redirecting requests. Integrated storage (Raft) and PostgreSQL are the officially supported HA backends. Since OpenBao 2.5.0, Raft standbys can serve read-only operations, and v2.7.0 extended this to PostgreSQL. Confirm with your architects whether Transit encrypt and decrypt calls count as reads or writes in your design, and plan backups of the storage backend and key material before launch.
Decision path for choosing a key custody model
The path starts with whether data must be encrypted on the application side, then asks whether keys must stay off application hosts, whether an HSM or KMS must hold the key, whether existing key material must be imported, and whether convergent encryption is acceptable despite its leakage trade-off. Each answer ends at a Transit configuration choice. Check the external key option against the OpenBao version you plan to run, since it is available from 2.7.0 onward, and confirm the leakage implications of convergent encryption with your data owners before enabling it.
Branches from data sensitivity to the Transit key configuration each case needs.
Where to read the official transit and HA documentation
Check version-specific transit behavior against the release notes for your own minor line before you plan a rollout. Start with the project overview at What is OpenBao to confirm the components involved, then read the v2.7.0 and v2.7.1 release entries on the OpenBao releases page. The 2.7.0 release is the one that added the external key option for Transit, so any plan that depends on imported keys, external keys or the new key handling must be confirmed against that entry. v2.7.1 followed on October 1, 2026, and v2.6.4 shipped the same day for the previous minor line, so teams on 2.6 need to read the 2.6 patch notes instead of assuming the 2.7 behavior applies to them.
Read the high availability and storage pages before you decide where Transit keys will live. The OpenBao high availability docs explain the active node lock and standby forwarding, and the storage backends page lists integrated storage (Raft), PostgreSQL, PebbleDB and in-memory. Transit key material is stored through the same backend as other secrets, so the backend and its failover behavior determine how encryption calls behave during a node failure. Confirm for your chosen backend whether standbys serve reads and whether that changes anything for your Transit workload, since read scaling was extended to PostgreSQL in v2.7.0. Record the exact version you run and the release entry you checked.
How DeployOpen scopes and delivers transit encryption work
The sequence runs from a written scope and application inventory through key design, auth integration, deployment in your infrastructure, testing and handover. Each stage ends with an agreed output so the client knows what has been delivered before the next stage starts.
Agree the written scope
DeployOpen and the client agree the scope, deliverables and timeline in writing before any build work begins. The scope names the OpenBao cluster or namespace in use, the applications that will call Transit, the environments covered and the people who approve each stage. Engagements are fixed-scope, and DeployOpen does not publish a price list, so the quote follows directly from this written scope. The step is complete when both parties have signed the scope document.
Inventory applications and data flows
DeployOpen works with the client's application owners to list every workload that needs encrypt, decrypt, sign, verify or HMAC operations, along with the data classes it handles, its language or client library, its call volume and its current key handling. The output is an inventory that maps each application to the operation it needs and the data it touches. Gaps usually appear here, such as hard-coded keys or local encryption libraries, and each one is recorded with an owner.
Design keys and rotation policy
Using the inventory, DeployOpen proposes the Transit key layout: one key per data domain or tenant, key types, whether convergent encryption is needed and for which fields, rotation intervals, minimum decryption versions and whether any keys must be imported from existing material. The design includes who may rotate, trim or delete keys. The client reviews and approves the design document before configuration starts, and the step closes with that approval recorded.
Integrate authentication and policies
DeployOpen configures how each workload authenticates to OpenBao and which Transit paths its policy allows. The method depends on the workload, so the design selects among AppRole for servers, Kubernetes or JWT for orchestrated workloads, and TLS certificates or OIDC where the client already runs those systems. Policies grant only the operations each application needs on the specific keys it uses. The step closes when each application authenticates and is limited to its declared paths in a test environment.
Deploy inside the client's infrastructure
DeployOpen deploys or configures the OpenBao cluster, Transit mounts and the supporting storage and network path inside the client's own cloud accounts, data centers or air-gapped network. Where high availability is part of scope, the storage backend choice and standby behavior are configured as agreed in the design. Audit logging and access controls are switched on before any application is moved over. The output is a deployed environment that the client's security team can inspect.
Migrate applications and test
Each application is moved to Transit in the agreed order, with the client's developers making the code change or DeployOpen supplying it where that is in scope. Testing covers functional encrypt and decrypt round trips, rotation with old ciphertext still readable, denied operations for unauthorized policies, failure behavior when OpenBao is unreachable, and audit log entries for each operation. DeployOpen produces a test record for every application, and the step is complete when the client signs off on the results.
Hand over and document
DeployOpen hands over the architecture, key inventory, policy files, runbooks for rotation and recovery, and a list of open items with owners. The handover session walks the client's operators through rotation, adding a key, reviewing audit logs and responding to a failed application. The step ends when the client's team has run at least one rotation themselves and the documentation is accepted.
Continue with retainers
After handover, the client may choose a retainer for OpenBao upgrades, patch application and continuous security testing of the Transit setup. Retainer scope, frequency and fees are set in a separate written agreement, and the client should ask for them explicitly when requesting a quote. The retainer produces a regular report of versions in use, pending upgrades and test results, so the client can see the ongoing state of the service.

