Skip to content

Commit

Permalink
fix(redis): insecure skipe verify config (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
renatoaguimaraes authored Jan 27, 2022
1 parent edc8946 commit b387824
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions pkg/common/clients/redis_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func newRedisClusterClient(config RedisConfiguration, logger logging.Logger) Red
Certificates: []tls.Certificate{
cert,
},
InsecureSkipVerify: config.InsecureSkipVerify,
},
}),
}
Expand Down
10 changes: 5 additions & 5 deletions pkg/common/clients/redis_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import "github.com/kelseyhightower/envconfig"
// RedisConfiguration represents the client configuration to connect to Prometheus.
type RedisConfiguration struct {
// Address represents host:port list separated by ,
Address []string `envconfig:"REDIS_ADDRESS" required:"true"`
MasterName string `envconfig:"REDIS_MASTER_NAME"`
CACert string `envconfig:"REDIS_CA_CERT"`
Cert string `envconfig:"REDIS_CERT"`
CertKey string `envconfig:"REDIS_CERT_KEY"`
Address []string `envconfig:"REDIS_ADDRESS" required:"true"`
InsecureSkipVerify bool `envconfig:"REDIS_INSECURE_SKIP_VERIFY" default:"false"`
CACert string `envconfig:"REDIS_CA_CERT"`
Cert string `envconfig:"REDIS_CERT"`
CertKey string `envconfig:"REDIS_CERT_KEY"`
}

// LoadFromEnvVars for RedisConfiguration.
Expand Down

0 comments on commit b387824

Please sign in to comment.