Skip to content

Commit

Permalink
Merge pull request #16 from brave-experiments/use-min-tls
Browse files Browse the repository at this point in the history
Use TLS 1.3 as minimum acceptable TLS version.
  • Loading branch information
Philipp Winter authored Aug 29, 2022
2 parents 2ea0784 + 6b7e669 commit aeddcba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kafkautils/kafka_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ func NewKafkaWriter(certFile, keyFile string) (*kafka.Writer, error) {
Addr: kafka.TCP(kafkaBroker),
Topic: kafkaTopic,
Transport: &kafka.Transport{
TLS: &tls.Config{Certificates: []tls.Certificate{cert}},
TLS: &tls.Config{
Certificates: []tls.Certificate{cert},
MinVersion: tls.VersionTLS13,
},
},
}, nil
}

0 comments on commit aeddcba

Please sign in to comment.