From 7ba78a79d77dd00e3fbc3e9bc84b6ec0d8fbcf39 Mon Sep 17 00:00:00 2001 From: Rafael Vasquez Date: Mon, 6 Nov 2023 16:28:07 -0500 Subject: [PATCH] Remove InsecureSkipVerify Signed-off-by: Rafael Vasquez --- proxy/main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/proxy/main.go b/proxy/main.go index 2ae1a83..1aeac70 100644 --- a/proxy/main.go +++ b/proxy/main.go @@ -85,9 +85,7 @@ func run() error { var transportCreds credentials.TransportCredentials if useTLS, ok := os.LookupEnv(restProxyTlsEnvVar); ok && useTLS == "true" { logger.Info("Using TLS") - transportCreds = credentials.NewTLS(&tls.Config{ - InsecureSkipVerify: true, - }) + transportCreds = credentials.NewTLS(&tls.Config{}) } else { logger.Info("Not using TLS") transportCreds = insecure.NewCredentials()