Skip to content

Commit

Permalink
Gosec CVE fix (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
francis-nijay authored Jul 22, 2024
1 parent c585d52 commit 8422f80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions csireverseproxy/pkg/standaloneproxy/standaloneproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ func newReverseProxy(mgmtServer config.ManagementServer) common.Proxy {
}

func newTLSConfig(mgmtServer config.ManagementServer) *tls.Config {
// #nosec G402

tlsConfig := tls.Config{
InsecureSkipVerify: mgmtServer.SkipCertificateValidation, // #nosec,G402 - InsecureSkipVerify cannot be false always as expected by gosec, this needs to be configurable
InsecureSkipVerify: mgmtServer.SkipCertificateValidation, // #nosec G402 InsecureSkipVerify cannot be false always as expected by gosec, this needs to be configurable
}
if !mgmtServer.SkipCertificateValidation {
caCert, err := ioutil.ReadFile(mgmtServer.CertFile)
Expand Down

0 comments on commit 8422f80

Please sign in to comment.