SSL Certificates
Overview
IMVEE uses two Let's Encrypt certificates, both managed automatically via cert-manager with IONOS DNS-01 challenges:
:::info [Status 2026-09-27 — all public routes on Let's Encrypt]
Since 2026-09-16, imvee-tls (wildcard *.dev.imvee.de) is also a Let's Encrypt certificate.
matrix.imvee.de is no longer an active route (Dev_o-151) — Matrix is served at
matrix.dev.imvee.de with the wildcard certificate imvee-tls. All public
*.dev.imvee.de certificates are publicly trusted: no CA install on clients needed.
:::
| Certificate | Issuer | Domains | Usage |
|---|---|---|---|
imvee-letsencrypt-tls | Let's Encrypt | socsuite.dev.imvee.de (single name) | SOCSuite frontend (SNI exact match via Ingress socsuite-ingress) |
imvee-tls | Let's Encrypt | *.dev.imvee.de (wildcard) | All other public dev services (auth, siem, docs, docs-intern, downloads, orchestrator, matrix) via Gateway listener websecure |
Let's Encrypt via IONOS DNS-01
Why Let's Encrypt Instead of IONOS SSL?
The existing IONOS SSL Starter Wildcard certificate is tied to IONOS web hosting and cannot be used for custom servers without changing its purpose — which would break the hosted website imvee.de.
Let's Encrypt is:
- Free
- Trusted by all clients (rustls, iOS, Android, macOS, Windows — no manual Keychain entry needed)
- Fully automatic (renewal 30 days before expiry without manual intervention)
Why DNS-01 Instead of HTTP-01?
The server is not reachable from the internet. Let's Encrypt HTTP-01 would require a public HTTP request on port 80. DNS-01 proves domain control via a TXT record in DNS — the server itself does not need to be reachable.
Components
cert-manager → cert-manager-webhook-ionos → IONOS DNS API → Let's Encryptcert-manager-webhook-ionos (Helm, namespace cert-manager):
- Repository:
https://github.com/fabmade/cert-manager-webhook-ionos - Version: 1.3.0
- groupName:
acme.imvee.de - Installed with:
helm install cert-manager-webhook-ionos <chart> --set groupName=acme.imvee.de
IONOS API Key (SealedSecret ionos-secret, namespace cert-manager):
- Access to DNS zone
imvee.de(Zone ID:be52f303-56b2-11f0-847a-0a5864441a3f) - Fields:
IONOS_PUBLIC_PREFIX,IONOS_SECRET - File:
k8s/base/cert-manager/sealed-ionos-secret.yaml
ClusterIssuer letsencrypt-ionos:
- File:
k8s/base/cert-manager/cluster-issuer.yaml - ACME server:
https://acme-v02.api.letsencrypt.org/directory - DNS-01 webhook: groupName
acme.imvee.de, solverNameionos, zoneNameimvee.de
Certificate imvee-letsencrypt-tls (namespace imvee-dev):
- File:
k8s/base/cert-manager/certificate-imvee-letsencrypt.yaml - dnsNames:
socsuite.dev.imvee.de - Secret:
imvee-letsencrypt-tls
Certificate imvee-tls (namespace imvee-dev):
- dnsNames:
*.dev.imvee.de - Secret:
imvee-tls— used by the Gateway listenerwebsecure
One-Time Setup (What Was Done)
1. Create IONOS API Key
At https://developer.hosting.ionos.de → Login → "Create API key".
Important: The key must belong to the contract under which imvee.de DNS is managed (IONOS nameservers: ns1070.ui-dns.de, ns1112.ui-dns.com etc.). Never commit the key to Git.
2. Create SealedSecret
kubectl create secret generic ionos-secret \
--namespace cert-manager \
--from-literal=IONOS_PUBLIC_PREFIX="<prefix>" \
--from-literal=IONOS_SECRET="<secret>" \
--dry-run=client -o yaml \
| kubeseal --controller-namespace kube-system --format yaml \
> k8s/base/cert-manager/sealed-ionos-secret.yamlThe SealedSecret is cluster-encrypted and safe to store in Git. The plaintext is no longer needed afterwards.
3. Install IONOS Webhook (Helm)
helm install cert-manager-webhook-ionos \
https://github.com/fabmade/cert-manager-webhook-ionos/releases/download/cert-manager-webhook-ionos-1.3.0/cert-manager-webhook-ionos-1.3.0.tgz \
--namespace cert-manager \
--set groupName=acme.imvee.deThe groupName must match the one in the ClusterIssuer config.
4. Configure cert-manager for IONOS Nameservers
Since the server works internally and CoreDNS forwards imvee.de to the local dnsmasq (which does not know the ACME TXT record), cert-manager must query the IONOS nameservers directly:
kubectl patch deployment cert-manager -n cert-manager --type='json' -p='[
{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--dns01-recursive-nameservers=217.160.80.70:53,217.160.82.112:53"},
{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--dns01-recursive-nameservers-only"}
]'217.160.80.70 = ns1070.ui-dns.de, 217.160.82.112 = ns1112.ui-dns.com — the authoritative IONOS nameservers for imvee.de.
5. Deploy ClusterIssuer and Certificate
kubectl apply -f k8s/base/cert-manager/cluster-issuer.yaml
kubectl apply -f k8s/base/cert-manager/sealed-ionos-secret.yaml
kubectl apply -f k8s/base/cert-manager/certificate-imvee-letsencrypt.yamlcert-manager automatically sets a TXT record _acme-challenge.imvee.de at IONOS, Let's Encrypt validates it, and the certificate is issued (~2 min).
6. Switch Gateway to Let's Encrypt
In k8s/base/gateway/gateway.yaml listener websecure-imvee-de:
certificateRefs:
- name: imvee-letsencrypt-tls # instead of imvee-tlsAt the same time, remove matrix.imvee.de from k8s/base/gateway/certificate.yaml (imvee-tls) — otherwise Traefik selects the wrong certificate via SNI.
7. Restart Traefik
kubectl rollout restart deployment/traefik -n traefik-systemAutomatic Renewal Flow
- cert-manager detects that the certificate is missing or will expire soon
- cert-manager creates an ACME order at Let's Encrypt
- Let's Encrypt requests DNS-01 challenge
- cert-manager-webhook-ionos sets the
_acme-challenge.dev.imvee.deTXT record via IONOS DNS API - Let's Encrypt validates the TXT record
- cert-manager-webhook-ionos deletes the TXT record
- Let's Encrypt issues the certificate
- cert-manager stores it as secret
imvee-letsencrypt-tlsinimvee-dev - Traefik loads the new certificate automatically
Gateway Configuration
The Traefik gateway socsuite-gateway has one HTTPS listener for all public dev domains:
- name: websecure
protocol: HTTPS
port: 443
hostname: "*.dev.imvee.de"
tls:
mode: Terminate
certificateRefs:
- name: imvee-tls
kind: Secretmatrix.dev.imvee.de uses the same listener (wildcard SAN). Additionally, the Ingress
socsuite-ingress references the single-name certificate imvee-letsencrypt-tls for
socsuite.dev.imvee.de — on SNI exact match Traefik serves it before the wildcard.
The former listener websecure-imvee-de (hostname *.imvee.de) no longer exists —
it became redundant when Matrix moved to matrix.dev.imvee.de (Dev_o-151).
Check Status
# Certificate status
kubectl get certificate imvee-letsencrypt-tls -n imvee-dev
# Details and events
kubectl describe certificate imvee-letsencrypt-tls -n imvee-dev
# Active challenges
kubectl get challenge -n imvee-dev
# Expiry date
kubectl get secret imvee-letsencrypt-tls -n imvee-dev \
-o jsonpath='{.data.tls\.crt}' | base64 -d | openssl x509 -noout -datesRenewal
Runs automatically. cert-manager renews the certificate 30 days before expiry. Let's Encrypt certificates are valid for 90 days — renewal occurs approximately every 60 days.
Internal CA (in-cluster only)
The IMVEE Internal CA (root socsuite-root-ca, 10 years, ECDSA P-256) signs exclusively
in-cluster service certificates (e.g. opensearch-tls). It is no longer used for the
public *.dev.imvee.de routes — those run entirely on Let's Encrypt (see above). Client-side
CA installation is therefore not needed for domain access.
Behaviour During Active Development
The Certificate Is Independent of Cluster State
The Let's Encrypt certificate is stored as Kubernetes secret imvee-letsencrypt-tls in the cluster. It is not tied to running pods, deployments or services. The following does not affect the certificate:
- Restarting or scaling pods
- Updating or deleting deployments
- Emptying namespaces
kubectl applyon any manifests
The certificate remains valid until cert-manager actively renews it (automatically) or the secret is deleted.
What Breaks the Certificate
| Action | Effect |
|---|---|
kubectl delete secret imvee-letsencrypt-tls -n imvee-dev | Certificate gone — cert-manager immediately reissues it (~2 min) |
kubectl delete namespace imvee-dev | Secret gone — will be reissued when namespace is recreated |
kubectl delete certificate imvee-letsencrypt-tls -n imvee-dev | cert-manager stops managing the certificate — until the Certificate resource is recreated |
| Revoke IONOS API key | Renewal fails — create a new key in time |
helm uninstall cert-manager-webhook-ionos | DNS-01 no longer works — renewal fails |
Traefik and Gateway
Traefik automatically reloads the secret when it changes — no restart needed. Changing the Gateway or HTTPRoute leaves the certificate untouched.
Only exception: If you change the Gateway listener configuration and point certificateRefs to a different secret, Traefik uses the new secret — but the old certificate remains in the cluster.
Recreating the Namespace
If imvee-dev is deleted and recreated:
kubectl apply -k k8s/base/cert-manager/ # recreate ClusterIssuer + Certificate
kubectl apply -f k8s/base/cert-manager/sealed-ionos-secret.yamlcert-manager will then automatically reissue the certificate (~2 minutes).
Rate Limits with Let's Encrypt
Let's Encrypt has rate limits: 5 certificates per domain per week. In normal development (certificate is only reissued on expiry or accidental deletion) this is not a problem.
:::warn [Do not test with repeated issuance] Do not repeatedly delete the secret and let it be reissued for testing — at 5 attempts per week the limit is reached and new issuances fail for 7 days.
For tests use the Let's Encrypt staging server (no rate limits, but certificate is not trusted):
server: https://acme-staging-v02.api.letsencrypt.org/directory:::
Troubleshooting
Challenge Stays in pending
kubectl describe challenge -n imvee-dev
# Check TXT record manually (wildcard certificate *.dev.imvee.de):
dig TXT _acme-challenge.dev.imvee.de @8.8.8.8 +shortWebhook Error "unable to find ionos dns zone"
Cause: zoneName is missing in the ClusterIssuer config. Ensure that cluster-issuer.yaml under config: contains:
zoneName: imvee.deWebhook Error "forbidden: cannot create resource ionos"
RBAC problem: groupName in ClusterIssuer does not match the groupName set during Helm installation. Both must be acme.imvee.de.