Skip to content

chart: honour redisOperator.serviceDNSDomain in webhook cert SANs#1752

Open
SAY-5 wants to merge 1 commit intoOT-CONTAINER-KIT:mainfrom
SAY-5:fix/chart-dnsdomain-cert-sans-1743
Open

chart: honour redisOperator.serviceDNSDomain in webhook cert SANs#1752
SAY-5 wants to merge 1 commit intoOT-CONTAINER-KIT:mainfrom
SAY-5:fix/chart-dnsdomain-cert-sans-1743

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented Apr 21, 2026

Summary

Both the cert-manager-managed Certificate (charts/redis-operator/templates/cert-manager.yaml) and the in-cluster self-signed webhook cert (charts/redis-operator/templates/mutating-webhook-configuration.yaml) hard-coded a .cluster.local suffix on the FQDN SAN. Operators who set redisOperator.serviceDNSDomain (for example custom.domain) saw the kube-apiserver fail webhook TLS validation because the DNS name it resolves, <svc>.<ns>.svc.custom.domain, is not in the issued cert.

Fix

Derive the suffix from redisOperator.serviceDNSDomain with a cluster.local default. Existing deployments are unaffected, custom-DNS clusters work out of the box.

Fixes #1743.

Test

  • Helm template render: <svc>.<ns>.svc.cluster.local when serviceDNSDomain is unset / cluster.local, <svc>.<ns>.svc.custom.domain when set to custom.domain.

Signed-off-by: SAY-5 SAY-5@users.noreply.github.com

Both the cert-manager-managed Certificate and the in-cluster
self-signed webhook cert used a hard-coded .cluster.local suffix on
the FQDN SAN. Operators who set redisOperator.serviceDNSDomain (for
example, custom.domain) saw the webhook controller fail cert
validation because the DNS name the kube-apiserver connects to is
<svc>.<ns>.svc.custom.domain, which is not in the issued cert.

Derive the suffix from redisOperator.serviceDNSDomain with a
cluster.local default, so existing deployments are unaffected and
custom DNS clusters work out of the box.

Fixes OT-CONTAINER-KIT#1743.

Signed-off-by: SAY-5 <SAY-5@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[redis-operator chart] Hardcoded .cluster.local in cert-manager template SANs

1 participant