OpenBao SSO and identity integration

OpenBao SSO and identity integration means deciding which auth method each person and workload uses, mapping identity groups to policies, and enforcing MFA before any secret is issued. This page covers the decisions, build sequence, effort drivers and verification steps.

On this page

Why OpenBao SSO and identity integration decides who can reach your secrets

If you already run an identity provider and an OpenBao cluster, the work is to have people and workloads authenticate through OpenBao's auth methods, with no shared static credentials, and to map the groups they belong to onto OpenBao policies with login MFA enforced where your policy requires it. In practice that means choosing a method per population: JWT/OIDC or LDAP for people, Kubernetes, AppRole or TLS certificates for workloads. The auth configuration is not a login setting. It is your access control model, because every policy a token receives comes from the auth method that issued it. Get the mapping wrong and the cluster is wrong, even when the secrets engines are configured correctly.

The first difficulty is that group claims do not look the same across identity providers. The claim that carries group membership, its name, its format and whether it contains group names or opaque IDs all depend on how your provider is configured, so the mapping has to be verified against a real login from each group rather than assumed from the directory. Token lifetimes add a second layer: a token that stays valid after a user leaves a group keeps the old policies until it expires or is revoked. Policy drift is the third risk. Groups change, policies are edited, and nobody re-checks which identity maps to which policy, so access quietly widens over months. Confirm with your provider exactly which claims it emits and how your team will review group-to-policy mappings on a fixed schedule.

OpenBao's documentation recommends Userpass for developer machines and AppRole for servers, so a single method rarely fits every population. Userpass is a poor fit for people who should sign in through your corporate identity, which is why the JWT/OIDC or LDAP path and login MFA usually carry the human access, and why the documented recommendation should be checked against your own risk model before adoption. Decide which population uses which method, who may approve a new mapping, and how a departing employee's access is removed in both the provider and OpenBao. Ask your implementation partner to show a test login per group and a revocation test before the cluster is opened to real users.

Which OpenBao auth methods and settings carry identity

Identity in OpenBao is carried by auth methods that verify who or what is calling, then by policies and groups that decide what each caller can read. People, workloads and login paths each need their own method, and the mapping between external groups and policies is where most access decisions are made.

JWT/OIDC for people

The JWT/OIDC method accepts tokens issued by your identity provider, so staff sign in with the corporate single sign-on they already use. Confirm which claims your provider emits, since the role configuration maps those claims to OpenBao roles and groups. Test with a non-admin account first to see exactly which policies a login receives.

Auth methods docs

LDAP for directory groups

The LDAP method lets users authenticate with directory credentials and maps directory groups to OpenBao policies. It suits organizations whose group membership lives in Active Directory or another LDAP directory rather than an OIDC provider. Confirm how nested groups and disabled accounts are handled, and who owns the bind account OpenBao uses to query the directory.

Kubernetes auth for pods

The Kubernetes method lets a pod authenticate with its service account token, so applications never store a secret to reach OpenBao. Bind each role to a specific namespace and service account, and keep the number of bound service accounts small. Review who can create service accounts in those namespaces, because that is the trust boundary.

AppRole for servers

AppRole gives non-human workloads a role ID and a secret ID, which OpenBao recommends for servers. Keep the secret ID short-lived and delivered through a trusted channel, and restrict token use with CIDR bindings where your network allows. Plan how secret IDs are rotated during deployments so automation does not depend on long-lived credentials.

TLS certificate auth

The TLS certificate method authenticates clients that present a certificate issued by a CA you trust, which fits devices, legacy services and mutual TLS environments. Decide which CA is trusted for this method and keep it separate from general-purpose issuance. Confirm how certificate revocation is checked in your environment before relying on it for production access.

Identity groups and login MFA

Identity groups link external group memberships from each auth method to shared policies, so access follows your directory rather than per-user grants. Login MFA applies to selected login paths and is a separate layer that must be enabled for each path it protects. Map every privileged group to a named policy, then verify that MFA is enforced on the paths that grant those policies.

Auth methods docs

Which auth method fits each population and what it costs to run

This table compares the OpenBao auth methods that fit staff, developer machines, servers, pods and machines with certificates, plus the MFA placement decision. Read each row for the operational trade-off: who must be reachable when the identity source fails, how credentials are rotated and what your team must keep running. The main takeaway is that the choice follows the population, and the cost is mostly in the dependencies you accept.

OptionWhen it fitsWhat it costs to run
JWT/OIDC for staffPeople who already sign in through an SSO identity providerDepends on the provider being reachable; confirm token lifetimes and session policy with your identity team
LDAP for directoriesGroups already maintained in an existing directoryDirectory outages block logins; plan a service account and monitor its password rotation
Userpass for developer machinesDeveloper workstations, per OpenBao's recommendationPasswords live in OpenBao, so your team owns reset and lockout procedures
AppRole for serversLong-running servers, per OpenBao's recommendationSomeone must distribute and rotate the role ID and secret ID securely
Kubernetes auth for podsWorkloads running in clusters you operateRequires cluster-side configuration and review when service accounts or namespaces change
TLS certificate auth for machinesMachines already issued certificates by a trusted internal authorityCertificate issuance, renewal and revocation become a dependency you must monitor
MFA at the identity provider or OpenBaoSingle enforcement point for staff loginsEnforcing at the provider covers SSO apps; enforcing at OpenBao adds a second prompt and support load for break-glass access

How to build OpenBao SSO in a safe order

This sequence moves OpenBao from a bootstrap setup to identity-based access, where people and workloads authenticate through their own identity sources, get policies from group membership, and no routine work depends on the root token. Each step ends with a check you can observe before moving on.

  1. Inventory identities and assign auth methods

    List every group of people who need OpenBao access, every application or server that reads secrets, and every Kubernetes workload that will authenticate. Assign each one an auth method: JWT/OIDC or LDAP for people, Kubernetes or AppRole for workloads, and TLS certificates only where a workload already holds a certificate it can present. Record which teams own each mapping and which policies they should receive. The step is done when every identity category has a named method and an owner, and the list is reviewed by the security team before any configuration begins.

  2. Connect the identity provider or directory

    Configure the OIDC client in your identity provider or the LDAP bind account in your directory, using a read-only service account where LDAP is used. Confirm that the group claim (for OIDC) or group attribute (for LDAP) is present in a test token or test lookup for a sample user. The check is a decoded token or directory query that shows the expected group names for that user. If the groups are missing or named differently than planned, fix the identity provider before enabling anything in OpenBao.

  3. Enable the auth method and map groups to policies

    Enable the chosen people auth method in OpenBao and create one external group per identity provider group, each linked to a policy that grants only the paths that group needs. Start with read-only policies for most groups and add write capabilities only when a documented use case requires it. The check is a successful login by a test user in each group, after which the token shows exactly the policies you mapped and no others. Any unexpected policy in the token means the mapping needs correcting before you proceed.

  4. Enable login MFA on the paths that need it

    Enable login MFA for the auth paths and policies that handle sensitive secrets, such as administrative or production groups, following the MFA options in the OpenBao auth documentation. Confirm which MFA provider your organization already runs and whether it can be reached from the OpenBao nodes. Test a non-admin login from a clean session: the expected outcome is a prompt for the second factor, and a login without it must fail. Record the result for the access review file.

  5. Bind Kubernetes and AppRole workloads with narrow roles

    Create one role per workload or application, binding the Kubernetes service account and namespace, or the AppRole role ID and secret ID delivery method, to a policy limited to that workload's secret paths. The OpenBao docs recommend AppRole for servers, so confirm the secret ID delivery and rotation process with the platform team before rollout. The check is a login by the workload that returns a token with only its own policy, plus a failed attempt to read another workload's path using the same token. Do not reuse one role across unrelated applications.

  6. Retire userpass and static bootstrap tokens

    Remove any userpass accounts, long-lived tokens or static credentials created during initial setup, after confirming that every person and workload has moved to its identity-based method. The OpenBao documentation recommends Userpass for developer machines, so decide with the team whether developers will use the identity provider path or a separate approved method before removing it. The check is a list of auth methods and token accessors showing no bootstrap credentials still in use, plus an audit log entry for each revocation. Keep a record of who approved each removal.

  7. Confirm the root token is not in routine use

    Revoke the root token that was used for setup once administrators have a documented, MFA-protected path to perform administrative work, and store any emergency recovery material under your own key custody process. Confirm that routine operations succeed without the root token by running the normal administrative tasks under identity-based accounts. The closing check is an audit log search over a representative window showing no routine requests authenticated with root, and an entry for each root-level action that was required. If routine work still depends on the root token, return to the group mapping and policy steps.

How a person and a workload authenticate to OpenBao

A person starts at the identity provider and reaches OpenBao through a JWT/OIDC or LDAP auth method, with login MFA as a gate before a token is issued. A workload starts from its platform identity and authenticates through Kubernetes, AppRole or TLS certificate auth. Both paths map groups or roles to policies, and the resulting token only reaches the secrets engines its policies allow. Check where the trust boundary sits, which system holds group membership, and which policies each token carries.

Two login paths converge on policy-scoped tokens inside one OpenBao cluster.

What drives the effort of OpenBao identity integration

This table lists the factors that change how much work an OpenBao identity integration takes, who carries that work, and how to keep it contained. Read each row as a lever: most of the effort comes from how many identity sources, groups, workload types and environments you connect, and from how much evidence your reviewers need.

DriverWhat makes it biggerHow to keep it down
Number of identity sourcesSeveral directories or identity providers, each with its own claim shape, group format and login flow that the platform team must map and test separatelyStandardize on one primary provider for people and treat any second directory as a documented exception with a named owner
Groups and policies to mapLarge numbers of groups, nested groups or groups that mirror org charts rather than job functions, each needing a policy decision and a review stepMap a small set of role-based groups to policies, and agree the naming scheme with the identity team before writing any mapping
Workload typesKubernetes clusters, CI runners, servers and certificate-based machines each use a different auth method and different trust settings, so each adds its own configuration and testsGroup workloads by auth method, reuse one pattern per type, and confirm with your platform team which types are in scope for the first phase
MFA requirements and enforcement pointsMFA enforced at the identity provider, at OpenBao login, or both, with different rules for administrators and developers, each combination needing verificationDecide once where MFA is enforced, keep the rule in one place, and test the login path for each role before go-live
EnvironmentsDevelopment, staging and production each need their own mappings, endpoints and tested policies, so the same work repeats per environmentKeep one mapping template with environment-specific values only, and promote configuration through the same review path used for production
Compliance evidence for access reviewsReviewers asking for exported group-to-policy mappings, login logs, change history and proof that leavers lost access, each requiring collection and retention workAgree the evidence list with compliance and assessors early, then design audit logging and exports into the build instead of adding them afterward
Customization of claim mappingNon-standard claims, custom attributes or claim transformations that the identity provider or the team must maintain and explainUse the standard claims your provider emits where possible, and document every custom mapping with its owner and the reason for it

How identity integration differs by deployment model

A single OpenBao server is the simplest case for identity integration because every login request reaches the same process. The server makes outbound calls directly to the identity provider for JWT/OIDC discovery and token validation, or to the LDAP directory for bind and group lookups. There is no standby behavior to plan for, but a single node is also a single point of failure for every login, so identity outages stop human and workload access alike.

  • Outbound reachability: Confirm that the one node can open connections to the OIDC issuer or LDAP host on the required ports, including through any proxy or egress firewall.
  • Certificate trust: Install the internal certificate authority for LDAPS or the OIDC endpoint into the host trust store, or configure the auth method with the CA material it needs, and test it with a real login.
  • Discovery URLs: Use the exact issuer URL the identity provider publishes, since mismatches cause JWT/OIDC configuration to fail.
  • Failure impact: Decide whether break-glass access is needed when the identity provider is unavailable, and document how that access is controlled.
  • Restart behavior: Test that group-to-policy mappings persist across a restart and that users can log in again without manual steps.

Confirm the directory or issuer endpoints, the CA chain presented to the server, and the egress path before you configure any auth method.

How to test OpenBao SSO and confirm it fails safely

Test OpenBao SSO in three layers, and record the result of each: positive logins, negative logins and failure behavior. The positive layer proves that each persona and workload receives exactly the policies its group mapping should grant. Run a login for every human group (for example, a developer group using the userpass or OIDC path and a platform group with elevated read access) and for every workload identity (a Kubernetes service account, an AppRole role, or a TLS certificate). For each login, check the token's attached policies with the token lookup output and confirm that a secret outside the mapped scope returns a permission denied error. Expected results should be written down before the test runs, so the team is judging against a fixed baseline rather than whatever the cluster happens to return.

The negative layer proves that access is refused when it should be. Use a user who is outside every mapped group, an account that has been disabled or revoked in the identity provider, a disabled OIDC or JWT client, and a client certificate that has expired. Each must fail at login, not merely lack permissions after login. Then test MFA on the login path: confirm that a password-only attempt is refused for a method where MFA is configured, and that the second factor is enforced on every entry point, including the CLI and the API. Finally, change a group membership in the identity provider, such as moving a user out of an admin group, and confirm the change reaches OpenBao at the next login. Check the time it takes and whether a token issued before the change keeps its old policies until it expires, since that behavior determines how quickly you can cut off access in practice.

The failure layer shows what happens when the identity provider or directory is unreachable. Block the connection to the OIDC issuer, LDAP server or Kubernetes API from the OpenBao nodes and observe three things: new logins should fail with a clear error, existing tokens and leases should keep working until their own expiry or revocation, and break-glass access should behave as your runbook says. Confirm the break-glass method by performing it, not just reading about it, and confirm that the root token is not left in use. Record the audit log entries produced in each case, since they are the evidence a compliance reviewer will ask for. Keep the test evidence (test IDs, dates, expected and actual results, configuration versions and log excerpts) in a repository you control. Recording evidence supports readiness for an assessment, but it does not by itself produce an audit outcome, which an independent auditor determines.

Which identity risks to close before go-live

Identity integration moves trust from your directory into OpenBao, so a loose mapping or a forgotten login path can undo the MFA and group controls you already run. The cards below name the risks that most often survive a go-live review and the check that confirms each control is actually in place.

Overly broad group-to-policy mappings

A single identity group mapped to a broad policy can grant far more secret paths than the team needs. Map each directory group to the narrowest policy that covers its job, and keep wildcard paths out of identity-facing policies. To confirm, list every group alias and the policies attached to it, then test a sample user from each group against paths they should not reach. Least-privilege policies are the control; review them at each change to group membership.

Auth methods docs

Long-lived AppRole secret IDs

AppRole secret IDs that never expire or are reused across many servers let a single leaked value keep working indefinitely. Set short lifetimes and use limited use counts, and deliver secret IDs through a trusted channel at deploy time rather than baking them into images. To confirm, read the role configuration for each AppRole and check that secret ID settings match your rotation plan, then verify that a revoked secret ID stops authenticating.

Root token use after setup

The root token is created during initialization and can bypass policy checks, so leaving it in use after setup is a standing risk. Revoke it once administrative access is provided through identity-bound policies, and keep any break-glass procedure documented and tested. To confirm, search your audit logs for requests made with a root token after go-live and confirm that the only remaining path to recovery is written down and reviewed by at least two people.

Unverified group claims and over-privileged LDAP bind accounts

Group membership from a JWT/OIDC claim or an LDAP lookup is only as trustworthy as the source that issues it. Restrict which claims and groups are accepted, and give the LDAP bind account read-only access to the directory objects OpenBao needs rather than domain administrator rights. To confirm, check the bind account's directory permissions with your directory team and review the claim mapping against the identity provider's token contents for a test user.

MFA bypass through other auth methods

MFA on the primary login path does not help if a Userpass, token or older method remains enabled and reaches the same policies. Disable or restrict every auth method that is not part of the approved identity design, and enforce login MFA on methods that are kept. To confirm, list enabled auth methods, attempt logins with each one for a test account that has MFA enrolled, and record the results in your audit device output for review.

TLS trust for identity endpoints

OpenBao must trust the identity provider, LDAP server and Kubernetes API it talks to, and a misconfigured certificate chain can lead teams to disable verification as a quick fix. Pin the correct certificate authority for each endpoint, keep verification enabled, and enable an audit device so authentication events are recorded. To confirm, test each identity connection with verification on, confirm audit log entries appear for successful and failed logins, and check that the configuration contains no skip-verify settings.

What to monitor, document and review after SSO goes live

Once people and workloads authenticate through the identity provider, the main ongoing risk is drift: group-to-policy mappings that no longer match the directory, AppRole secret IDs that were never rotated, and LDAP bind credentials that outlive the people who set them up. Schedule a review of every JWT/OIDC group mapping and LDAP group-to-policy entry whenever the identity provider changes group names, moves users between directories or changes MFA enforcement. Confirm with each team which policies their groups actually need, and remove mappings that grant more than that. Record the owner of each mapping in the runbook so the review has someone to ask.

Rotate AppRole secret IDs and the LDAP bind account password on a fixed schedule that your security team sets, and confirm in a test environment that applications pick up the new values before the old ones are revoked. Watch the audit devices for failed logins, repeated lockouts, and logins through auth methods that a given team should not use, such as username and password or token logins from server hosts. Confirm with your own logging pipeline how long audit entries are retained and who can read them. Keep a current inventory of which Kubernetes service accounts, AppRole roles and certificate roles map to which applications, so that an unused role can be found and retired.

Update the runbook whenever the identity provider or OpenBao changes, including the configuration keys for each auth method, the claim and group mappings, and the contacts for both systems. Use the OpenBao releases page to find version-specific changes before you schedule a change window, and confirm each change against the documentation for the version you run. This section covers identity state only; the sibling upgrades page covers the upgrade process itself, so test identity behavior after any upgrade as a separate check.

What buyers ask before connecting OpenBao to their identity provider

How much effort does connecting OpenBao to our identity provider take?

The effort depends on how many identity sources you connect, how many groups you map to policies, and how many workload types you onboard. A single JWT/OIDC login for staff with a small group-to-policy map is far smaller than a rollout that adds LDAP, Kubernetes service accounts, AppRole for servers and certificate auth at once. The main drivers are the number of auth methods, the quality of the group structure in your identity provider, the number of policies that must be written or reviewed, and how many applications need their own roles. Ask any partner to break its estimate down by auth method and by group mapping, so you can see which items drive the total. The effort-drivers table on this page lists each driver in more detail.

Can our own team connect OpenBao to SSO without a partner?

Yes, a team with experience in OpenBao, OIDC and directory services can do this in-house, and the documentation covers the auth methods in detail. The work is mostly configuration and review rather than new software, so the real question is whether your team has someone who can own the design and the testing. Teams usually struggle with three things: getting claims or group attributes to arrive in the form the policies expect, testing failure paths such as expired sessions and removed users, and keeping the mapping current as people change roles. If those skills are missing, a fixed-scope engagement can cover the design and testing while your team keeps operational ownership.

What do we need from our identity and security teams?

Plan for your identity team to provide the identity provider configuration, the application registration or client details, the group structure and the test accounts, and for your security team to approve the policies, the MFA requirements and the audit logging approach. Identity engineers usually need to confirm which groups represent which access levels, and who is allowed to change them. Security reviewers should check which roles can read secrets, which can issue tokens and who holds administrative access. Agree on these owners before work starts, because most delays come from unanswered questions about group ownership rather than from the technical setup.

Should we use JWT/OIDC or LDAP for our people?

For most organizations with a modern identity provider, JWT/OIDC is the better fit for people because it supports browser-based login, modern MFA and token claims that map cleanly to groups. LDAP suits environments where directory groups are the source of truth and the identity provider cannot issue the claims you need, or where older tools still authenticate against the directory. Consider the following when deciding:

  • Where your groups live and how well they are maintained
  • Whether your identity provider enforces MFA before it issues the token
  • Which population uses OpenBao, such as developers, operators or service owners
  • How many systems already depend on the directory

OpenBao's documentation recommends Userpass for developer machines and AppRole for servers, so confirm that your choice fits those patterns for workloads as well.

How is MFA enforced when people sign in through SSO?

MFA is enforced either by your identity provider before it issues the login assertion or by OpenBao's login MFA feature, and the right choice depends on where your controls already live. OpenBao documents login MFA as part of its auth methods, so confirm the exact configuration and supported methods against the current documentation for your version. Whichever layer you choose, test that users without a second factor cannot obtain a token, and that a removed user loses access quickly. Avoid relying on a single control for privileged roles. Document the decision so auditors can trace how a login proves a second factor.

How should group-to-policy mapping be reviewed and maintained?

Group-to-policy mapping should be reviewed on a schedule and whenever team structures change, because stale mappings are the most common cause of excess access. Keep each policy narrow, map groups to policies rather than to individual users, and name groups so their purpose is clear to a reviewer. Store the mapping in version control where possible, so changes have an author and a reason. Ask whoever delivers the work to provide test cases for each group, including a user who should be denied, so future changes can be checked quickly.

What should we receive at the end of an SSO integration?

At the end of the work you should receive the configuration for each auth method, the group-to-policy map with its ownership record, the test results covering allowed and denied logins, and a runbook for onboarding and offboarding users and workloads. You should also get a list of the decisions made, such as why JWT/OIDC was chosen over LDAP, and the steps for rotating client secrets or certificates. Confirm before work starts that the handover includes source files, not only screenshots, and that your team can run the tests again without the partner. Those artifacts are what your compliance team will ask for later.

How DeployOpen scopes, builds and hands over OpenBao SSO

DeployOpen plans, implements, documents and supports self-hosted OpenBao inside your own infrastructure, including its identity integrations. We agree the scope in writing first, then build and test the connection between your identity provider and OpenBao so your security and compliance teams can review it.

How we scope

  • Inventory the identity provider, its group structure, MFA setup and the people and workloads that need access.
  • Agree which auth methods apply to people, Kubernetes, AppRole and certificates, and which are out of scope.
  • Set out the group-to-policy mapping, MFA requirements and test cases in a written, fixed-scope document before work starts.

How we build

  • Configure the JWT/OIDC or LDAP connection in a test environment using your identity provider's own settings.
  • Map identity groups to least-privilege OpenBao policies and verify each mapping with named test accounts.
  • Enable login MFA, workload auth methods and audit logging, then test failed logins, expired tokens and revoked access.

How we hand over

  • Deliver configuration, policy files and a runbook covering each auth method, group mapping and recovery step.
  • Walk your identity and platform teams through how to add users, groups and workloads without weakening policies.
  • Provide test results and evidence so your compliance team can review the SSO setup against its own control requirements.

How we support

  • Review the SSO configuration again when OpenBao moves to a new minor release line or your identity provider changes.
  • Retest group mappings and MFA after changes to identity provider groups, certificates or network paths.
  • Ongoing support, upgrades and continuous testing are available as a retainer, agreed in writing alongside the initial scope.

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.