1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 13:55:21 +02:00

fix(tls): set insecureSkipVerify to false in FIPS mode [BE-11932] (#849)

This commit is contained in:
Devon Steenberg 2025-07-04 10:48:54 +12:00 committed by GitHub
parent 1332f718ae
commit 8ffe4e284a
2 changed files with 4 additions and 3 deletions

View file

@ -32,9 +32,9 @@ type Service struct {
}
// NewService initializes a new service.
func NewService() *Service {
func NewService(insecureSkipVerify bool) *Service {
tlsConfig := crypto.CreateTLSConfiguration()
tlsConfig.InsecureSkipVerify = true
tlsConfig.InsecureSkipVerify = insecureSkipVerify
return &Service{
httpsClient: &http.Client{