OpenBao as a cert-manager issuer for Kubernetes certificates

Connect cert-manager to the OpenBao PKI engine through its Vault Issuer so Kubernetes workloads get certificates from your own CA. This page covers the sign path, CA bundle, authentication choice and mutual TLS.

On this page

How cert-manager issues Kubernetes certificates from OpenBao

A platform team that wants workload certificates from its own internal CA, rather than a public issuer, can point cert-manager at OpenBao. cert-manager's Vault Issuer calls the OpenBao PKI sign path, authenticates with AppRole, a token or a Kubernetes service account, and trusts the issuing CA through a CA bundle. cert-manager then requests a certificate for each Certificate resource and stores the result in a Kubernetes Secret that the workload mounts. The issuer is configured with the OpenBao server URL, the sign path (for example pki_int/sign/example-dot-com) and the CA bundle that lets cert-manager verify the OpenBao endpoint's TLS certificate.

The integration is the request path between Kubernetes and an existing PKI engine. It does not design the certificate authority, choose the root and intermediate hierarchy, set key types or lifetimes, define which names a role may issue, or configure the PKI secrets engine itself. Those decisions sit in OpenBao and should be made before any issuer is created. If the sign path points at a role that allows broad domains or long lifetimes, cert-manager will request them faithfully, so the policy checks belong on the OpenBao side.

Authentication is the first decision to settle. The cert-manager Vault documentation describes AppRole, a token, and Kubernetes service accounts through either the JWT/OIDC or the Kubernetes auth method. Confirm which method your OpenBao version and cert-manager release support together, and scope the OpenBao role so that only the cert-manager service account can call the sign path. If your OpenBao server requires mutual TLS, the issuer also needs a client certificate, so plan how that certificate is issued and rotated before go-live.

What you need before connecting cert-manager to OpenBao

The integration rests on four pieces that must exist before any Issuer object is written: a working OpenBao PKI signing path, a reachable server endpoint, a Kubernetes cluster with cert-manager, and an authentication identity cert-manager can use. Confirm each one in your own environment, because a failure in any of them shows up later as a stuck Certificate resource.

A running OpenBao PKI engine

Enable the PKI secrets engine on the OpenBao cluster and create a role that matches the names and key types your workloads need. Cert-manager calls the sign path of that role, so an engine that is mounted but has no role will issue nothing. Decide whether the issuing CA is a root or an intermediate and confirm the mount path, such as pki_int, before you write the Issuer.

Vault issuer docs

A reachable OpenBao server URL

The Issuer needs the HTTPS address of the OpenBao API that pods in the cluster can reach. Check routing from the cert-manager namespace, DNS resolution, egress rules and any network policy, not only access from an administrator laptop. If OpenBao runs outside the cluster, confirm the path crosses the firewall without rewriting the address.

A Kubernetes cluster with cert-manager

Confirm that cert-manager is installed and healthy in the cluster that will request certificates, and that its controller can create and read Certificate, CertificateRequest and Secret objects. Record the cert-manager version and check its compatibility with your Kubernetes version against the vendor documentation, because no version pairing is supplied here.

The CA bundle for the OpenBao endpoint

Cert-manager must trust the TLS certificate that OpenBao presents. Collect the PEM bundle for the internal CA that signed the OpenBao listener, including any intermediates, and plan how it will be stored in a Secret or ConfigMap and rotated. A wrong or missing bundle is one of the most common reasons the Issuer reports not ready.

A chosen authentication identity

Pick one way cert-manager proves its identity to OpenBao: AppRole, a token, or a Kubernetes service account through the Kubernetes or JWT/OIDC auth method. Each choice creates a different secret to store, rotate and audit. Confirm which auth method is enabled, which policy the identity receives, and that the policy allows only the sign path of the intended role.

Owners and a change record

Name who owns the OpenBao PKI role, the Kubernetes Issuer and the credential that links them. Ask your platform and security teams to agree on the certificate names and lifetimes allowed before go-live, and record the target versions of both products. Ask any partner for this checklist in writing as part of the quote scope.

Configure the OpenBao PKI role and cert-manager Vault Issuer step by step

This sequence takes an OpenBao PKI engine from an intermediate CA to a cert-manager Vault Issuer that signs a test certificate for a Kubernetes workload. Each step ends with a check you can run before moving on.

  1. Enable the PKI engine and intermediate CA

    The platform team enables the PKI secrets engine on a dedicated mount, generates or imports an intermediate CA, and sets the issuing and CRL URLs that clients will read. The intermediate should be signed by your offline or separately managed root, so the root key never sits in the cluster. Confirm the work by reading the CA certificate from the mount's CA endpoint and checking that its subject, key type and validity match your certificate policy. Keep the mount path, such as pki_int, in your configuration record because every later step refers to it.

  2. Create a signing role for the sign path

    Create a PKI role on the intermediate mount that defines which names, domains and key types cert-manager may request, along with maximum TTL and whether wildcards or IP SANs are allowed. Keep allowed domains narrow, since this role decides what the cluster can ask the CA to sign. The sign path takes the form pki_int/sign/example-dot-com, where example-dot-com is the illustrative role name. Test the role by running a sign call with a throwaway CSR for an allowed name. A signed certificate in the response confirms the role works, and a denial for a disallowed name confirms the restriction holds.

  3. Create the cert-manager auth method and policy

    Choose how cert-manager authenticates: AppRole, a token, or a Kubernetes service account through the Kubernetes or JWT/OIDC auth method. For in-cluster workloads, the Kubernetes service account option avoids storing a long-lived secret in the cluster, but it depends on the auth method being configured against your cluster's API endpoint and reviewer credentials. Write a policy that grants update capability only on the sign path for the chosen role, and nothing on the CA or role administration paths. Confirm the setup by logging in as the cert-manager identity and checking that the returned token carries only that policy.

  4. Collect the server URL and CA bundle

    Gather the address of the OpenBao API that cert-manager's controller can reach, and the CA certificate that signed the OpenBao listener, in PEM form. If the listener uses a certificate from an internal CA, the bundle must include that chain, or the issuer will fail TLS verification before authentication starts. Store the bundle in a ConfigMap or Secret in the namespace where the issuer lives, and note which kind of object you will reference. Confirm the URL and bundle with a curl request from a pod in the same namespace, using the bundle as the trusted CA.

  5. Create the Vault Issuer or ClusterIssuer

    Create a namespaced Issuer for a single team or a ClusterIssuer for shared use, and set the server URL, the PKI sign path from the earlier step, the CA bundle, and the chosen auth block. A ClusterIssuer lets any namespace request certificates, so restrict its use to the platform team unless your model allows wider access. Apply the manifest and wait for the controller to validate it. The issuer is ready when its status shows a Ready condition set to True. If it stays False, the status message usually names the failing part: the URL, the TLS trust chain, the login or the sign path.

  6. Issue a test certificate

    Create a Certificate object that references the issuer, uses a test DNS name allowed by the PKI role, and writes to a Secret in a non-production namespace. This verifies the whole path from Kubernetes through cert-manager, OpenBao authentication and the sign call. Watch the Certificate resource until its Ready condition is True, then inspect the Secret to confirm the leaf certificate chains to your intermediate CA. Record the issuance in your audit log review, and delete the test resources once the check passes so they do not become production dependencies.

Choosing AppRole, token or Kubernetes service account auth

AppRole is the method OpenBao recommends for servers, and it fits a cert-manager issuer that runs for a long time under a platform team's control. The issuer holds a role ID and a secret ID, and OpenBao exchanges them for a token that is scoped to a policy allowing signing against the PKI sign path only. The secret ID is the sensitive part, so the design question is how it reaches the cluster and how often it is replaced.

  • Secret distribution: the role ID can be stored in a Kubernetes Secret, but the secret ID must be delivered in a way that does not leave it in Git or in cluster backups in plain form.
  • Rotation: secret IDs can be given limited uses or a time limit, so you can plan a regular replacement, though cert-manager does not rotate them for you, so a runbook must.
  • Binding: AppRole binds to the role, not to a specific workload identity, so anyone who obtains the secret ID can request certificates within the policy.
  • Policy scope: restrict the policy to the single sign path and the intended PKI mount, and keep the role separate from other issuers.

Before you commit to AppRole, confirm the current AppRole options in the OpenBao auth documentation for your release, and decide who owns secret ID rotation.

Mapping issuer fields, PKI roles and policies

This table maps each cert-manager Vault Issuer field and Certificate spec field to the OpenBao object it depends on, such as the PKI mount, sign role, policy or auth role. Read it top to bottom when building the issuer, then confirm every exact field name against the cert-manager Vault documentation before you apply manifests. The main takeaway is that the Issuer, the PKI role and the OpenBao policy must agree on the same path and identity, or issuance fails in ways that are easy to misread.

Field or objectWhere it livesWhat to confirm
Server URLIssuer spec (cert-manager)Points at the OpenBao API address reachable from the cert-manager pod, including the TLS name the server certificate carries
PKI sign pathIssuer spec, for example pki_int/sign/example-dot-comMatches the intermediate PKI mount and the sign role name exactly, with no trailing slash differences
CA bundleIssuer spec (base64 PEM)Contains the root or chain that signed the OpenBao listener certificate, so cert-manager can verify the API
Auth methodIssuer spec (AppRole, token, Kubernetes or JWT/OIDC)Chosen per cluster; Kubernetes service account auth is typically preferred over a long-lived token
Auth role and bound identityOpenBao auth role bound to the cert-manager service account or AppRole IDBound namespace and service account name match the cert-manager deployment, not a generic admin identity
Policy capabilitiesOpenBao policy attached to the auth roleGrants update on the sign path only, with no read on the CA private key or on other mounts
Sign role allowed domainsPKI role (allowed_domains, allow_subdomains)Covers only the DNS names issuers may sign, mirroring the dNSNames in Certificate specs
Certificate TTLPKI role (max_ttl, ttl) and Certificate spec durationCertificate duration cannot exceed the role limit, so set the role limit first and confirm the renewal window
Mutual TLS serversClient-side CA bundle and server TLS settingsConfirm how cert-manager presents client material to an OpenBao listener that enforces client certificates

How a certificate request flows from cert-manager to OpenBao

The flow starts with a Certificate resource that cert-manager's controller picks up and hands to a Vault Issuer. The issuer authenticates to OpenBao using the method you chose, then calls the PKI sign path with the certificate signing request. The signed certificate returns to the cluster and is stored in a Kubernetes Secret. Check two things at the boundary: that the issuer trusts the OpenBao endpoint through the CA bundle, and that the auth role is scoped tightly enough to sign only the certificates this issuer should issue.

Certificate request path from the Kubernetes resource to the signed TLS Secret.

Connecting to an OpenBao server that enforces mutual TLS

When the OpenBao listener requires client certificates, the cert-manager Vault Issuer must do two things before it can request a certificate: present a client certificate and private key that OpenBao accepts, and trust the CA that signed the OpenBao server certificate. cert-manager's Vault documentation covers this access pattern, but the certificate material itself is yours to produce. Decide first which CA signs the client certificate. In most designs that is a separate internal CA, not the PKI engine that issues workload certificates, so that a compromised issuer identity cannot be used to mint new client credentials for itself. Confirm the TLS settings of your OpenBao listener, including whether it requires and verifies client certificates, before you choose the signing CA.

Store the client certificate, its key and the server CA bundle as Kubernetes Secrets in the namespace where the cert-manager issuer or ClusterIssuer resolves them, and reference them from the Vault issuer configuration. Keep the private key out of ConfigMaps and out of source control. Kubernetes stores Secrets unencrypted in etcd by default, so confirm that encryption at rest is enabled for your cluster and that RBAC restricts who can read these Secrets, as the Kubernetes Secrets good practices guidance describes. Limit read access to the cert-manager controller's service account and to the platform team that manages the issuer.

Plan rotation for the client certificate and the CA bundle together. A rotated server CA that is not yet in the trust bundle, or a client certificate that expires before its replacement is deployed, will stop all certificate issuance from that issuer at once, and cert-manager will report the failure on the Certificate resources rather than on the OpenBao side. Use a renewal window longer than your deployment pipeline needs, rehearse the swap in a non-production cluster, and add an alert on the expiry date of each Secret. Confirm with your OpenBao operators which client certificate lifetime and CA rotation procedure they support before you set the schedule.

Securing the issuer, the PKI role and the Kubernetes secrets

A cert-manager Vault issuer is only as safe as the credentials it holds and the PKI role it can use. The four cards below cover the OpenBao side (the policy, the PKI role and the AppRole secret ID), the Kubernetes side (who can read the issuer's credentials) and the cluster storage that holds them.

Scope the policy to the sign path

Give the cert-manager identity a policy that allows only update on the PKI sign path it needs, such as pki_int/sign/example-dot-com, and nothing else. A policy that also reads the CA, issues arbitrary certificates or touches the PKI mount configuration lets a compromised pod mint certificates for any name the role permits. Review the policy with bao policy read after each change and confirm the path matches the role cert-manager references.

OpenBao auth docs

Constrain the PKI role

The PKI role is the real guardrail. Set allowed_domains with allow_subdomains only where needed, keep allow_any_name and allow_wildcard_certificates off unless you have a reason, and set max_ttl to the shortest lifetime your workloads tolerate. Ask the PKI owner to confirm these values in writing, because cert-manager will request whatever the role accepts.

Protect the AppRole secret ID

If cert-manager authenticates with AppRole, the secret ID is the credential that matters. Bind the role to trusted CIDR ranges where possible, set a limited number of secret ID uses, and keep the value in a Kubernetes Secret that only the cert-manager namespace can read. Plan a rotation step for the secret ID, since a leaked value stays valid until it is revoked or used up.

Limit RBAC on Issuer and Secret objects

Anyone who can read the Secret holding the token or secret ID can act as the issuer. Grant get, list and watch on Secret objects only to the cert-manager controller's service account, and restrict who can create or edit Issuer and ClusterIssuer objects, since those objects choose the server URL and CA bundle. Verify the grants with kubectl auth can-i for each service account that should not have access.

Encrypt Secrets at rest in etcd

Kubernetes stores Secrets unencrypted in etcd by default, so any reader of an etcd snapshot or the datastore can recover the AppRole secret ID or token. Configure encryption at rest on the kube-apiserver, back up the encryption configuration securely, and confirm that etcd snapshots are protected the same way as the Secrets they contain. Ask your platform team to show evidence of this setting on each cluster.

Kubernetes Secrets practices

Common cert-manager to OpenBao failures and fixes

This table lists the failures teams most often hit when cert-manager requests certificates from an OpenBao PKI engine, with the usual cause and fix for each. Use it as a first-pass checklist when an Issuer or Certificate stays in a not-ready state. Check the CA bundle and auth path first, since they break most setups.

FailureLikely causeFix
Unknown authority errors when cert-manager calls OpenBaoThe CA bundle in the Vault Issuer is missing, is from a different CA than the one serving the OpenBao listener, or is truncatedCopy the CA certificate that signed the OpenBao listener certificate into the issuer's CA bundle field, then confirm the chain with a test request from the cert-manager pod
Permission denied on the sign pathThe token or auth role lacks an update capability on the PKI sign path, or the sign path name in the issuer does not match the mounted engineCompare the issuer's sign path with the mount and role names, then grant the policy update capability on that exact path
Wrong auth role or unbound service accountThe Kubernetes auth role's bound service account name or namespace does not match the account cert-manager runs under, or the role points to the wrong mountCheck the role's bound names and namespaces against the cert-manager service account, and confirm the issuer names the same auth mount path
Expired token or secret IDA periodic or short-lived token was not renewed, or the AppRole secret ID reached its expiry or use limitUse a renewable token or a Kubernetes service account path, and set a secret ID rotation process with a documented owner
Mutual TLS handshake failuresThe issuer lacks the client certificate or key the OpenBao listener requires, or the client certificate was signed by a CA the server does not trustSupply the client certificate and key cert-manager should present, and confirm the server trusts the CA that signed that client certificate
Sign role rejects requested domainsThe PKI role's allowed domains, subdomain settings or wildcard options do not cover the names in the Certificate resourceAlign the role's allowed domains with the dnsNames in the Certificate, or create a separate role for the namespace that needs those names

Questions buyers ask before connecting cert-manager to OpenBao

What drives the cost of connecting cert-manager to OpenBao?

The main cost driver is how much of the chain is new to your team: the OpenBao PKI engine, the sign path, the cert-manager Vault Issuer, the authentication method and the rollout across clusters. Costs split into one-time work (design, PKI decisions, configuration, testing and handover) and recurring work (CA rotation, cert-manager and OpenBao upgrades, and monitoring of issuance). If you hire a partner, the quote should list each of these as a line item tied to the written scope. Ask what is included for each cluster and each issuer, whether testing of certificate renewal and mutual TLS is counted, and who maintains the runbooks afterward. No price is given here because the cost depends on your environment and scope.

How long does an OpenBao cert-manager integration take?

Duration depends mostly on two things: which authentication method you choose and how ready your PKI design is. A token or AppRole setup is usually simpler to stand up than a Kubernetes service account setup that must be designed across clusters, but every method still needs a tested renewal path before production. If the intermediate CA, role names, allowed domains and TTLs are already decided, the work moves quickly. If CA hierarchy and rotation are still open, schedule time for those decisions first. No timeline is given here, so ask a partner to tie the schedule to your chosen auth method and the number of clusters in the written scope.

What must our team provide before the work starts?

You need to provide access to the target clusters with rights to create cert-manager resources, access to the OpenBao cluster and its PKI mount, and a named owner for each decision. The main decisions are the PKI mount layout (for example, an intermediate CA signed by an offline or separately managed root), the sign path and role names, allowed domains, certificate lifetimes, and the CA bundle that cert-manager will trust. You also need an owner for CA rotation, who approves changes and who receives alerts when issuance fails. Without these owners, the integration tends to work at launch and stall at the first rotation.

Can our internal team set this up without a partner?

Yes, if you have engineers who know Kubernetes, OpenBao and PKI. The cert-manager Vault documentation covers the issuer configuration, the sign path, the CA bundle and the supported authentication options, so a capable team can follow it. The harder parts are the ones the documentation cannot decide for you: the CA hierarchy, issuance policy, mutual TLS on the servers that call OpenBao, and the rotation runbook. Teams that build alone should test certificate renewal, a CA bundle change and a failed authentication before go-live. A partner is most useful when the scope spans several clusters, a formal review or a fixed deadline.

Is OpenBao API compatible with Vault, so Vault guidance applies?

OpenBao states that it intends to remain API compatible with HashiCorp Vault, so most existing tooling for Vault should also work with OpenBao. That is why the cert-manager Vault Issuer documentation is the natural starting point. Confirm the details for your version rather than assuming them, though. Check the cert-manager release you run, the OpenBao version you deploy (the current lines include v2.7.x and v2.6.x) and any Vault-specific feature you depend on. The OpenBao related tools page lists the compatibility position for each tool. Test the complete flow in a non-production cluster before you rely on it.

What does a fixed-scope DeployOpen engagement cover for this integration?

A fixed-scope engagement is agreed in writing before work starts. For this integration, the scope typically names the clusters, the authentication method, the PKI mount and sign path, the CA bundle handling, the mutual TLS requirements for servers, the test cases, the handover documents and any retainer for later support. DeployOpen plans, implements, documents and supports self-hosted platforms in your own infrastructure, so the work runs in your clusters and your OpenBao environment. Deliverables and timelines are set out in the scope, and a quote follows from that document. DeployOpen does not issue audit reports or certifications for the resulting setup.

Which authentication method should we ask for in a quote?

Ask for the method that matches your operating model, and ask the provider to explain the trade-off. cert-manager supports AppRole, a token, and Kubernetes service accounts through either the JWT/OIDC or the Kubernetes auth method. Kubernetes service account auth avoids a long-lived secret in the cluster but needs role bindings per namespace and service account. AppRole needs a secret ID delivered and rotated safely. Ask the quote to state how the secret or token is stored, how it rotates, and what happens when a cluster is rebuilt. Also ask how mutual TLS to OpenBao is configured if your servers require client certificates.

How DeployOpen scopes and delivers this integration

DeployOpen delivers this integration as a fixed-scope engagement, so the scope is agreed in writing before any work starts. The written scope names the PKI design on the OpenBao side (mount layout, the role that cert-manager signs through, the pki_int/sign/example-dot-com style sign path, and the CA bundle cert-manager trusts), the authentication choice (AppRole, token, or Kubernetes service account through the Kubernetes or JWT/OIDC method), the cert-manager Issuer or ClusterIssuer configuration, any mutual TLS requirement on the OpenBao listener, the test plan and the handover. Each of those items has a named owner on your side, such as the platform team for the cluster and the security team for the CA hierarchy. The quote follows from that scope: it changes when the number of clusters, issuers, auth methods or mutual TLS endpoints changes, so ask the vendor to price each of those separately.

Some of the work supports reviews that your own compliance team runs. DeployOpen prepares the controls and evidence for those reviews, such as documented issuance paths, role definitions, configuration exports and test results. DeployOpen does not issue audit reports, attestations or certifications, and an independent auditor or certification body makes that determination. Confirm early which evidence your auditor expects, since that changes what the handover package must contain.

After handover, certificate issuance keeps running on your clusters, and upgrades to OpenBao, cert-manager and Kubernetes still need planned work. DeployOpen offers retainers for upgrades, ongoing support and periodic testing of the issuer path. Ask for the retainer scope in writing and check which version lines it covers, since Kubernetes and OpenBao release on their own schedules and each upgrade can change the auth or TLS configuration that this integration relies on.

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.