Skip to content

Commit

Permalink
Revert "add support for TLS redis connection (#2308)"
Browse files Browse the repository at this point in the history
This reverts commit f4ee9f3.
  • Loading branch information
ramanan-ravi authored Sep 17, 2024
1 parent f4ee9f3 commit 3594d43
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion deepfence_server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ COPY deepfence_server/entrypoint.sh /entrypoint.sh
RUN apt update && \
apt install -y \
bash \
ca-certificates \
curl \
wget \
netcat-traditional \
Expand Down
2 changes: 0 additions & 2 deletions deepfence_utils/directory/directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,10 @@ func initRedis() RedisConfig {
redisDBNumber = 0
}
}
redisTLSConfig := os.Getenv("DEEPFENCE_REDIS_TLS")
return RedisConfig{
Endpoint: redisEndpoint,
Password: redisPassword,
Database: redisDBNumber,
TLSConfig: redisTLSConfig,
}
}

Expand Down
5 changes: 0 additions & 5 deletions deepfence_utils/directory/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ func newRedisClient(endpoints DBConfigs) (*redis.Client, error) {
if endpoints.Redis.Password != "" {
redisOptions.Password = endpoints.Redis.Password
}
if endpoints.Redis.TLSConfig != "" {
redisOptions.TLSConfig = &tls.Config{
MinVersion: tls.VersionTLS12,
}
}
return redis.NewClient(redisOptions), nil
}

Expand Down

0 comments on commit 3594d43

Please sign in to comment.