Skip to content

Commit

Permalink
Fixing tls issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kumarkgosa committed Aug 23, 2024
1 parent 10cd868 commit b5c3092
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/restclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func New(_ context.Context, host string, opts ClientOptions, debug bool) (Client
c.http.Timeout = opts.Timeout
}

if opts.Insecure {
if opts.Insecure { // #nosec G402
c.http.Transport = &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
Expand All @@ -160,6 +160,7 @@ func New(_ context.Context, host string, opts ClientOptions, debug bool) (Client
RootCAs: pool,
InsecureSkipVerify: false,
CipherSuites: util.GetSecuredCipherSuites(),
MinVersion: tls.VersionTLS12,
},
}
}
Expand Down

0 comments on commit b5c3092

Please sign in to comment.