OpenBao storage limits and large secrets

OpenBao's default Raft entry size and the way large values and many keys affect performance shape how you should store secrets, and planning around them early avoids costly redesigns.

On this page

Why OpenBao storage limits matter for large secrets

If your team plans to store certificates, files or a large number of keys in OpenBao, the first question is where the size limits sit and what they cost you in design. OpenBao is an open source, community-driven fork of Vault, licensed under MPL-2.0 and stewarded by the OpenSSF under Linux Foundation governance. Its documented storage backends are integrated storage (Raft), PostgreSQL, PebbleDB and in-memory, and the limits you face depend on which of these you choose. Secrets are encrypted before they reach the storage backend, so every value you write becomes a stored entry, and the backend's entry size, write throughput and key count all shape what a cluster can hold comfortably. Teams usually hit these limits in one of three ways: a single large value, such as a bundle of certificates or a file, exceeds what the backend accepts per entry; a large number of keys slows listing and lease handling; or write volume grows faster than the backend can absorb.

DeployOpen plans around these limits before any build starts. In practice that means inventorying what you will store (value sizes, expected key counts, rotation frequency and who reads what), then deciding whether large content belongs in OpenBao at all or should be referenced from a system built for bulk data, with OpenBao holding only the credential or pointer. On Raft, the default entry size is 1 MiB, so confirm your largest expected value against that figure and check the configuration reference for any documented setting that changes it. Ask the project and your own test environment what happens at the edge of the limit before you commit a design. For the backend choice itself, the storage documentation at OpenBao storage backends is the natural next read.

Storage options and where size limits bite

This table compares the four OpenBao storage backends against the factors that make large values and many keys costly. Read the high availability column first, because only Raft and PostgreSQL are officially supported HA backends and PebbleDB cannot provide high availability. The main takeaway is that the 1 MiB default Raft entry size is the first fixed limit to plan around, so size secrets against your chosen backend before the design is fixed.

BackendHigh availabilityWhat drives size or performanceWhen it fits
Integrated storage (Raft)Yes, officially supportedRaft entry size (1 MiB default), replication of every write to voting nodes, snapshot sizeMost production clusters that want built-in HA without an external database
PostgreSQLYes, officially supportedRow size and query latency, connection pool capacity, sizing and backups of the database itselfTeams already running a highly available PostgreSQL cluster and wanting an easier operating model
PebbleDBNo, cannot provide HADisk capacity and I/O on a single nodeSmall or edge installs where a single node is acceptable
In-memoryNoAvailable RAM on one nodeDevelopment and testing only; confirm persistence behavior in the storage docs before any other use
Large individual values on RaftYes, on RaftValues that push entries toward the 1 MiB default increase replication and snapshot costKeep secrets small and store large encrypted files outside OpenBao, referenced by path
Many keys on RaftYes, on RaftTotal data size drives snapshot time and restore durationTest snapshot and restore times with your expected key count before go-live
Read capacityRaft standbys since 2.5, PostgreSQL since 2.7Read-only operations served by standbys, while writes still go to the active nodeRead-heavy estates that need more request capacity without adding write load

Which limits shape a design

Storage limits in OpenBao come from how the backend replicates writes, how many keys a path holds, and which settings your version exposes. Plan these early, because they decide what belongs in OpenBao and what belongs in a separate store. Check each value against the docs for the exact version you will run.

Default Raft entry size

Integrated storage (Raft) writes each change as a log entry that every voter must replicate. The default maximum entry size is 1 MiB, so any value that serializes to more than that cannot be written as a single entry. Confirm the default and whether your version lets you change it in the storage configuration reference before you design around a specific payload size. Test a value near the limit on a staging cluster, since the failure appears at write time, not at design time.

Storage configuration docs

Cost of large values in replicated writes

Each write to a large secret is copied to every voter and recorded in the Raft log before the cluster acknowledges it. Large values therefore slow writes, raise network traffic between nodes, and grow the snapshots you store for backup. Repeated rewrites of the same large object multiply this cost. Ask your team to estimate write frequency and value size for each secret class, then measure replication lag and snapshot size during load testing.

Key count and listing performance

OpenBao stores each secret under its own path, and listing a path returns every child key in one response. Very large folders make list operations slower and heavier on the active node, and they make audit logs longer to review. Design a path hierarchy that groups secrets by owner or application, keeps each folder to a size you can list comfortably, and includes a naming standard. Measure list latency and storage growth on a staging cluster with production-like key counts.

Store references instead of payloads

Keep secrets small by storing only the credential, key or pointer in OpenBao, and placing large material elsewhere. For example, an encrypted certificate bundle or configuration file can live in object storage under your control, with OpenBao holding the decryption key or a reference path. This keeps Raft writes and snapshots small and makes OpenBao the place where access is granted and revoked. Document which team owns the external store and how its backups are encrypted.

Backend-specific limits

Raft, PostgreSQL, PebbleDB and in-memory storage each handle entry size, transaction behavior and replication differently, so a limit that applies on one backend may not apply on another. Before you choose a backend for workloads with large values, confirm the documented limits for that backend and for your OpenBao version. Record the result in your design document so that a later backend change triggers a review of payload sizes.

Storage backends docs

Version changes to confirm

Storage and performance behavior can change between OpenBao releases, and the release notes are the place to check. Confirm each limit and tunable setting against the documentation for the exact version in your plan, and repeat the check before every upgrade. Keep a short table of confirmed values, the version they apply to and the owner who verified them, so that the design stays accurate after patches.

OpenBao releases

How to plan a cluster around storage limits

This sequence takes a team from an inventory of secret sizes and key counts to documented limits that application teams can follow. It ends with a backend choice tested on staging, a plan for oversized data, and monitoring that catches growth before it causes failures.

  1. Inventory secret sizes and key counts

    The platform owner and application leads list every secret path, its typical and largest value size, how often it is written, and how many keys each engine or team creates. Include certificates, certificate bundles, configuration files and generated values, since these are often larger than teams expect. Ask each team to estimate growth over the planned retention period. The step is done when the inventory has a row for every path family and a named owner. Check: the largest recorded value sits clearly below the default Raft entry size of 1 MiB, or the team has flagged it for the split-or-externalize decision in a later step.

  2. Choose the storage backend

    The architect compares integrated storage (Raft), PostgreSQL and PebbleDB against the inventory, the availability target and the team's operating skills. Raft and PostgreSQL are the officially supported HA backends, while PebbleDB fits single-node installs that do not need high availability. The documentation describes PostgreSQL as easier to operate safely than Raft, which matters when the team already runs strong database operations. Record the choice, the reason and the owner of backups in the design. Check: the decision names the backend, the failure tolerance it provides and the backup process. Confirm backend details in the OpenBao storage backends documentation for your version.

  3. Test large writes on staging

    The platform team builds a staging cluster with the chosen backend, the same node count, TLS settings and storage class as production. They write values at the largest recorded size, at the expected key count per path, and at the write rate seen during peak periods, then read and rotate them. Record write latency, leader and standby behavior during the writes, and any rejected requests with their exact error text. The step is done when results are compared against the limits from the inventory. Check: every representative write succeeds at the planned size and rate, and each failure has a documented response. Run these tests on the OpenBao version you intend to operate in production.

  4. Decide whether to split or externalize data

    For any secret family that approaches the size limit or grows without bound, the architect chooses one of two paths. The first splits data across more paths or engines so each value stays small and access stays granular. The second moves bulk content, such as large files or datasets, into encrypted object storage and keeps only a reference and its access control in OpenBao. Document the trade-off: splitting increases the number of paths to manage, while external storage adds a second system to back up and audit. Check: each oversized family has a named target design, and the security team has reviewed the new data location before any migration begins.

  5. Set monitoring for latency and growth

    The operations team adds dashboards and alerts for write latency, request error rates, on-disk storage size, and key or lease counts, using the metrics the chosen OpenBao release exposes. Alert thresholds come from the staging baseline in the testing step, not from defaults copied from other systems. Storage growth is reviewed against the inventory each period so the team sees a path nearing its planned size before users report failures. Check: a test write that exceeds a threshold triggers an alert in staging and reaches the on-call channel. Confirm metric names in the telemetry documentation for your release.

  6. Document limits for application teams

    The platform team publishes a short limits page that application teams read before designing a feature. It lists the recommended maximum value size per path family, the expected key count, the supported write patterns and the contact for a planned increase. It also describes what to do when a value grows past its limit, such as splitting it or moving bulk content out. The step is done when each application team can find the limit for its path without asking the platform team. Check: every limit on the page traces to a staging result and to a version-specific confirmation.

  7. Repeat limit checks before each upgrade

    Before each OpenBao upgrade, the platform team repeats the large-write tests from the staging step on the target version and compares the results with the stored baseline. Release notes and upgrade documentation for the target version are reviewed for changes to storage behavior, default limits and configuration keys. Documented limits are updated only after the new results are recorded. Check: the upgrade record shows a passing large-write test on the target version and a review of configuration changes against this plan. Confirm each default against the version in use, since limits may change between releases.

Patterns for large files and certificate bundles

When a secret approaches the Raft entry limit, the first design question is whether it belongs in OpenBao at all. OpenBao is well suited to small credentials, tokens, database passwords and key material, where encryption before storage and leasing add real value. For large encrypted blobs such as keystores, installer bundles or full certificate chains with many intermediates, the stronger pattern is to store the encrypted object in an external store your team already operates, keep the object's location, version and checksum in OpenBao, and have the consuming application fetch the blob and verify it before use. Confirm the exact default entry size and any configurable limit for your OpenBao version in the storage documentation before you size anything, since the limit is set by the storage backend and not by the secret engine.

Splitting a bundle is useful only when each part is independently meaningful and can be read without the others. A certificate chain can often be stored as separate leaf, intermediate and root entries, and a set of files can be stored one per key, so that a rotation touches one entry instead of rewriting the whole bundle. Avoid splitting where a consumer needs every part at once, because a partial read then fails in a way that is harder to diagnose than a single missing value. The same logic applies to frequently changing data: a counter, a heartbeat or a state file written on every request should live outside the secret store, because each write adds a full Raft log entry and every version is retained for rollback.

These patterns are not free. The application must handle fetching, caching, checksum verification and failure when the external store is unavailable, which is logic your developers must write and test. The external store becomes another system with its own access controls, encryption keys, backups and restore procedure, and an OpenBao snapshot alone will not recover the blobs. Ask your team to document which secret is authoritative, how the reference and the object are restored together, and who can change either one. For an illustrative case, a team that moves a 2 MiB bundle to object storage must still back up that bucket on the same schedule as its OpenBao snapshots, or a restore leaves dangling references.

Security and operational considerations for storage growth

Storage growth changes more than capacity. Encryption, backups, external stores, audit trails and monitoring all scale with the number and size of secrets, so each one needs a decision before the data arrives. The cards below cover the checks to make in a design review and the items to confirm with the OpenBao docs and your own environment.

Encryption before write

OpenBao encrypts secret values before it writes them to the storage backend, so the stored size of a secret is larger than its plaintext size. Size the backend against encrypted, not plaintext, values. Confirm the per-entry overhead for your version and backend, then test with a representative value size and key count before you commit to a storage layout.

Storage docs

Raft snapshot size and restore time

Every Raft snapshot holds the full encrypted dataset, so snapshot size grows with the secrets you store. Large values and high key counts increase both the time to take a snapshot and the time to restore one. Ask how long a full restore takes in a rehearsal on production-sized data, and confirm where encrypted snapshots are stored and who can read them.

HA docs

Access control on external blob stores

If a design keeps large payloads in an external blob store and only references in OpenBao, the blob store becomes a second place where sensitive data lives. Check that its access policies match OpenBao's, that objects are encrypted at rest, and that deleting a reference also removes or expires the object. Confirm these controls with your security team before go-live.

Audit logging volume

Each request to OpenBao with audit logging enabled produces an audit entry, so many keys, frequent reads and dynamic credential issuance raise log volume quickly. Plan the audit device destinations, their capacity and retention, and how a full or blocked audit sink is handled. Test the audit pipeline under a realistic request rate before adding more secrets.

Monitoring disk and latency growth

Storage growth shows up first as rising disk use and slower writes or reads on the leader. Set alerts on storage usage, snapshot duration, and request latency trends, not only on outages. Record a baseline after each major data load so you can tell normal growth from a fault. Confirm which metrics your OpenBao version exposes before you build dashboards.

Capacity reviews before data growth

Run a capacity review before onboarding a new workload, a new secrets engine or a large batch of values. Estimate secret count, average and largest value size, lease volume and audit volume, then compare them with the limits in the version you run. Ask your implementation partner to document the review so the next change starts from a known baseline.

Questions buyers ask about OpenBao storage limits

What does the 1 MiB default Raft entry size mean for my secrets?

It sets the largest single entry that integrated Raft storage accepts by default, so any value you write must fit inside that limit or the write fails. For most static credentials, API keys and certificates, that headroom is ample, but the risk grows for values that change over time. Check the largest value each secrets engine and workload can produce, including metadata and version history, since a key/value entry with many versions can grow faster than expected. The limit is configurable, so confirm in the OpenBao storage backends documentation how it is set in your release before you size anything. The planning work is to inventory value sizes, count keys per mount and test writes near the upper bound before go-live.

Should large files be stored in OpenBao or in a separate store?

Usually large files belong in a dedicated file store, with OpenBao holding only the keys, references and access grants that protect them. OpenBao encrypts values before they are written to storage, which suits credentials and small sensitive material. Every large value, however, adds replication work across Raft or PostgreSQL nodes and makes snapshots and restores heavier. Storing a pointer to the file plus its encryption key in OpenBao keeps the cluster lean and lets the file store scale independently. Decide this per data type: a TLS bundle or a license key is a good fit, while a database dump or document archive usually is not. Ask your compliance owner which copy is authoritative and where key custody sits, because that answer changes the design.

What does it cost to plan and test storage limits, and who pays for each part?

The cost has four parts. Your own team pays for time to inventory secrets engines, mounts, workloads and value sizes. You pay for a test environment that resembles production, whether that is hardware or cloud capacity for the node count you plan to run. If you hire a partner, its fees cover the sizing model, test design, load tests and the written report. Inventory, test design and the first benchmark are one-time work, while re-testing after upgrades, growth reviews and monitoring recur. Cost rises with the number of mounts and keys, the spread of value sizes, client request rates, the number of HA nodes and the number of backends you compare. DeployOpen works fixed-scope, so ask for a quote that lists test cases, environments, deliverables and retest rounds. DeployOpen does not publish prices.

How long does a storage sizing exercise take, and what does it depend on?

Duration depends mostly on how well your current usage is understood. The main variables are the number of secrets engines and mounts, how many workloads and value shapes must be tested, whether a representative test cluster already exists, and how many storage backends are being compared. If no usage data exists for existing systems, growth projections need a longer discovery phase, which adds time before any testing starts. Testing time also depends on how many load scenarios you run and how many rounds of tuning follow. No standard duration applies to every environment, so ask the partner or vendor to state the timeline in writing, tied to the inventory, environments and test cases in the agreed scope.

What must our team provide before anyone can size our OpenBao storage?

The sizing work depends on inputs that only your organization can supply:

Can our own platform team size and test OpenBao storage limits?

Yes, if the team already operates OpenBao or a similar secrets manager, has a non-production cluster and can allocate time for load testing. The work requires familiarity with how Raft or PostgreSQL behave under large writes, how snapshots grow and how to read cluster metrics. Common gaps are no restore rehearsal, no representative test cluster and no named owner for each secrets engine. A short pilot on a non-production cluster helps reveal those gaps before production planning. If your team lacks capacity or experience, you can hand the sizing, testing and written report to a partner while keeping day-two operations in-house. DeployOpen plans, implements and tests self-hosted platforms inside your infrastructure, so the division of work should be written into the scope.

How do many keys and large values affect OpenBao performance?

Large values increase write latency, replication volume and snapshot size, because each write moves more data to every node. Many keys increase storage overhead, make listing operations heavier and add load to lease handling when many secrets are issued and revoked. Both effects compound under high client concurrency, so a design that looks safe in isolation can slow down at production scale. The practical approach is to replay a representative workload: real value sizes, realistic key counts per mount, expected read and write rates and the lease patterns your workloads produce. Measure write latency, replication lag, snapshot time and memory use at each step. Confirm the expected behavior for your release in the OpenBao high availability documentation before setting thresholds.

How a large secret moves through OpenBao and storage

A write starts at the client, crosses into OpenBao where the value is encrypted before it reaches storage, and then lands in the chosen backend, whether integrated Raft or PostgreSQL. The diagram marks the trust boundaries and shows an optional branch where a very large value sits in an external blob store with only a reference kept in OpenBao. Check which path your design uses, and confirm the size limit that applies to the backend you chose before you rely on the direct path.

Client writes flow through OpenBao encryption into the chosen backend, with an optional blob store branch.

How DeployOpen scopes storage planning

DeployOpen agrees the storage planning scope in writing before any sizing work starts. Most engagements are fixed-scope, so the deliverables, the systems covered and the questions the work must answer are set out in the agreement before anyone touches a cluster. For storage limits and large secrets, a typical scope can include an inventory review of the secret types you store, a sizing model for the Raft entry size and value sizes in your key/value and PKI paths, a review of how many keys and secret versions each mount will hold, and a written recommendation on whether the Raft or PostgreSQL backend fits your growth profile. It can also include a test plan that writes representative large values and high key counts to a non-production cluster and records the effect on latency, snapshot size and leader performance, so the recommendation rests on measured behavior rather than on assumptions.

The work depends on inputs only you can supply. Ask your team for a secret inventory that lists which applications and pipelines write to OpenBao, what they store (for example, certificates, bundles, configuration files or generated credentials), and the largest value each one produces today. Ask for growth estimates for the next planning horizon, the number of namespaces and secrets engines planned, and the snapshot and backup retention you need. DeployOpen also needs access to a non-production environment with infrastructure that resembles production, such as the same node sizes, storage class and network path, along with a named owner who can approve configuration changes. Where a value is unknown, record it as an assumption in the scope so the deliverable states exactly what it was built on.

Ask any partner, including DeployOpen, to state in the quote which items are one-time (the sizing model, test results and design decisions) and which recur (retesting after a major release or a change in secret volume). The quote should name the environments used for testing and the outputs you will receive, and it should list what you must provide and by when. Confirm the current documented limits and the behavior of the version you run against the official OpenBao storage backends documentation before the test plan is signed off, because these settings can change between releases.

How DeployOpen delivers OpenBao storage planning

DeployOpen plans, builds, documents and supports OpenBao storage designs inside your own infrastructure, including the size limits that shape Raft entries, large values and key counts. Each engagement starts from a written scope and ends with a handover your platform and security teams can operate without us.

How we scope

  • Inventory the secret types, value sizes, key counts and access patterns your teams expect to store.
  • Choose between Raft, PostgreSQL and PebbleDB with the HA and operational trade-offs written down.
  • Agree the scope, deliverables and timeline in writing before any build work starts.

How we build

  • Configure the storage backend and cluster layout to match the size and volume limits you confirmed.
  • Test large-value and high-key-count behavior in a non-production cluster before go-live.
  • Set monitoring for storage growth, entry sizes and backend health so limits surface early.

How we hand over

  • Deliver the design record, configuration, sizing assumptions and the test results behind them.
  • Write runbooks for snapshot backups, restore rehearsals and what to do near a size limit.
  • Walk your platform and security teams through the decisions so they can review and extend them.

How we support

  • Offer ongoing support and upgrades as a retainer, including checks against new OpenBao releases.
  • Re-test storage limits after major changes such as new secret types, growth or backend moves.
  • Confirm with your team which support terms, response expectations and review cycles apply before signing.

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.