cert-manager-extensions

by emberstack

Helm chartv1.0.22App 1.0.0MITVerified publisher

A Helm chart for cert-manager extensions

About this chart

cert-manager Helm Extensions

This chart provides templates for cert-manager CRDs. It can be used as the base for dynamic resources.

Requirements: cert-manager installed in the cluster.

Templates target the cert-manager.io/v1 API as shipped with cert-manager v1.21.1.

KindValues keyShape
Issuerissuerslist — each entry needs its own name
ClusterIssuerclusterIssuerslist — each entry needs its own name
Certificatecertificatesmap keyed by name

Every entry is opt-in via enabled: true.

CertificateRequest, Order and Challenge are deliberately not templated — cert-manager's controllers create and own those; they are not resources you author.

Note the shape difference: issuers / clusterIssuers are lists (so name is required on each entry), while certificates is a map keyed by name (the key is the name — a per-item name is ignored there).

Installation

Using OCI registry (recommended)

helm install cert-manager-extensions oci://ghcr.io/emberstack/helm-charts/cert-manager-extensions

Using Helm repository

helm repo add emberstack https://emberstack.github.io/helm-charts
helm repo update
helm upgrade --install cert-manager-extensions emberstack/cert-manager-extensions

Parameters

ParameterDescriptionDefault
nameOverrideOverride chart name""
fullnameOverrideOverride fully qualified app name""
namespaceOverrideOverride namespace""
commonLabelsLabels added to all resources{}
commonAnnotationsAnnotations added to all resources{}
issuersList of Issuers[]
clusterIssuersList of ClusterIssuers[]
certificatesMap of Certificates (keyed by name){}

Every field of the cert-manager v1.21.1 IssuerSpec and CertificateSpec is renderable. See values.yaml for the full annotated reference.

Usage Examples

ACME ClusterIssuer with a DNS-01 solver

clusterIssuers:
  - name: letsencrypt
    enabled: true
    acme:
      email: [email protected]
      server: https://acme-v02.api.letsencrypt.org/directory
      privateKeySecretRef:
        name: letsencrypt-key
      solvers:
        - dns01:
            cloudflare:
              apiTokenSecretRef:
                name: cloudflare-token
                key: token

CA and self-signed ClusterIssuers

clusterIssuers:
  - name: internal-ca
    enabled: true
    ca:
      secretName: ca-key-pair
  - name: selfsigned
    enabled: true
    selfSigned: {}

Vault Issuer with AWS IAM auth (cert-manager >= 1.21)

issuers:
  - name: vault
    enabled: true
    vault:
      server: https://vault.example.com
      path: pki/sign/example
      auth:
        aws:
          role: vault-role
          region: eu-west-1
          serviceAccountRef:
            name: cert-manager

Venafi Issuer using Next-Gen Trust Services (cert-manager >= 1.21)

issuers:
  - name: venafi-ngts
    enabled: true
    venafi:
      zone: My Zone
      ngts:
        tsgID: my-tsg-id
        credentialsRef:
          name: ngts-credentials

Certificate with renewal windows (cert-manager >= 1.21)

certificates:
  web:
    enabled: true
    secretName: web-tls
    issuerRef:
      name: letsencrypt
      kind: ClusterIssuer
    dnsNames:
      - www.example.com
    duration: 2160h
    renewBefore: 360h
    renewal:
      policy: RenewBefore
      windows:
        - cron: "0 2 * * SAT"
          windowDuration: 4h
          timezone: UTC

Certificate with a PKCS#12 keystore

certificates:
  app:
    enabled: true
    secretName: app-tls
    issuerRef:
      name: internal-ca
      kind: ClusterIssuer
    dnsNames:
      - app.svc.cluster.local
    privateKey:
      algorithm: ECDSA
      size: 256
      rotationPolicy: Always
    keystores:
      pkcs12:
        create: true
        passwordSecretRef:
          name: p12-password
          key: password

Per-environment DNS name additions

certificates is a map, so value files merge. extraDnsNames is appended to dnsNames, letting an environment add hostnames without restating the certificate:

certificates:
  web:
    extraDnsNames:
      - staging.example.com

Deploy cert-manager-extensions 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-extensions 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-extensions is pinned at v1.0.22 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