From fca0873b509fe5f0de714db8ef3429e1c69fcb94 Mon Sep 17 00:00:00 2001 From: Brandon Dunne Date: Tue, 2 Apr 2024 11:08:31 -0400 Subject: [PATCH] Remove InsecureSkipVerify --- .../api/v1alpha1/helpers/miq-components/httpd.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/manageiq-operator/api/v1alpha1/helpers/miq-components/httpd.go b/manageiq-operator/api/v1alpha1/helpers/miq-components/httpd.go index d9567d8c1..c02326446 100644 --- a/manageiq-operator/api/v1alpha1/helpers/miq-components/httpd.go +++ b/manageiq-operator/api/v1alpha1/helpers/miq-components/httpd.go @@ -660,9 +660,7 @@ func tlsSecretName(cr *miqv1alpha1.ManageIQ) string { } func fetchIntrospectionUrl(providerUrl string) (string, error) { - customTransport := http.DefaultTransport.(*http.Transport).Clone() - customTransport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true} - client := &http.Client{Transport: customTransport} + client := &http.Client errMsg := fmt.Sprintf("failed to get the OIDCOAuthIntrospectionURL from %s", providerUrl) resp, err := client.Get(providerUrl)