From 424f3825b6d60db216762faf3cd5cb6f9a3f1ce3 Mon Sep 17 00:00:00 2001 From: Martin Redolatti Date: Wed, 3 Apr 2024 13:15:28 -0300 Subject: [PATCH] forward single server name when connecting to multiple redis hosts in cluster or sentinel modes --- CHANGES.txt | 5 ++++- splitio/commitversion.go | 2 +- splitio/producer/util.go | 10 +++------- splitio/version.go | 2 +- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index e91ac5af..5c21d9cb 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,7 @@ -5.7.0 (TD) +5.7.1 (TBD) +- Forward TLS server name when in redis-sentinel & redis-cluster + +5.7.0 (Feb 22, 2024) - Add support for FIPS-compliant binaries & docker images 5.6.1 (Jan 29, 2024) diff --git a/splitio/commitversion.go b/splitio/commitversion.go index 9efa5bb7..dbf9e8ca 100644 --- a/splitio/commitversion.go +++ b/splitio/commitversion.go @@ -5,4 +5,4 @@ This file is created automatically, please do not edit */ // CommitVersion is the version of the last commit previous to release -const CommitVersion = "1ffbd68" +const CommitVersion = "94c6f52" diff --git a/splitio/producer/util.go b/splitio/producer/util.go index f7cda7f2..17098d52 100644 --- a/splitio/producer/util.go +++ b/splitio/producer/util.go @@ -37,13 +37,9 @@ func parseTLSConfig(opt *conf.Redis) (*tls.Config, error) { return nil, nil } - cfg := tls.Config{} - if !opt.SentinelReplication && !opt.ClusterMode { - if opt.TLSServerName != "" { - cfg.ServerName = opt.TLSServerName - } else { - cfg.ServerName = opt.Host - } + cfg := tls.Config{ServerName: opt.TLSServerName} + if cfg.ServerName == "" { + cfg.ServerName = opt.Host } if len(opt.TLSCACertificates) > 0 { diff --git a/splitio/version.go b/splitio/version.go index 3cffdc2e..ca510f7d 100644 --- a/splitio/version.go +++ b/splitio/version.go @@ -2,4 +2,4 @@ package splitio // Version is the version of this Agent -const Version = "5.7.0" +const Version = "5.7.1-rc1"