Skip to content

Commit e030faf

Browse files
authored
Merge pull request #4377 from leonacostaok/fix/kafka-verify-tls
verify Kafka broker TLS certificate by default
2 parents a8c275e + 2771abc commit e030faf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/kafka.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function getClient() {
4747
username && password
4848
? {
4949
ssl: {
50-
rejectUnauthorized: false,
50+
rejectUnauthorized: process.env.KAFKA_SSL_ALLOW_UNAUTHORIZED !== 'true',
5151
},
5252
sasl: {
5353
mechanism,

0 commit comments

Comments
 (0)