cert-manager

by QuenchWorks

Helm chartv0.0.18App 1.21.2Apache-2.0Verified publisher

cert-manager: automated X.509 certificate management for Kubernetes. Issues and renews certificates from ACME (Let's Encrypt), self-signed, CA, Vault and other Issuers via the Certificate/Issuer/ClusterIssuer CRDs. Hardened by QuenchWorks as minimal, nonroot, CVE-gated images, cosign-signed and pinned by digest. Runs the controller, webhook and cainjector as three deployments; the webhook self-bootstraps its serving CA and the cainjector injects that CA bundle into the admission webhooks, so no external cert-manager dependency is required.

About this chart

Quenchworks cert-manager

Hardened cert-manager on minimal, nonroot, CVE-gated images, pinned by digest. cert-manager automates the issuance and renewal of X.509 certificates in Kubernetes from ACME (Let's Encrypt), SelfSigned, CA, Vault and other Issuers, driven by the Certificate / Issuer / ClusterIssuer CRDs.

Install

helm install cert-manager oci://ghcr.io/quenchworks/charts/cert-manager \
  -n cert-manager --create-namespace

Architecture

cert-manager ships four binaries. This chart runs three Deployments (each with its own ServiceAccount and minimal RBAC) and hands the fourth image to the controller:

DeploymentImageRole
<release>-controllercert-manager-controllerreconciles Certificate/Issuer/Order/Challenge, signs CSRs, runs the ingress-shim
<release>-webhookcert-manager-webhookvalidating + mutating admission webhook (Service :443 -> container 10250)
<release>-cainjectorcert-manager-cainjectorinjects the webhook's CA into the webhook configurations
(no deployment)cert-manager-acmesolverlaunched on demand by the controller for ACME http-01 challenges; its image is passed via --acme-http01-solver-image (digest)

The webhook self-bootstraps its serving CA (the dynamic serving-cert source): it generates a CA, stores it in the Secret <release>-webhook-ca, and serves TLS. The cainjector copies that CA into the caBundle of the Validating and Mutating webhook configurations (they carry the cert-manager.io/inject-ca-from-secret annotation). So no external cert-manager / no self-dependency is required. The v1.20 CRDs are conversion-webhook-free, so no CA injection on the CRDs is needed; they install from the chart's crds/ directory (Helm applies them before templates).

Smoke test (SelfSigned)

kubectl apply -f - <<'EOF'
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata: { name: selfsigned }
spec: { selfSigned: {} }
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata: { name: example, namespace: cert-manager }
spec:
  secretName: example-tls
  issuerRef: { name: selfsigned, kind: ClusterIssuer }
  commonName: example.local
  dnsNames: [example.local]
EOF

kubectl wait --for=condition=Ready certificate/example -n cert-manager --timeout=120s
kubectl get secret example-tls -n cert-manager   # populated tls.crt / tls.key

Configuration

ValueDefaultNotes
image.<component>.repositoryghcr.io/quenchworks/images/cert-manager-<component>one block per controller/webhook/cainjector/acmesolver
image.<component>.digest(CI-maintained)signed multi-arch index
clusterResourceNamespace"" (release namespace)where ClusterIssuer-owned Secrets live
leaderElection.namespace"" (release namespace)self-contained; no kube-system write grant needed
controller.replicaCount1
controller.enableCertificateOwnerReffalseGC the TLS Secret when its Certificate is deleted
controller.dns01RecursiveNameservers""DNS01 self-check resolvers
webhook.securePort10250HTTPS admission port (Service exposes :443)
webhook.failurePolicyFailIgnore to fail-open
cainjector.replicaCount1
rbac.createtruerequired: cluster-wide cert-management + webhook injection
serviceAccount.createtrueone SA per component

Verify the image

All four images are pinned by digest and cosign-signed (keyless). The same identity applies to each component (cert-manager-controller, cert-manager-webhook, cert-manager-cainjector, cert-manager-acmesolver); swap the repository to verify the others:

cosign verify ghcr.io/quenchworks/images/cert-manager-controller \
  --certificate-identity-regexp 'https://github.com/quenchworks/.+' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Each build also ships an SPDX SBOM and SLSA provenance attestation. Verify them with gh attestation verify oci://ghcr.io/quenchworks/images/cert-manager-controller --owner quenchworks.

Deploy cert-manager with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cert-manager on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcert-manager is pinned at v0.0.18 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply