Skip to content

Commit

Permalink
feat: update certificate serverName to support wildcard certs (#1221)
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Qadora <[email protected]>
  • Loading branch information
MuhammadQadora authored Feb 1, 2025
1 parent 0ad77e2 commit 8fbb4f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/k8sutils/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func getRedisTLSConfig(ctx context.Context, client kubernetes.Interface, namespa

return &tls.Config{
Certificates: []tls.Certificate{cert},
ServerName: podName,
ServerName: podName + "." + namespace,
RootCAs: tlsCaCertificates,
MinVersion: tls.VersionTLS12,
ClientAuth: tls.NoClientCert,
Expand Down

0 comments on commit 8fbb4f7

Please sign in to comment.