Skip to content

Commit

Permalink
added cipher it insecure
Browse files Browse the repository at this point in the history
  • Loading branch information
HarishH-DELL committed Jun 6, 2024
1 parent c36cd2e commit 0e63ffc
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cmd/sidecar-proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ func (pi *ProxyInstance) Start(proxyHost, access, refresh string) error {
pi.rp.Transport = &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
MinVersion: tls.VersionTLS12,
MaxVersion: tls.VersionTLS13,
CipherSuites: GetSecuredCipherSuites(),
},
}
} else {
Expand Down Expand Up @@ -274,6 +277,9 @@ func run(log *logrus.Entry) error {
tlsConfig := &tls.Config{
Certificates: []tls.Certificate{tlsCert},
InsecureSkipVerify: true, // #nosec G402
MinVersion: tls.VersionTLS12,
MaxVersion: tls.VersionTLS13,
CipherSuites: GetSecuredCipherSuites(),
}

var proxyInstances []*ProxyInstance
Expand Down Expand Up @@ -345,6 +351,9 @@ func refreshTokens(proxyHost url.URL, refreshToken string, accessToken *string,
httpClient.Transport = &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
MinVersion: tls.VersionTLS12,
MaxVersion: tls.VersionTLS13,
CipherSuites: GetSecuredCipherSuites(),
},
}
} else {
Expand Down Expand Up @@ -462,4 +471,4 @@ func GetSecuredCipherSuites() (suites []uint16) {
suites = append(suites, v.ID)
}
return suites
}
}

0 comments on commit 0e63ffc

Please sign in to comment.