GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(http): preserve TLS options for proxy tunnels by jasonsaayman · Pull Request #10957 · axios/axios

Conversation

@jasonsaayman

@jasonsaayman jasonsaayman commented May 28, 2026 •
edited by cubic-dev-ai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Summary

Fixes a Node HTTP adapter regression where custom httpsAgent TLS options were not applied to the tunneled HTTPS origin after CONNECT proxy setup.

Linked issue

Closes #10953

Changes

  • Merge user httpsAgent.options into the HttpsProxyAgent callback options used for the post-CONNECT TLS upgrade.
  • Add an HTTP CONNECT proxy regression test with a self-signed HTTPS origin trusted via httpsAgent.ca.
  • Record the bug fix in the pre-release changelog.

Checklist

  • Tests added or updated (or N/A with reason)
  • Docs / types updated if public API changed (index.d.ts and index.d.cts)
  • No breaking changes (or called out explicitly above)

Summary by cubic

Fixes a Node HTTP adapter regression that dropped httpsAgent TLS options (e.g., ca, rejectUnauthorized) when connecting to an HTTPS origin through a CONNECT proxy. Restores expected TLS behavior for tunneled requests.

Description

  • Summary of changes
    • Merge user httpsAgent.options into HttpsProxyAgent constructor and its callback so post-CONNECT TLS uses the same options.
    • Add an integration test for CONNECT → HTTPS with a self-signed origin trusted via httpsAgent.ca.
    • Add a pre-release changelog entry.
  • Reasoning
    • Without forwarding these options, tunneled HTTPS requests could not trust custom CAs or honor rejectUnauthorized, causing failures.
  • Additional context
    • Addresses issue Problem handling self signed cert for proxy in 1.16.1 #10953.

Docs

  • Propose a brief note in /docs/ explaining that httpsAgent TLS options are honored for HTTPS origins behind HTTP CONNECT proxies, with an example showing proxy + httpsAgent (custom ca, rejectUnauthorized).

Testing

  • Added an integration test that sets up:
    • An HTTP proxy handling CONNECT.
    • An HTTPS origin with a self-signed cert.
    • A request using httpsAgent.ca to trust the origin and verify payload and plaintext is not leaked.
  • Updated a unit test name to reflect constructor-option merging. No other test changes required.

Semantic version impact

  • Patch: bug fix with no API changes.

Written for commit 1b359a8. Summary will update on new commits.

Review in cubic

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jasonsaayman
fix(http): preserve TLS options for proxy tunnels
1b359a8
cubic-dev-ai[bot]
cubic-dev-ai Bot reviewed May 28, 2026
View reviewed changes

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jasonsaayman jasonsaayman self-assigned this May 28, 2026
@jasonsaayman jasonsaayman added priority::medium labels May 28, 2026
@jasonsaayman
jasonsaayman merged commit 3dec28f into v1.x May 28, 2026
29 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@jasonsaayman
jasonsaayman deleted the fix/issue-10953-proxy-origin-tls branch May 28, 2026 18:46
This was referenced Aug 24, 2026
Problem handling self signed cert for proxy in 1.16.1 #10953
Closed
httpsAgent TLS options (ca) still dropped when used with proxy in 1.18.0 #11168
Closed
@jasonsaayman jasonsaayman mentioned this pull request Aug 31, 2026
Issue with CA certs in 1.18.0 #11176
Closed
@jasonsaayman jasonsaayman mentioned this pull request Oct 13, 2026
fix(http): apply https.globalAgent TLS options to proxy tunnels #11178
Merged
8 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cubic-dev-ai cubic-dev-ai[bot] cubic-dev-ai[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@jasonsaayman jasonsaayman

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Problem handling self signed cert for proxy in 1.16.1

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@jasonsaayman
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.