From 92b2641d759d2305197d410147df91f8818eee62 Mon Sep 17 00:00:00 2001 From: Jacek Midura <68907664+jacek-midura@users.noreply.github.com> Date: Mon, 14 Jul 2025 17:00:19 +0200 Subject: [PATCH] Enable proxy support in CloudPakForDataAuthenticator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Piotr Dębski --- core/container_authenticator.go | 1 + core/cp4d_authenticator.go | 1 + core/iam_assume_authenticator.go | 1 + core/iam_authenticator.go | 1 + core/mcsp_v1_authenticator.go | 1 + core/mcsp_v2_authenticator.go | 1 + 6 files changed, 6 insertions(+) diff --git a/core/container_authenticator.go b/core/container_authenticator.go index 651ae078..2a47409f 100644 --- a/core/container_authenticator.go +++ b/core/container_authenticator.go @@ -195,6 +195,7 @@ func (authenticator *ContainerAuthenticator) client() *http.Client { transport := &http.Transport{ // #nosec G402 TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + Proxy: http.ProxyFromEnvironment, } authenticator.Client.Transport = transport } diff --git a/core/cp4d_authenticator.go b/core/cp4d_authenticator.go index fb8e3043..72917521 100644 --- a/core/cp4d_authenticator.go +++ b/core/cp4d_authenticator.go @@ -177,6 +177,7 @@ func (authenticator *CloudPakForDataAuthenticator) client() *http.Client { transport := &http.Transport{ // #nosec G402 TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + Proxy: http.ProxyFromEnvironment, } authenticator.Client.Transport = transport } diff --git a/core/iam_assume_authenticator.go b/core/iam_assume_authenticator.go index 0132b41f..634f30a1 100644 --- a/core/iam_assume_authenticator.go +++ b/core/iam_assume_authenticator.go @@ -265,6 +265,7 @@ func (authenticator *IamAssumeAuthenticator) getClient() *http.Client { transport := &http.Transport{ // #nosec G402 TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + Proxy: http.ProxyFromEnvironment, } authenticator.client.Transport = transport } diff --git a/core/iam_authenticator.go b/core/iam_authenticator.go index ff083083..aea04841 100644 --- a/core/iam_authenticator.go +++ b/core/iam_authenticator.go @@ -187,6 +187,7 @@ func (authenticator *IamAuthenticator) client() *http.Client { transport := &http.Transport{ // #nosec G402 TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + Proxy: http.ProxyFromEnvironment, } authenticator.Client.Transport = transport } diff --git a/core/mcsp_v1_authenticator.go b/core/mcsp_v1_authenticator.go index 1fae07ed..0bf05c88 100644 --- a/core/mcsp_v1_authenticator.go +++ b/core/mcsp_v1_authenticator.go @@ -133,6 +133,7 @@ func (authenticator *MCSPAuthenticator) client() *http.Client { transport := &http.Transport{ // #nosec G402 TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + Proxy: http.ProxyFromEnvironment, } authenticator.Client.Transport = transport } diff --git a/core/mcsp_v2_authenticator.go b/core/mcsp_v2_authenticator.go index 4400bc09..ec88a6d4 100644 --- a/core/mcsp_v2_authenticator.go +++ b/core/mcsp_v2_authenticator.go @@ -229,6 +229,7 @@ func (authenticator *MCSPV2Authenticator) client() *http.Client { transport := &http.Transport{ // #nosec G402 TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + Proxy: http.ProxyFromEnvironment, } authenticator.Client.Transport = transport }