Skip to content

Commit 28c72e3

Browse files
feat: enable proxy support when SSL verification is disabled (#254)
Signed-off-by: Piotr Dębski <[email protected]> Co-authored-by: Jacek Midura <[email protected]>
1 parent c67ccd2 commit 28c72e3

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

core/container_authenticator.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ func (authenticator *ContainerAuthenticator) client() *http.Client {
195195
transport := &http.Transport{
196196
// #nosec G402
197197
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
198+
Proxy: http.ProxyFromEnvironment,
198199
}
199200
authenticator.Client.Transport = transport
200201
}

core/cp4d_authenticator.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ func (authenticator *CloudPakForDataAuthenticator) client() *http.Client {
177177
transport := &http.Transport{
178178
// #nosec G402
179179
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
180+
Proxy: http.ProxyFromEnvironment,
180181
}
181182
authenticator.Client.Transport = transport
182183
}

core/iam_assume_authenticator.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ func (authenticator *IamAssumeAuthenticator) getClient() *http.Client {
265265
transport := &http.Transport{
266266
// #nosec G402
267267
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
268+
Proxy: http.ProxyFromEnvironment,
268269
}
269270
authenticator.client.Transport = transport
270271
}

core/iam_authenticator.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ func (authenticator *IamAuthenticator) client() *http.Client {
187187
transport := &http.Transport{
188188
// #nosec G402
189189
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
190+
Proxy: http.ProxyFromEnvironment,
190191
}
191192
authenticator.Client.Transport = transport
192193
}

core/mcsp_v1_authenticator.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ func (authenticator *MCSPAuthenticator) client() *http.Client {
133133
transport := &http.Transport{
134134
// #nosec G402
135135
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
136+
Proxy: http.ProxyFromEnvironment,
136137
}
137138
authenticator.Client.Transport = transport
138139
}

core/mcsp_v2_authenticator.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ func (authenticator *MCSPV2Authenticator) client() *http.Client {
229229
transport := &http.Transport{
230230
// #nosec G402
231231
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
232+
Proxy: http.ProxyFromEnvironment,
232233
}
233234
authenticator.Client.Transport = transport
234235
}

0 commit comments

Comments
 (0)