Skip to content

Commit

Permalink
I320494 set ssl verification to false in redis client (#784)
Browse files Browse the repository at this point in the history
disable ssl verification for redis
  • Loading branch information
nirbenrey committed Aug 14, 2022
1 parent 895b07b commit 328a7c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/sm/sm.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ func New(ctx context.Context, cancel context.CancelFunc, e env.Environment, cfg
if cfg.Cache.Enabled {
var tlsConfig *tls.Config
if cfg.Cache.TLSEnabled {
tlsConfig = &tls.Config{MinVersion: tls.VersionTLS12}
tlsConfig = &tls.Config{
InsecureSkipVerify: true,
}
}
redisClient = redis.NewClient(&redis.Options{
Addr: cfg.Cache.Host + ":" + strconv.Itoa(cfg.Cache.Port),
Expand Down

0 comments on commit 328a7c8

Please sign in to comment.