Skip to main content
The certforge-issuer is a cert-manager external issuer that intercepts CertificateRequest objects and submits them to CertGov for policy evaluation, approval, and issuance. Your existing Certificate manifests work unchanged — you just point issuerRef at CertGov instead of a built-in issuer.

Prerequisites

  • Kubernetes 1.24+
  • cert-manager v1.14+
  • A CertGov account with at least one Domain Trust Profile covering your cluster’s domains

Before you install

CertGov must be configured for the domains your workloads will request certificates for, otherwise requests will be rejected immediately with InvalidRequest. 1. Create a Domain Trust Profile covering the domain patterns your workloads use. For example, if pods will request certs for *.internal.example.com, your DTP must include that pattern. Go to Domain Trust Profiles → New in the CertGov dashboard. 2. Generate an API token — go to Settings → API Keys and create a token with the enroll and read scopes. No other scopes are required. You will supply this during installation.

Installation

US East (default):
EU West (GDPR-aligned):
Self-hosted: replace the URL with your CertGov instance URL:

Manual

Configure the issuer

Namespaced issuer

Use CertGovIssuer to scope issuance to a single namespace:

Cluster-wide issuer

Use CertGovClusterIssuer to issue certificates across all namespaces. The credentials secret must live in the certgov-system namespace:

Data residency

Your API token is scoped to a single region at account creation time. Set url to match your org’s region — the URL and token together route every certificate request to the correct region with no cross-border data flows. To serve multiple regions from one cluster, deploy a separate CertGovClusterIssuer per region with its own credentials secret:
See Data Residency for the full regional architecture.

Request a certificate

Point any cert-manager Certificate at CertGov by changing issuerRef:
cert-manager creates a CertificateRequest; the issuer controller submits the CSR to CertGov; once issued the certificate is written back as a Kubernetes Secret.

Wildcard certificates

Wildcard certificates work the same way — ensure your DTP permits wildcards for the domain:

Multiple SANs

How approval works

Certificate issuance involves two separate approval steps: 1. cert-manager approval — cert-manager’s built-in approver only auto-approves requests for its own built-in issuers (ACME, CA, SelfSigned). For certforge-issuer, the CertificateRequest will sit with an empty APPROVED column until it is approved. The certforge-issuer controller will not submit the CSR to CertGov until this condition is set. For production, install cert-manager-approver-policy and deploy a CertificateRequestPolicy that auto-approves requests for certgov.app issuers. CertGov already enforces domain policy via Domain Trust Profiles, so the Kubernetes-side rule just needs to unblock the approval gate:
The policy matches both CertGovIssuer and CertGovClusterIssuer (anything in the certgov.app group). For namespace-scoped or domain-scoped variants, see the sample file in the certforge-issuer repository. For local testing, approve manually with cmctl:
2. CertGov approval — once the CertificateRequest is approved in Kubernetes, the behavior depends on your Domain Trust Profile:
  • Auto-approve — the certificate is issued immediately, typically within a few seconds.
  • Manual approval required — the request enters the CertGov approval queue. The controller polls until the request is approved or denied. The Certificate stays pending until then.
Approvers can act on requests from the CertGov dashboard under Approvals.

Troubleshooting

If a Certificate stays pending, inspect the underlying CertificateRequest:
Check the issuer controller logs for connectivity errors:
Certificate stuck pending for more than a few minutes with auto-approve DTP: Check that the controller can reach CertGov — network policies or egress rules may be blocking the connection. The controller needs outbound HTTPS to the CertGov URL. x509: certificate signed by unknown authority: Your self-hosted CertGov instance uses a CA the controller doesn’t trust. Add the CA certificate to your cluster’s trusted roots (e.g. via a custom CA bundle in the node’s trust store, or by configuring the certforge-issuer pod with a volume-mounted CA cert and the SSL_CERT_FILE environment variable pointing to it). API token invalid in controller logs: The token in the certgov-credentials secret has expired or been revoked. Generate a new one under Settings → API Keys and update the secret:
For full controller configuration options and CRD field reference, see the certforge-issuer guide.