Skip to content

Commit

Permalink
Separate kafka ca cert config from kafka sasl config
Browse files Browse the repository at this point in the history
  • Loading branch information
dehort committed Oct 12, 2023
1 parent 9faa66a commit e997e83
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,15 +423,14 @@ func GetConfig() *Config {
config.KafkaUsername = *broker.Sasl.Username
config.KafkaPassword = *broker.Sasl.Password
config.KafkaSASLMechanism = *broker.Sasl.SaslMechanism
}

if broker.Cacert != nil {
caPath, err := cfg.KafkaCa(broker)
if err != nil {
panic("Kafka CA cert failed to write")
}

config.KafkaCA = caPath
if broker.Cacert != nil {
caPath, err := cfg.KafkaCa(broker)
if err != nil {
panic("Kafka CA cert failed to write")
}
config.KafkaCA = caPath
}

config.ConnectionDatabaseHost = cfg.Database.Hostname
Expand Down

0 comments on commit e997e83

Please sign in to comment.