Kubernetes & cert-manager
Policy, approvals, and audit for cert-manager
cert-manager automates certificate issuance and renewal, but it doesn't control who can request what. CertGov's open-source cert-manager external issuer checks every certificate request against your policy, routes it for human approval when needed, and records it in an audit trail. Your workloads keep using cert-manager; only the issuer changes.
Updated
Only the certificate signing request (CSR) leaves the cluster. Private keys never do.
What the issuer adds to cert-manager
Domain Trust Profiles
Define which CAs, SANs, and wildcard patterns are allowed for each domain, in one place outside the cluster.
Enforcement before issuance
Requests that don't match a Trust Profile are denied before they reach a CA, so a stray manifest can't get a certificate for *.production.example.com.
Human approvals
Route sensitive requests to an approver. The request waits in CertGov's approval queue and the issuer picks up the result automatically.
Audit trail
Every request, approval, and renewal is logged with actor, timestamp, and outcome in CertGov's hash-chained audit log.
Quick start
You need Kubernetes 1.24+, cert-manager v1.14+, and a CertGov account with a Domain Trust Profile covering the domains your workloads will request.
The Kubernetes resources keep the project's original certforge names.
1. Install the issuer with Helm
This example uses an API token with the enroll and read scopes, created in CertGov under Settings → API Keys.
helm install certforge-issuer oci://ghcr.io/certforge-llc/charts/certforge-issuer \
--namespace certforge-system \
--create-namespace \
--set certforge.url=https://app.certgov.app \
--set certforge.token=<your-api-token>
2. Create a cluster issuer
Helm stores the token in the certforge-credentials Secret in certforge-system.
apiVersion: certforge.io/v1alpha1
kind: CertForgeClusterIssuer
metadata:
name: certforge
spec:
url: https://app.certgov.app
authSecretRef:
name: certforge-credentials
3. Point a Certificate at it
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: my-cert
namespace: default
spec:
secretName: my-cert-tls
dnsNames:
- my-service.example.com
issuerRef:
name: certforge
kind: CertForgeClusterIssuer
group: certforge.io
Approve requests on the Kubernetes side
cert-manager only auto-approves requests for its built-in issuers. For production, install
cert-manager approver-policy
with a policy that targets certforge.io. CertGov already enforces domain policy, so this rule only needs to unblock the approval gate. See how approvals work below.
The full guide, including mTLS enrollment, troubleshooting, and the spec reference, is in the certforge-issuer repository.
How approvals work with cert-manager
A certificate request passes two gates: cert-manager's own approval check inside Kubernetes, then CertGov's policy and, if your Domain Trust Profile requires it, a human approver. Here is what happens at each step, and what you'll see in the cluster.
1. A workload requests a certificate
cert-manager sees a new or renewing Certificate, generates the private key inside the cluster,
and creates a CertificateRequest containing the CSR, addressed to the certforge.io issuer.
2. Kubernetes approves the request
cert-manager only auto-approves requests for its built-in issuers, so until something sets the
Approved condition, the request waits and the APPROVED column stays empty.
For production, install cert-manager approver-policy and apply a policy that approves requests for certforge.io.
CertGov enforces the real domain policy, so this rule only needs to open the gate:
helm repo add jetstack https://charts.jetstack.io && helm repo update
helm upgrade cert-manager-approver-policy jetstack/cert-manager-approver-policy \
--install --namespace cert-manager --wait
# approver-policy replaces cert-manager's built-in approver
helm upgrade cert-manager jetstack/cert-manager \
--namespace cert-manager --reuse-values \
--set disableAutoApproval=true
kubectl apply -f https://raw.githubusercontent.com/CertForge-LLC/certforge-issuer/main/config/samples/approver-policy.yaml
The disableAutoApproval setting needs cert-manager v1.15 or later; on older versions, use --set extraArgs={--controllers=*\,-certificaterequests-approver} instead. The sample policy approves any request for a certforge.io issuer, and includes
namespace-scoped and domain-scoped variants you can switch to. For a quick local test, approve by hand with
cmctl approve <name> -n <namespace>.
3. CertGov checks the request against policy
Once approved in Kubernetes, the issuer sends the CSR (never the private key) to CertGov, which matches the requested
names against your Domain Trust Profiles. If no profile covers them, the request is marked InvalidRequest with
reason PolicyViolation and nothing is sent to a CA. If the profile allows automatic approval, the certificate is issued immediately.
4. A person approves or denies it, when policy requires
For profiles that require human approval, the request waits in CertGov's approval queue and approvers are notified in
Slack, Microsoft Teams, Webex, Zoom, or email. Meanwhile the request shows Ready=False with reason
Pending, and the issuer checks for a decision every 15 seconds. Waiting here is expected, not an error.
5. The certificate is issued, or the denial sticks
When approved, CertGov returns the signed certificate and cert-manager writes the tls.crt
and tls.key Secret for your workload. When denied, the request is marked Denied=True.
cert-manager normally retries on a back-off, but the issuer records the denial on the parent Certificate and denies the
retries immediately, so approvers aren't asked again about a request they already rejected.
# See where a request is in the flow
kubectl get certificaterequest -n <namespace>
kubectl describe certificaterequest <name> -n <namespace>
| Condition | Reason | What it means |
|---|---|---|
| Approved | (empty) | Waiting for Kubernetes-side approval (step 2) |
| Ready=False | Pending | Waiting for a CertGov approver (step 4) |
| InvalidRequest=True | PolicyViolation | No Domain Trust Profile covers the names, or a wildcard isn't allowed |
| Denied=True | Denied | An approver rejected the request in CertGov |
| Ready=False | IssuerNotReady | The issuer itself isn't ready; check its status and credentials |
More detail, including a full troubleshooting runbook, is in the certforge-issuer README and cert-manager's approval documentation.
Authentication options
| Method | How it works | When to use |
|---|---|---|
| mTLS | Pinned client certificate from a one-time enrollment | Recommended for new deployments (v0.3+) |
| Workload Identity | Short-lived projected ServiceAccount token; no Secret stored | When your cluster exposes an OIDC issuer |
| API token | Long-lived token in a Kubernetes Secret | Simplest setup |
Data residency
Set the issuer's url to your organization's region: https://app.certgov.app for US East, or
https://eu.certgov.app for EU West. Certificates and audit data stay in that region.
Common questions
Does this replace cert-manager?
No. certforge-issuer is a cert-manager external issuer. cert-manager still generates keys, creates CertificateRequests, stores Secrets, and renews certificates. CertGov decides whether each request is allowed and which CA signs it.
Do private keys leave the cluster?
No. cert-manager generates the key pair inside the cluster and sends CertGov only the CSR, which contains the public key and subject. This is the same model as cert-manager's built-in ACME and CA issuers.
Which CAs can sign the certificates?
Whichever CA your Domain Trust Profile allows, such as Let's Encrypt or an internal CA. If a profile has several CA configurations, you can pin one per issuer or override it per Certificate with the certforge.io/issuance-profile annotation.
What happens if a domain isn't covered by policy?
The CertificateRequest is marked InvalidRequest with reason PolicyViolation, and nothing is sent to a CA. Add the domain to a Domain Trust Profile in CertGov to allow it.
Is it open source?
Yes. certforge-issuer is Apache 2.0 licensed and available on GitHub. Policy, approvals, and audit run in CertGov; see pricing for plans, including a free tier.
Put a policy layer in front of cert-manager
Free tier. No credit card. Your first governed certificate in minutes.