Skip to content

fix: respect proxy env vars in anonymous http client#3326

Merged
deiga merged 1 commit intointegrations:mainfrom
dvcorreia:fix/anonymous-client-proxy
Apr 16, 2026
Merged

fix: respect proxy env vars in anonymous http client#3326
deiga merged 1 commit intointegrations:mainfrom
dvcorreia:fix/anonymous-client-proxy

Conversation

@dvcorreia
Copy link
Copy Markdown
Contributor

Related to #1509


Before the change?

  • The anonymous HTTP client was using a bare http.Transport{} which does not respect HTTP_PROXY/HTTPS_PROXY environment variables.

After the change?

  • This change clones http.DefaultTransport instead, which has Proxy: http.ProxyFromEnvironment set by default.

Pull request checklist

  • Schema migrations have been created if needed (example)
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 9, 2026

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@github-actions github-actions Bot added the Type: Bug Something isn't working as documented label Apr 9, 2026
@max-wittig
Copy link
Copy Markdown

/cc @stebje

@dvcorreia dvcorreia force-pushed the fix/anonymous-client-proxy branch from cd7faa3 to 6f071eb Compare April 10, 2026 10:23
Copy link
Copy Markdown
Collaborator

@deiga deiga left a comment

Choose a reason for hiding this comment

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

@stevehipwell any problems with this?

@deiga deiga requested a review from stevehipwell April 14, 2026 20:27
@deiga deiga added this to the v6.12.0 Release milestone Apr 14, 2026
Copy link
Copy Markdown
Collaborator

@stevehipwell stevehipwell left a comment

Choose a reason for hiding this comment

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

@dvcorreia please could you rebase this PR.

LGTM

@stevehipwell
Copy link
Copy Markdown
Collaborator

@robert-crandall please could you review this PR.

The anonymous HTTP client was using a bare `http.Transport{}`
which does not respect `HTTP_PROXY`/`HTTPS_PROXY` environment
variables. This change clones `http.DefaultTransport` instead,
which has `Proxy: http.ProxyFromEnvironment` set by default.

Related to integrations#1509

Signed-off-by: Diogo Correia <[email protected]>
@dvcorreia dvcorreia force-pushed the fix/anonymous-client-proxy branch from 6f071eb to bfc9b87 Compare April 16, 2026 17:52
@dvcorreia
Copy link
Copy Markdown
Contributor Author

@dvcorreia please could you rebase this PR.

LGTM

Done!

@deiga deiga merged commit 7c777a1 into integrations:main Apr 16, 2026
7 checks passed
mkushakov pushed a commit to mkushakov/terraform-provider-github that referenced this pull request Apr 27, 2026
The anonymous HTTP client was using a bare `http.Transport{}`
which does not respect `HTTP_PROXY`/`HTTPS_PROXY` environment
variables. This change clones `http.DefaultTransport` instead,
which has `Proxy: http.ProxyFromEnvironment` set by default.

Related to integrations#1509

Signed-off-by: Diogo Correia <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug Something isn't working as documented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants