From a77309759132575bda366485fc744452b5dbb2c8 Mon Sep 17 00:00:00 2001 From: Mostafa Moradian Date: Mon, 2 May 2022 15:55:11 +0200 Subject: [PATCH] Use TLSv1.2 as the minimum version --- auth.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/auth.go b/auth.go index f8ab093..5295b19 100644 --- a/auth.go +++ b/auth.go @@ -36,7 +36,9 @@ func getDialer(creds *Credentials) (dialer *kafkago.Dialer) { dialer = &kafkago.Dialer{ Timeout: 10 * time.Second, DualStack: true, - TLS: &tls.Config{}, + TLS: &tls.Config{ + MinVersion: tls.VersionTLS12, + }, } if creds.Algorithm == Plain {