Auditing an OpenBao PKI mount with bao pki health-check: when the review is worth running
Run bao pki health-check when you need a point-in-time check of a root or intermediate PKI mount. It reads the mount's current state and reports on it, which makes it one input to a PKI review, not a replacement for one. Teams that have run an internal CA on OpenBao for a while often have several mounts, issuers and roles, each created by a different person at a different time, and nobody holds a complete picture of them. A health check gives that picture a fixed starting point that can be compared against later.
The command is most useful at four moments. Before go-live, it confirms that a newly built hierarchy looks the way the design says it should. After an OpenBao upgrade, it helps show whether the mounts behaved the same way before and after the change. Before a CA rotation, it establishes the state you are rotating from, so you can tell later whether a problem came from the rotation or was already there. On a schedule, it catches drift, such as a mount whose configuration changed without a ticket. Confirm the exact checks the command performs for your OpenBao version against the current documentation before you build a schedule around them.
The command does not issue or revoke certificates, and it does not change mount configuration. It also does not prove that your issuance practices meet your policy or any external framework. A clean result means the mount's state matched what the tool checks, nothing more. Whether the roles, key types, issuer names and TTLs are the ones your policy requires is a separate question that a person with the policy in hand must answer.
How a health check fits into a recurring PKI review
The review starts on an operator workstation or CI job that holds a scoped token and a health configuration file. The health check calls the OpenBao cluster API, which reads the mount's issuers and roles, and the output is saved as a result. That result then feeds a review record, and any findings become remediation tickets. The trust boundaries to check are the operator token, the cluster API, and the store where results and config files live, since each one can expose or alter PKI state.
Health check flow from operator token through the cluster to review records and tickets.
Health check options and when each fits
This table compares a one-off manual run, a scheduled job that stores output for each mount, and a run tied to change events such as a new issuer, a CA rotation or a cluster upgrade. Read each row as a decision: who runs the check, what token and configuration it needs, where results go and what you give up by choosing that option. Confirm exact flags, output formats and config file keys with bao pki health-check -h and the OpenBao PKI documentation for your installed version before you write any job.
| Option | One-off manual run | Scheduled job per mount | Change-event run |
|---|---|---|---|
| Who runs it | A reviewer or PKI owner during an audit or assessment | A platform or automation account, with a named owner for failures | The team making the change, as a gate in the change procedure |
| Token and configuration | An operator token with the read and health permissions the mount needs, plus a health configuration file if one is used | A dedicated, least-privilege token per mount, stored in your secrets process and rotated on schedule | The same scoped token, pointed at the mount affected by the change |
| Mount paths | Typed by hand, so confirm the namespace and mount path for each root and intermediate | Generated from an inventory of mounts, including namespaced paths | Limited to the mount named in the change ticket, which can miss dependent mounts |
| Where output goes | Terminal or a saved file attached to the review record | Stored output with timestamps in a log store or evidence folder, kept for the review period | Attached to the change record and linked from the rollback plan |
| Coverage of drift | Snapshot only, reflecting the moment of the review | Regular snapshots, so configuration drift between reviews is visible | Covers the specific change, not unrelated drift elsewhere |
| Main trade-off | Low setup effort, but findings age quickly and depend on the reviewer's diligence | Steady evidence with a recurring maintenance cost for tokens, paths and alert handling | Catches problems at the moment they are introduced, but gaps appear when changes bypass the process |
| Choose it when | You are preparing for an assessment or an internal review of an existing CA | You operate several mounts and need a continuous record of their state | You are adding an issuer, rotating a CA or upgrading a cluster that serves PKI |
Running bao pki health-check against a root or intermediate mount
This sequence confirms the OpenBao version and mount layout, grants a narrow read-only token, prepares a health configuration, runs the check against the root and each intermediate, and saves the output as an audit record. Each step ends with a check so the reviewer knows the run covered every issuer and role.
Confirm the OpenBao version and PKI mount path
The platform engineer running the review records the OpenBao server version from the cluster and confirms it matches the version the team intends to audit against. Next, they list the mounts and confirm the root and intermediate PKI mounts exist at the expected paths, including any namespace prefix if the PKI engines live inside a namespace. Confirm the exact version and mount-listing commands and flags in the OpenBao CLI reference for your release. The step is done when the recorded version and every expected mount path appear in the output and match your inventory.
Create a dedicated read-only policy for the check
The security or PKI owner creates a policy that grants only the capabilities the health check needs on the target PKI mounts, and nothing on key material, issuance or secret data. Keep the policy scoped to the specific mount paths and namespace rather than a wildcard. Confirm the exact capability list against the command help for bao pki health-check and the OpenBao PKI documentation before writing the policy, because the required set depends on the release. The step is done when the policy file is stored in version control and a test read on each mount succeeds while a write attempt is denied.
Issue a short-lived token for the check
The operator creates a token bound to the dedicated policy with a short time-to-live and a limited number of uses where the auth method allows it, so the credential expires soon after the review ends. Avoid running the check with a root token or a long-lived administrative token. Confirm the token creation flags, including TTL and use limits, in the OpenBao token documentation for your version. The step is done when the token lookup shows the expected policy attached and the expiry time is what you set.
Prepare the health configuration file
The operator writes the health configuration file that tells the check which settings to apply to the mount, such as the thresholds and checks the team wants evaluated. Store the file in version control so the same settings are used in every review and changes appear in history. Confirm the configuration keys and file format from the command help or PKI documentation for your release, since the supported options depend on the version. The step is done when the file parses without errors and a dry run on a non-production mount reports the expected settings back.
Run the check against the root mount
Using the short-lived token, the operator runs bao pki health-check against the root PKI mount with the health configuration file, using the mount path including any namespace prefix. Note the start time, the token identity used and the configuration file version. Confirm the exact subcommand, path argument and configuration flag in the command help for your release. The step is done when the output lists the root mount's issuers and roles, and the check completes without a permission error on any read.
Run the check against each intermediate mount
The operator repeats the check for every intermediate PKI mount in the hierarchy, one at a time, using the same token and configuration file so the results are comparable. Compare each output against the inventory of issuers and roles the team expects on that mount. Any issuer or role that appears in the inventory but not in the output, or the reverse, is recorded as a finding for follow-up. The step is done when every intermediate mount in the inventory has a result and the issuer and role counts match what the team expects.
Save the output and schedule the recurring review
The operator saves each run's output with the OpenBao version, mount paths, configuration file revision, token policy name and date in a restricted evidence location, and revokes the short-lived token once the runs finish. The PKI owner then schedules the review at an interval the organization sets, and assigns someone to compare each run against the previous one. Confirm that revoking the token succeeds and that a later read with it fails. The step is done when the saved output is retrievable, the token no longer authenticates, and the next review has a named owner and date.
Namespaced mount paths and token permissions by environment
On a single-tenant cluster, the PKI mounts sit in the root namespace, so the check addresses each mount directly by its mount name. For illustration, a root mount named pki-root and an intermediate named pki-int are checked with no namespace prefix. This is the simplest case, and it is also where teams most often reuse the root token out of convenience, which gives the health check far more reach than it needs.
- Mount path: Use the mount name exactly as it was created, with no namespace prefix, and confirm the name against your mount list before the run.
- Dedicated token: Create a token or policy that allows read access only to the mount paths being checked, and do not use the root token.
- Per-run scope: If root and intermediate mounts are checked in one pass, confirm in the command reference whether one token covers both or whether each mount needs its own.
- Short lifetime: Issue the token with a short time to live and revoke it when the review ends.
Before relying on the token, confirm it can read the target mount and is refused on an unrelated path, such as a secrets mount in the same cluster.
OpenBao namespaces provide multi-tenant isolation within one cluster, so a PKI mount owned by a business unit or tenant lives inside that tenant's namespace. The check must run from the namespace that owns the mount, or it will look in the wrong place or fail. Confirm the exact path syntax for namespaced mounts against the OpenBao namespaces documentation before you script the run, and test it against one mount first.
- Owning namespace: Target the namespace that owns the mount, so the lookup stays inside that tenant's boundary.
- Token location: Issue the review token inside the tenant namespace. Do not assume a token from the root namespace reaches tenant mounts without checking how permissions are inherited in the docs.
- Tenant isolation: A review token for one tenant should not be able to read another tenant's PKI. Test this with a path from a different namespace.
- Run record: Log the namespace and mount for every run, so each result maps back to the business unit that owns the CA.
After the first run, compare the reported mount and issuer against the certificates that tenant actually serves to confirm the check reached the intended CA.
In a multi-cluster or disaster recovery design, each cluster holds its own mounts, namespaces and tokens, and the cluster that currently issues certificates is the one that matters for the review. A DR cluster may hold a copy of the configuration but serve different traffic after a failover, so the check must target whichever cluster is active. Read the OpenBao high availability documentation to confirm how standby nodes forward or redirect requests before you point the check at a node.
- Active cluster: Point the check at the cluster that issues certificates, and confirm which one that is before each review.
- Separate tokens: Create tokens in each cluster independently, since a token from one cluster does not serve another.
- Namespace parity: Compare namespace and mount layouts across primary and DR clusters, because a mismatch changes the path the check must use.
- Failover record: Note which cluster, namespace and mount the check used before and after a failover, so the review reflects the CA in service.
After any failover or namespace change, rerun the check against the cluster that now serves issuance and confirm the results match the active mounts.
What the health check reads from a mount and what it cannot tell you
A clean bao pki health-check report tells you that the mount passed the specific checks the tool runs against its current state. It does not tell you that the certificate authority was designed well. Before you rely on the output, confirm the list of categories it actually examines by reading the command help and the health-check documentation for the OpenBao version you run. The categories that matter for a root or intermediate mount are the ones a reviewer would ask about by hand: whether the mount has issuers at all, which issuer is the default, whether each issuer's key and certificate are present and inside their validity windows, whether the roles that point at the mount still reference issuers that exist, and whether an intermediate's chain to its parent is complete. Write these down as your own review checklist, then map each one to the output lines the tool prints so you know what a pass means.
The gap is in the questions the tool was never asked to answer. It will not decide whether a role should exist, whether a given key type is acceptable to your risk owners, whether a TTL matches your revocation policy, or whether a role's allowed names, usages and domains reflect what the business intends to issue. A report can be entirely green while a role grants wildcard issuance that nobody approved, or while the root has been used to sign leaves that should have come from an intermediate. Those are design decisions, and they belong in a document that names an owner for each role and each issuer. The health check verifies that the mount is consistent with itself; the design review verifies that the mount is consistent with the CA policy.
Treat the report as one input to a recurring PKI review, not as its conclusion. Store each run's output alongside the mount configuration, the issuer list and the role list, so a reviewer can see what changed between reviews. Ask the review to answer the design questions explicitly for every role and issuer, and record who accepted each answer. If a finding cannot be resolved by a configuration change, such as a key type or a validity period set by policy, the review should record the decision and its date, not leave the warning to be dismissed silently on the next run.
Security risks in the health-check token, config files and output
The health check reads a PKI mount's configuration, issuers and roles, so it touches sensitive material even though it changes nothing. The risks below connect through one question: who can run the check, what they can see while running it, and what they keep afterward. Each card names a control you can confirm in your own environment before the first recurring review.
Over-broad tokens reused from admin work
Operators often run the health check with the token they already use for day-to-day administration, which may carry rights to issue, revoke or change policy on the mount. Create a dedicated policy that grants read access only to the paths the check needs, and confirm the exact paths against the health-check documentation for your OpenBao version. Issue the token with a short time to live, and check that it cannot write to the mount it is auditing.
OpenBao auth docsHealth config files holding environment detail
A health configuration file can name mount paths, namespaces, expected issuers and internal hostnames, which together map your CA layout for an attacker. Keep the file in version control, require review for changes, and avoid embedding any credential in it. Ask whether the file contains anything beyond what the check requires, and remove it from workstations after each run.
Output exposing issuers, serials and role logic
Check output can reveal issuer names, certificate serial numbers and the logic behind role constraints to people who should only see pass or fail results. Treat the output as sensitive, restrict who can open stored reports, and consider a summary for wider distribution that omits serials and role details. Confirm which fields the check prints at your version before sharing any report.
Running against the wrong mount or namespace
In a multi-tenant cluster, a path that looks similar can point at a different namespace or at an intermediate that is not the one under review. The result then looks valid but describes the wrong CA. Before each run, record the full namespaced mount path in the review ticket, and confirm the target with a read of the mount's configuration. Namespaces are a documented isolation boundary, so an operator should not assume a shorter path is equivalent.
OpenBao namespaces docsResults stored without integrity or retention
Reports saved to a shared folder can be edited, lost or kept indefinitely with no owner. Store each report in a location with restricted write access, and record who ran the check, the date, the OpenBao version and the target path alongside it. Set a retention period that your audit and records policy requires, and confirm with your compliance lead which evidence must be kept and for how long.
Turning health results into a recurring PKI review
A health-check run is only evidence if the organization turns its output into a review that happens on a schedule, has a named owner and leaves a record. Start by setting the review cadence yourself, based on how often your PKI changes and what your internal audit function expects. Assign one named owner per mount, covering each root and intermediate mount you audit, and record who holds that role in your configuration management or service catalog. Keep the raw output of each bao pki health-check run with the review record, so a reviewer can see what the tool reported before anyone interpreted it.
Record each finding in a template with a fixed set of fields: the mount path, the check that flagged it, the severity as your team defines it, the decision taken (fix, accept with a stated reason, or defer), the owner, a link to the change record that carries the fix, and the date it was closed. Severity scales are yours to define, so write them down and apply them the same way across mounts. A finding that appears in two consecutive reviews should be escalated to whoever owns the CA program, with the decision reopened rather than carried forward silently. Keep the completed templates, run outputs and change links in a location with retention and access controls, since internal audit will want to trace a finding from detection to closure.
Some events should trigger an unscheduled review regardless of the calendar. Examples include an OpenBao upgrade, a CA rotation or cross-signing exercise, a change to the issuance roles or policies on a mount, a change to the health configuration file, and a change in the token or policy used to run the check. Confirm the upgrade notes for your target release before scheduling, since behavior changes can alter what the health check reports. Use the same template for these reviews so their evidence sits alongside the scheduled ones and can be compared over time.
Limits to confirm before you rely on the health check
The health check is only as useful as the assumptions behind it. Each card below names a limit you should confirm against the exact OpenBao version, mount layout and issuer setup you run, using the project docs, the release notes or your own test mount before the results feed a recurring review.
Version that introduced the command
Confirm which OpenBao release first shipped bao pki health-check and which checks that release runs. The project's release notes on GitHub are the place to start, and the check list may differ between minor lines. Run the command on a non-production copy of your PKI mount and record the version next to every review, so a result is never read against a check set it did not run.
Mount types and namespace layouts
Ask whether the command accepts every PKI mount you operate, including root and intermediate mounts with non-default paths and mounts inside namespaces. Test the exact namespace path format your environment uses, since a path that works at the root namespace may fail or resolve to the wrong mount under a nested namespace. Record any mount that is skipped or errors rather than assuming it passed.
Namespaces docsCross-signed and multi-issuer mounts
Confirm how the check reports a mount that holds several issuers, cross-signed intermediates or an issuer marked as default. Validate that the check evaluates each issuer you expect and does not report on only the default one. Build a test mount with a rotation in progress, then compare the output with issuers you listed by hand, because a healthy-looking summary can hide a stale or unused issuer.
Output format and parsing stability
Decide whether the output is for people or for automation before you write a parser around it. Ask the project whether the human-readable and any structured output formats are covered by a compatibility promise, and whether field names may change between minor releases. Pin your parser to one tested version and rerun the parser test whenever you upgrade OpenBao.
Performance on large mounts
Ask how run time and memory grow with the number of issuers, roles and stored certificates on a mount. A check that finishes quickly on a small lab mount may take much longer on a production CA that has issued many certificates. Measure run time on a copy of your largest mount, and schedule the check outside peak issuance windows if it adds load to the cluster.
Post-quantum and ML-DSA issuers
Confirm whether the check evaluates ML-DSA (FIPS 204) issuers and certificates in the same way it evaluates classical key types, including signature algorithm and key checks. Ask the project which post-quantum checks are covered in your version, and test an ML-DSA issuer in a lab mount before you treat its result as complete. Where coverage is partial, keep a separate manual review for those issuers.
Namespaces docsWhat a PKI health review costs and who runs it
What does a PKI health review cost and who gets paid for it?
The cost is set by the written scope, and DeployOpen does not publish a price list, so a quote follows from the scope agreed before work starts. Buyers pay for three components: the review itself (reading mount configuration, running the health check against each root and intermediate mount, and writing findings), the remediation work if they want fixes made, and any recurring retest or retainer. Only the review and remediation are one-time work; a recurring review cadence adds cost each cycle. Ask the vendor to price each component separately so you can see what you are buying.
What drives the cost of a PKI health review up or down?
The main drivers are the number of mounts, namespaces, issuers and roles, because each one adds configuration to read and results to explain. Cross-signed or multi-issuer mounts, custom CEL issuance policies and any ML-DSA issuers add analysis. The state of existing documentation matters just as much: a team with a current CA hierarchy diagram, role inventory and change log gives the reviewer far less to reconstruct. Ask for an itemized quote that lists the mounts, namespaces and roles in scope.
Can our own team run bao pki health-check without outside help?
Yes, a team with OpenBao operators who understand PKI can run the command against its own mounts. The command needs token permissions that allow it to read the mount, and it needs a health configuration file for the checks you want. The harder part is interpreting results, deciding which findings matter for your CA hierarchy, and turning them into a recurring review with owners. Confirm the exact permissions and flags against the OpenBao documentation for your version before you grant anything.
What does the review need from our side?
Plan for four inputs before the review starts:
- Read access to the cluster, including the namespaces that hold PKI mounts, through a token scoped for the review
- A test or staging cluster on the same OpenBao version, so any change can be tried before production
- Named owners for each root and intermediate mount who can answer questions about issuance and rotation
- Change records for recent CA, role and policy changes, so findings can be traced to decisions
Ask the vendor to list these inputs in the written scope, with a named contact for each.
How long does the first PKI health review take?
No duration is given here because the time depends on the scope and the environment. The main drivers are the number of mounts and namespaces, how many roles and issuers exist, how complete the existing documentation is, and how quickly your owners answer questions. A first review usually takes longer than later ones because the team builds the baseline. Ask the vendor for a timeline in the written scope that separates the review, the findings readout and any retest.
Does a PKI health check replace a compliance audit?
No. A health check reviews the configuration and operating state of your OpenBao PKI and produces evidence your team can use, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies perform those assessments. Ask the vendor to confirm in writing which artifacts the review delivers, so your compliance lead knows what can be handed to an auditor.
What should we recheck after an OpenBao upgrade?
Re-run the health check after any minor or patch upgrade, and read the release notes for changes to PKI behavior before the upgrade reaches production. Confirm that the health configuration still matches the checks your version supports, that token permissions still work, and that any mounts using newer features behave as documented. Test the upgrade and the post-upgrade check on a staging cluster first, and record the results in your change log.
How DeployOpen scopes and delivers a PKI health review
DeployOpen approaches a bao pki health-check review as a fixed-scope piece of work: we agree which root and intermediate mounts are covered, the token permissions and health configuration they need, and the written deliverables before any check runs. The output is a findings report, the configuration changes that follow from it, and a recurring review your team can run after handover.
How we scope
- Inventory every root and intermediate PKI mount, including namespaced paths, before agreeing which ones the review covers.
- Confirm the token policy and permissions the health check will use, and record who approves that access in writing.
- Agree in writing the health configuration files, the output formats expected, and the findings report your review board will read.
How we build
- Prepare the health configuration files for each mount and run bao pki health-check against a copy of the setup where agreed.
- Test the results against your issuer, role and CRL settings, and record each warning with its cause and suggested fix.
- Document the run steps so the same check can be repeated with the same inputs and compared against the previous run.
How we hand over
- Deliver a findings report that separates configuration defects from items that need a policy decision by your team.
- Provide the health check runbook, the scheduled review checklist and the file layout used for each mount.
- Walk your security and platform engineers through the results and the retest plan so ownership of each finding is clear.
How we support
- Retest agreed fixes after your team applies them and confirm each finding is closed or documented as accepted.
- Ongoing support, upgrades and continuous testing are available as a retainer for PKI reviews that run on a schedule.
- Ask for the support scope, response arrangements and retest terms in the written quote before work starts.

