From af35fb158c5aadb9bd60458b6c87fcbfbec405f1 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 20 Nov 2026 03:23:12 -0800 Subject: [PATCH] helm: add the volume service names to the volume certificate for HTTPS Volume servers register as .., and HTTPS clients verify that name, which none of the certificate's wildcards cover. With volume HTTPS on, the certificate also lists every volume group's service. Co-Authored-By: Claude Opus 5.5 --- k8s/charts/seaweedfs/templates/cert/volume-cert.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/k8s/charts/seaweedfs/templates/cert/volume-cert.yaml b/k8s/charts/seaweedfs/templates/cert/volume-cert.yaml index 7e3c3d15e8..1736f72b8d 100644 --- a/k8s/charts/seaweedfs/templates/cert/volume-cert.yaml +++ b/k8s/charts/seaweedfs/templates/cert/volume-cert.yaml @@ -38,6 +38,14 @@ spec: - '*.{{ include "seaweedfs.fullname" . }}-master.{{ include "seaweedfs.namespace" . }}' - '*.{{ include "seaweedfs.fullname" . }}-master.{{ include "seaweedfs.namespace" . }}.svc' - '*.{{ include "seaweedfs.fullname" . }}-master.{{ include "seaweedfs.namespace" . }}.svc.cluster.local' +{{- if include "seaweedfs.volumeHttps" . }} +{{- range $vname, $_ := deepCopy .Values.volumes | mergeOverwrite (dict "" .Values.volume) }} +{{- $volumeService := printf "%s.%s" (include "seaweedfs.componentName" (list $ (trimSuffix "-" (printf "volume-%s" $vname)))) (include "seaweedfs.namespace" $) }} + - '*.{{ $volumeService }}' + - '*.{{ $volumeService }}.svc' + - '*.{{ $volumeService }}.svc.cluster.local' +{{- end }} +{{- end }} {{- if .Values.certificates.ipAddresses }} ipAddresses: {{- range .Values.certificates.ipAddresses }}