Skip to content

fix: bypass proxy for Runtime and Extensions API calls - #641

Merged
benrkia merged 1 commit into
mainfrom
ilbe/proxy-bypass
Sep 18, 2026
Merged

benrkia merged 1 commit into
mainfrom
ilbe/proxy-bypass

Conversation

@benrkia

@benrkia benrkia commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:
The Runtime and Extensions API clients built a bare http.Client, which inherits http.DefaultTransport and its ProxyFromEnvironment behavior. A customer-configured HTTP(S)_PROXY then routed calls to the API endpoint through the proxy, so a proxy in the environment could break function init even though it should never affect communication with the API.

Give both clients a transport that never proxies, cloned from the default so connection-pooling and timeout defaults are preserved.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The Runtime and Extensions API clients built a bare http.Client, which inherits http.DefaultTransport and its ProxyFromEnvironment behavior. A customer-configured HTTP(S)_PROXY then routed calls to the API endpoint through the proxy, so a proxy in the environment could break function init even though it should never affect communication with the API.

Give both clients a transport that never proxies, cloned from the default so connection-pooling and timeout defaults are preserved.
@codecov-commenter

codecov-commenter commented Sep 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.94%. Comparing base (6800157) to head (32e2e98).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #641      +/-   ##
==========================================
+ Coverage   82.38%   82.94%   +0.56%     
==========================================
  Files          36       36              
  Lines        1419     1425       +6     
==========================================
+ Hits         1169     1182      +13     
+ Misses        247      240       -7     
  Partials        3        3              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@anzheyazzz anzheyazzz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@benrkia
benrkia merged commit 94b293d into main Sep 18, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants