Skip to content

Commit

Permalink
Remove InsecureSkipVerify
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Vasquez <[email protected]>
  • Loading branch information
rafvasq committed Nov 6, 2023
1 parent 36cb079 commit 7ba78a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7ba78a7

Please sign in to comment.