Skip to content

tiup HTTP clients ignore NO_PROXY#2711

Open
Jaehui-Lee wants to merge 1 commit into
pingcap:masterfrom
Jaehui-Lee:fix/2710-honor-no-proxy
Open

tiup HTTP clients ignore NO_PROXY#2711
Jaehui-Lee wants to merge 1 commit into
pingcap:masterfrom
Jaehui-Lee:fix/2710-honor-no-proxy

Conversation

@Jaehui-Lee

Copy link
Copy Markdown

Fixes #2710

@ti-chi-bot

ti-chi-bot Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign xhebox for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot

ti-chi-bot Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Welcome @Jaehui-Lee! It looks like this is your first PR to pingcap/tiup 🎉

@pingcap-cla-assistant

pingcap-cla-assistant Bot commented Jun 4, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@ti-chi-bot ti-chi-bot Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 4, 2026
NewHTTPClient and makeTransport set the proxy via http.ProxyURL, which ignores
NO_PROXY and forces internal PD/TiKV requests through HTTP_PROXY, breaking
`tiup cluster reload` behind a proxy. Resolve it via x/net/http/httpproxy so
NO_PROXY is honored; the TIUP_INNER_HTTP_PROXY override is kept. Add unit tests.

Signed-off-by: Jaehui-Lee <tkdoqr1234@gmail.com>
@Jaehui-Lee Jaehui-Lee force-pushed the fix/2710-honor-no-proxy branch from 87e42d9 to c0ed112 Compare June 4, 2026 07:18
@Jaehui-Lee Jaehui-Lee changed the title utils,cluster/spec: honor NO_PROXY in HTTP clients tiup HTTP clients ignore NO_PROXY Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution first-time-contributor size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tiup HTTP clients ignore NO_PROXY

1 participant