OpenBao namespaces and multi-tenancy

OpenBao namespaces let teams or customers share one cluster with separate policy boundaries and delegated administration. This page explains the design choices, the trade-offs against separate clusters, and what to confirm before you build.

On this page

How OpenBao namespaces isolate teams in one cluster

OpenBao supports namespaces for multi-tenant isolation within one cluster, as the OpenBao namespaces docs describe. A platform team deciding whether one cluster can serve several teams or customers should read namespaces as a way to give each tenant its own administrative space inside a shared cluster, not as a substitute for every isolation decision. Each namespace holds its own secrets engine mounts, policies, auth method configuration and identity scope, so a secret path or policy defined in one namespace does not automatically exist in another. Teams typically need namespaces when they want separate ownership of secrets and auth configuration, when different business units or customers must not see each other's mounts, or when delegated administrators should manage only their own part of the cluster.

The practical question is what each namespace separates and what it shares. Mounts such as KV, database or PKI engines are created per namespace, so a team can enable and tune its own engines without touching the parent. Policies are evaluated in the namespace where a token is used, which means a policy written for one tenant cannot grant access in another unless the design deliberately grants it. Auth methods and their roles are also scoped, so the identities that log in to one namespace are not the same set as those in another. Before committing, confirm with the project's current documentation how tokens, root-level endpoints and audit devices behave across namespace boundaries, since the cluster itself, its storage backend and its unseal process remain shared by every tenant.

Treat the design as a set of decisions to record before any build starts. Decide the namespace hierarchy (flat per team, or parent namespaces with child namespaces per product line), who holds administrative rights in each namespace, and which auth methods each tenant may configure. Define which items stay at the cluster level, such as seal configuration, storage and global audit, because a tenant should not expect to control them. Then test the boundary: create a token in one namespace and attempt to read a path in another, confirm the denial is logged, and rehearse a delegated administrator's workflow. Ask the vendor or the community channel for the current list of namespace-related limits for your release, since behavior that shifts between minor versions is the main risk in this design.

Namespace design options and when each fits

This table compares three ways to lay out namespaces in one OpenBao cluster: flat per-team, business-unit parents with child namespaces, and per-customer. Read each column against your ownership model, since the main takeaway is that policy boundaries and delegation effort rise with the number of namespaces while mount sprawl is the cost to watch.

DimensionFlat namespace per teamParent per business unit with childrenPer-customer namespace
Policy boundaryEach team namespace holds its own policies, auth mounts and secrets engines, with no shared hierarchy above itPolicies in a parent can apply to children, so shared rules sit high and team rules sit lowEach customer gets an isolated boundary for its policies and mounts, which suits contractual separation
Delegated administrationLow effort per team, but each team admin needs a separate grant and there is no grouping above themBusiness-unit admins manage their subtree, which reduces grants but needs clear rules on what children may overrideHighest effort: every customer needs its own admin path, onboarding steps and offboarding procedure
Operational overhead of many mountsMounts are repeated per team, so auth and secrets configuration drifts unless templatedShared mounts can live higher in the tree, lowering repetition, though deep trees are harder to auditMount count grows with customer count, so automation for creating and retiring namespaces matters early
Audit and reportingReports map cleanly to teams, but cross-team questions need several queriesReports can follow the business structure, which fits finance and governance reviewsReports map to customers, which helps evidence requests but complicates shared service reporting
Good fit whenTeams are internal, few in number and share most platform rulesThe organization has stable business units with separate owners and shared standardsCustomers need evidence of separation or their own encryption keys, with a repeatable onboarding process
What to confirmNamespace, mount and policy limits and how they affect your cluster size, with the OpenBao projectWhether policy inheritance and child overrides behave as your design assumes in the version you runSupported namespace counts and operational guidance for large tenant numbers, with the OpenBao project

When namespaces are enough and when separate clusters are better

Namespaces isolate policy, mounts and administration inside one OpenBao cluster, while separate clusters isolate the process, storage and seal. The cards below cover the factors that usually decide which boundary a team or customer needs, and what to confirm before committing.

Regulatory and contractual separation

Check whether a regulation, customer contract or internal policy requires that tenant data sit on separate infrastructure, not just behind separate policies. A namespace shares the cluster's storage backend, nodes and operators, so a contract that names dedicated hosting or a separate environment usually points to a separate cluster. Ask legal and compliance to state the boundary in writing before the design starts.

Blast radius of a seal or upgrade

A seal, unseal failure or failed upgrade affects every namespace in the cluster at once. If one tenant's outage window or change freeze cannot be shared with others, that favors separate clusters. Namespaces suit groups that accept a common maintenance schedule and a shared recovery procedure.

Key custody requirements

Namespaces share the cluster's root key protection by default. When a tenant must hold or control its own encryption keys, the design question changes to whether sealable namespaces are enough or whether the tenant needs its own cluster. That decision belongs to the separate topic on sealable namespaces for tenant-held keys, which should be read before this choice is finalized.

Network isolation

Namespaces do not change which network paths reach the cluster. If a tenant must reach OpenBao only from a segregated network, from a particular region, or through a dedicated load balancer, plan separate listeners or a separate cluster. Confirm how each consuming network will route to the API and who controls the firewall rules.

Operator separation

Namespaces let delegated administrators manage their own mounts and policies, but cluster-level operators still hold the keys to every namespace. If a tenant's administrators must have no access to the platform team's operations, or the reverse, a separate cluster gives a cleaner administrative line. Document who can perform root-level and seal operations before granting delegated rights.

Cost of running extra clusters

Each additional cluster adds nodes, storage, backups, monitoring, upgrades and on-call coverage. These costs recur for every cluster, so a set of small tenants can make separate clusters expensive to operate. Ask any implementation partner to price the recurring operations work for each cluster separately, not only the initial build.

How delegated administration works across namespaces

Platform operators own the OpenBao cluster itself: its storage, seal configuration, high availability, upgrades and the root namespace. They create namespaces and decide what each tenant may do, but they should not read tenant secrets as a routine matter. Their access is best kept narrow and separate from day-to-day tenant work, so that a single compromised operator credential does not expose every tenant at once.

  • Root namespace ownership: Keep the number of people and automation identities with root-level policy small, and record each one in your access review.
  • Namespace creation: Restrict who can create or delete namespaces, since that decision sets the boundary for everything below it.
  • Break-glass path: Define an emergency procedure for root-level access, with a named approver and logging, and test it before you need it.
  • Separate identities: Use distinct human and automation identities for cluster operations, and avoid reusing tenant credentials for platform work.
  • Audit visibility: Confirm that operator actions, including namespace creation and policy changes, reach your audit devices.

Before you rely on any of this, check the exact policy paths and capabilities for your OpenBao version against the namespaces documentation, because the required permissions for namespace administration can change between releases.

How to set up namespaces for tenants

This sequence takes a tenant model on paper to a tested OpenBao cluster where each tenant administers only its own namespace, with cross-tenant access denied and checked before any tenant is onboarded.

  1. Define the tenant model and boundaries

    Decide what a tenant is for your organization: a business unit, a product team, or an external customer. Write down the namespace hierarchy, which tenants need child namespaces, which secrets engines and auth methods each tenant needs, and who holds administrative rights in each namespace. Agree the model with your security and compliance owners before any configuration. Done when the written model names every tenant, its namespace path, its owners and its required mounts, and a reviewer has signed off. Confirm with your own environment whether tenants will share a single seal or need separate key custody, since that choice points to sealable namespaces rather than plain namespaces.

  2. Create parent and child namespaces

    Using an operator account with the rights to create namespaces, create the parent namespace and then the tenant namespaces beneath it as the model specifies. Keep naming consistent so that policies and audit records can be read without a lookup table. Confirm the namespace paths by listing them from the parent and by reading each namespace's metadata. Done when every namespace in the model exists at the expected path and no unplanned namespace has been created. Check the namespace documentation for the exact commands and the namespace behavior in your OpenBao version.

  3. Mount secrets engines and auth methods per namespace

    Inside each tenant namespace, enable only the secrets engines and auth methods that tenant has been approved to use. Mounts created in one namespace are scoped to it, so a tenant's key/value or database engine does not appear in a sibling. Choose auth methods that fit each audience, for example AppRole for servers and a federated method for people, following the auth methods guidance. Done when listing mounts from inside each namespace shows only that tenant's approved engines, and a mount listed in one namespace is absent from its siblings.

  4. Write policies scoped to each namespace

    Write policies that grant access only to paths inside the tenant's own namespace and mounts. Keep tenant administrator policies separate from tenant user policies, and avoid wildcard paths that reach across namespace boundaries. Review each policy with the tenant owner and the platform team, because a broad path is the most common way isolation breaks. Done when each policy file is stored, reviewed and attached to the right auth role, and a dry-run or capabilities check for a tenant identity shows allowed operations only inside its namespace.

  5. Bind identities and groups to tenant administrators

    Map each tenant's identity provider groups or auth roles to the tenant's administrator and user policies, so that access follows directory membership instead of individually issued tokens. Assign tenant administrators the rights to manage mounts and policies inside their own namespace only. Record the mapping and who approved it. Done when a test user from each tenant logs in and receives a token carrying only that tenant's policies, and a user removed from the directory group loses access on the next login or token expiry.

  6. Test cross-tenant access denial

    Test the boundary directly. Log in as a tenant user and attempt to read a secret, list a mount and issue a token in a sibling namespace, and confirm each request is denied. Repeat from a child namespace toward its parent and from the parent toward a child, because the rules for moving upward and downward differ and both must be verified. Confirm the denials appear in the audit log with the expected identity and namespace. Done when every cross-tenant attempt in the test plan is denied, the results are recorded, and any gap has a fix and a retest.

  7. Record the evidence and onboard tenants

    Store the tenant model, namespace list, policy files, group mappings and the cross-tenant test results together as the evidence pack for your reviewers. Confirm that audit logging covers every namespace before live tenant data is written. Only then onboard the first tenant, and repeat the cross-tenant tests after each new namespace or policy change. Done when the evidence pack is approved and the repeatable test runs cleanly on each change.

How a request flows through the cluster and its namespaces

The diagram starts with a client calling the shared OpenBao cluster, where the request is routed into a namespace and authenticated against that namespace's auth mounts. The namespace's policies then decide what the token may do, and the request reaches a secrets engine mount that belongs to that same namespace. The cluster-level storage and seal sit underneath every tenant, so check that each tenant's paths, policies and auth mounts stay inside its own boundary before you rely on the design.

Namespace boundaries inside one cluster, with shared storage underneath.

Security risks in shared namespace designs

A shared OpenBao cluster with namespaces concentrates administration, identity and logging in one place. The cards below cover the risks that tend to surface when several teams or customers share that cluster, and the check to run for each one.

Policy inheritance mistakes

Policies and mounts set high in the namespace tree can reach into child namespaces in ways teams do not expect, so a wildcard path written for one team can expose another team's secrets. Review every policy that uses broad path patterns, and confirm in a test namespace which paths a token from each tenant can actually read and write. Illustratively, a policy on a parent path granting read access to a shared prefix should be traced to every child that matches it.

Namespaces docs

Over-broad administrator roles

A tenant administrator who can create auth methods, mounts or policies inside their own namespace can often widen their own access, and a platform administrator with cluster-wide rights can read any tenant's configuration. Check which capabilities each administrative role holds, and whether the platform team uses separate identities for day-to-day work and for cluster-wide changes. Ask for a written list of who can change namespace-level policy.

Root token handling

A root token bypasses policy checks across the whole cluster, so its existence is a cluster-wide risk rather than a tenant risk. Confirm that no tenant workflow depends on a root token, that the initial root token is revoked after setup, and that any emergency use is recorded and reviewed. Work with the platform team to document who holds recovery material and how it is split.

Shared auth mounts exposing identities

When several tenants authenticate through one auth mount, group names, claim mappings and entity aliases can reveal who belongs to which tenant or let one tenant's identity provider settings affect another. Check how claim rules and identity groups are scoped, and whether each tenant's users can be enumerated from another namespace. Where tenants have their own identity providers, confirm that separate auth mounts are used.

Audit log separation per tenant

Audit devices in OpenBao record requests across the cluster, so a tenant audit trail is not automatically separate from other tenants' activity. Decide whether each tenant needs its own review access, how entries are filtered by namespace, and how long they are retained. Confirm that a tenant's auditors can see their own requests without seeing secret values or other tenants' records, and test that the audit path is covered by the same alerting as the rest of the cluster.

Cluster-wide incident impact

One cluster means one storage backend, one seal, one set of nodes and one upgrade cycle, so a failed unseal, a storage fault or a bad configuration change can stop every tenant at once. Ask for the recovery procedure, the backup and restore test results, and the blast radius of an upgrade. Where a tenant needs independent key custody or a separate failure domain, compare that need with running a separate cluster.

Questions teams ask before designing OpenBao tenants

What drives the cost of an OpenBao namespace design?

The cost is driven by how many tenants you have, how many distinct policy boundaries each tenant needs, and how much delegated administration you plan to hand out. Namespace design is mostly one-time work: mapping tenants, writing the namespace hierarchy, policies, auth mounts and admin roles, then testing that one tenant cannot reach another. Recurring costs come later, when new tenants are onboarded, roles change or the cluster is upgraded. When you request a quote, ask for the work split between design, build, testing and handover, the number of tenants and identity sources in scope, and whether ongoing support is priced separately. DeployOpen does not publish prices, and a quote follows from the written scope.

How long does an OpenBao namespace design and build usually take?

Duration depends mainly on the number of tenants, how many identity providers must be connected, and whether tenants need their own auth methods or only shared ones. A design for a few internal teams with one directory is a much smaller job than a multi-customer cluster with per-tenant SSO and delegated administration. No fixed duration applies to every case, so ask for a timeline that is tied to the written scope and lists the milestones: design review, build in a non-production cluster, policy testing and cutover. Most engagements are fixed-scope, so the agreed timeline should appear in the statement of work before work starts.

What does the design need from our identity and network teams?

The design needs your identity team to confirm which directories, OIDC or SAML providers and group structures map to each tenant, and who owns group membership changes. Your network team must confirm how engineers and applications reach the OpenBao API, which load balancer or DNS names are used, and which tenant traffic can cross zone boundaries. Ask both teams to name an approver for the design decisions, because group-to-policy mapping is hard to reverse once applications depend on it. Ask the engagement team to list these dependencies in writing so that delays from access requests do not surface late in the build.

Can our own team design and build OpenBao namespaces without a partner?

Yes, a capable platform or security team can design and build namespaces in-house, provided it has OpenBao and policy-writing experience and time to test isolation. The work that teams most often underestimate is verification: proving that a tenant token cannot read another tenant's mounts, that delegated administrators cannot escalate privileges, and that audit records show the correct namespace. A partner is useful when the in-house team lacks that time or when you want an independent review of the design. Whichever route you choose, write down who owns each namespace, the policy set and the test evidence before production use.

Are namespace moves safe to do later?

Moves are possible but not free of risk. OpenBao's sys/remount capability can relocate mounts, and the move runs asynchronously, so you must track its status. Existing leases and tokens for the moved mount are revoked during the move, which means dependent applications need to re-authenticate and may see errors during the window. Plan moves in a maintenance window, confirm which applications hold credentials on the mount, and test the move in a non-production cluster first. Before you commit to a namespace hierarchy, check whether you expect to restructure it, because a cheap design choice now is an expensive move later.

Do namespaces give the same isolation as separate clusters?

Namespaces provide policy and administrative isolation inside one OpenBao cluster, but all tenants share the same cluster, storage backend, unseal process and upgrade cycle. A separate cluster gives stronger separation of failure domains, operational blast radius and key custody. Namespaces are a good fit when tenants trust the same operator team and a shared lifecycle is acceptable. If tenants need independent encryption keys or separate upgrade timing, evaluate sealable namespaces or separate clusters instead. Confirm the isolation model against your own threat model and ask the design team to document which failures affect every tenant.

What should we request in a namespace design quote?

Ask for a written scope listing tenant count, namespace hierarchy, identity sources, auth methods per tenant, policy categories and delegated administration roles. Request the list of deliverables, such as the design document, namespace and policy definitions, administrator runbook, isolation test results and audit configuration notes. Ask what is excluded, including upgrades, ongoing tenant onboarding and any move of existing mounts. Finally, ask how changes to scope are priced and approved, since tenant growth is the most common driver of added effort.

Limits to confirm in your environment

Namespace designs depend on limits that the project documentation may describe only in general terms and that vary with hardware, storage and workload. The cards below list the items to verify against the target OpenBao version, either in the project docs or on a test cluster built to your expected shape before any tenant data arrives.

Namespace count and nesting depth

Each namespace adds its own mounts, policies and identity configuration, so the number of tenants and the depth of child namespaces both affect operations. Ask how many namespaces your target version handles in practice, and how nesting depth affects token and policy evaluation. Build a test cluster at your expected tenant count and time the operations your teams run most often, such as creating a namespace and mounting an engine inside it.

Namespaces docs

Performance under many mounts

Secrets engines and auth methods mounted across many namespaces multiply the number of routes, leases and storage paths the cluster manages. Measure request latency, storage growth and leader behavior with your realistic number of mounts and leases. Confirm how your storage backend, Raft or PostgreSQL, behaves under that load before you commit a tenant model to it.

Policy inheritance in the target version

Policies in a parent namespace can affect what administrators in child namespaces can see or change, and the exact inheritance rules matter for delegated administration. Test each rule you depend on, including whether a parent policy grants access into a child and how root-level administration interacts with tenant administrators. Record the behavior for the version you plan to run, since the rules are version-specific.

Audit device scope per namespace

Audit devices configured at the cluster level may record requests from every namespace, while tenants may expect their own audit trail. Confirm whether audit devices can be scoped per namespace in your version, who can enable or disable them, and how logs for each tenant are separated and retained. Test that an audit failure behaves as your design requires, because a blocked audit path can stop requests for all tenants.

License and support for multi-tenant use

OpenBao is licensed under MPL-2.0, and multi-tenant use inside your own cluster generally does not change the license of your own code, but you should confirm the obligations for your specific distribution and any modifications you make. Also confirm what community support covers, and whether a vendor you engage will support a multi-tenant layout you designed. Ask your legal and procurement teams to review the license terms against your plans.

Delegated administration boundaries

Tenant administrators need enough rights to manage their own mounts and policies without reaching other tenants or cluster-wide settings. Write the administrator policies for each tenant, then test that they cannot read another namespace, change seal settings or reach root-level endpoints. Ask your security team to review these policies before onboarding, since a single overbroad grant can break the isolation the design depends on.

How DeployOpen scopes a namespace design

A namespace design is scoped in writing before any configuration starts, because the number of tenants, the identity sources behind them and the set of administrative powers each team needs decide most of the work. The engagement agreement fixes the scope, deliverables and handover in writing, so the client knows what is designed, what is configured and what is tested before the work begins. Timelines and prices follow from that written scope rather than being estimated in the abstract.

To scope the work, DeployOpen asks the client to provide a tenant list that names each team or customer, the namespace hierarchy it expects (for example, whether tenants need child namespaces), and the data each tenant may hold. The client also supplies the identity sources that will sign people in, such as an existing OIDC or LDAP directory, and the named administrators who will hold delegated roles. Confirm early whether any tenant needs its own encryption keys, because that changes the design and is covered separately in the sealable namespaces topic.

The design deliverables typically include the namespace layout, the policy boundaries that stop one tenant's tokens and mounts from reaching another's, the delegated administration model and the audit approach for those actions. Configuration covers the namespaces, mounts, policies and auth roles in the agreed design, applied to the client's own OpenBao cluster. Tests verify that cross-tenant access is denied, and handover includes the runbook and the review steps your team needs to add a tenant later.

How DeployOpen delivers OpenBao tenant designs

DeployOpen plans, builds, tests and hands over OpenBao namespace layouts inside infrastructure you control. The work starts with a written scope that sets which tenants, teams and administrative duties sit in each namespace, and ends with documentation and a runbook your own staff can operate.

How we scope

  • Map each team or customer to a namespace and record which parent or child boundary it sits under.
  • Agree in writing which auth methods, secrets engines and policies each namespace may use.
  • Define which administrators hold delegated rights, and which rights stay with the platform team.

How we build

  • Create the namespace hierarchy, mounts and auth configuration from reviewed, version-controlled definitions.
  • Write least-privilege policies per namespace and test cross-namespace access paths before release.
  • Confirm audit logging captures actions across namespaces, and check that tenant data stays inside its boundary.

How we hand over

  • Deliver the namespace design, policy inventory, delegation matrix and onboarding steps as written documents.
  • Run a walkthrough with your administrators covering how to add a tenant and revoke delegated access.
  • Provide a findings report with fixes and a retest where security testing is part of the engagement.

How we support

  • Support is available as a retainer for changes to tenants, policies and OpenBao version upgrades.
  • Plan upgrades against the release notes for the version you run, and confirm compatibility in a staging cluster first.
  • Ask in any quote which support hours, response paths and review cycles the retainer includes.

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.