per-cluster differentiator SAN on tenants-wildcard cert (avoid LE Duplicate Cert rate limit)

This commit is contained in:
ops
2026-04-29 22:27:02 +02:00
parent 976c67afd1
commit 7ee9856e25
3 changed files with 21 additions and 2 deletions

View File

@@ -19,5 +19,15 @@ spec:
commonName: {{ .Values.tenant.wildcardHost | quote }}
dnsNames:
- {{ .Values.tenant.wildcardHost | quote }}
{{- if .Values.cluster.name }}
# Per-cluster differentiator. Same Registered Domain, but a unique
# SAN-list per cluster so Let's Encrypt's "Duplicate Certificate"
# rate limit (5 per identical SAN list per Registered Domain per
# week) doesn't trip when a tenant runs multiple clusters. The
# wildcard SAN above stays in every cert, so customer-facing
# routing (`<instance>.tenants.<domain>`) is unchanged. Only the
# per-domain rate limit (50/week) bounds tenant capacity now.
- {{ printf "%s.platform.%s" .Values.cluster.name .Values.tenant.domain | quote }}
{{- end }}
renewBefore: 720h
{{- end }}