Skip to content

feat: add ignoreProxyCertificate option for the internal proxy-chain instance#3418

Merged
barjin merged 5 commits into
masterfrom
feat/ignore-https-errors-proxy
Feb 17, 2026
Merged

feat: add ignoreProxyCertificate option for the internal proxy-chain instance#3418
barjin merged 5 commits into
masterfrom
feat/ignore-https-errors-proxy

Conversation

@barjin
Copy link
Copy Markdown
Member

@barjin barjin commented Feb 16, 2026

Adds ignoreProxyCertificate option to launchContext. When set to true, this ignores TLS issues with the upstream HTTPS proxy.

Closes #3369

@barjin barjin requested a review from Copilot February 16, 2026 13:52
@barjin barjin self-assigned this Feb 16, 2026
@github-actions github-actions Bot added this to the 134th sprint - Tooling team milestone Feb 16, 2026
@github-actions github-actions Bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Feb 16, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for the ignoreProxyCertificate option to resolve TLS certificate errors when using HTTPS proxies with self-signed certificates, addressing issue #3369 where BrightData HTTPS proxies were failing with net::ERR_TUNNEL_CONNECTION_FAILED.

Changes:

  • Added ignoreProxyCertificate option to LaunchContext, BrowserPlugin, and related interfaces
  • Modified anonymizeProxySugar to accept and pass through ignoreProxyCertificate to the internal proxy-chain library
  • Updated all browser plugins (Playwright, Puppeteer, Stagehand) to propagate the option through their proxy handling logic

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/browser-pool/src/launch-context.ts Added ignoreProxyCertificate field to interface and class with default value of false
packages/browser-pool/src/abstract-classes/browser-plugin.ts Added ignoreProxyCertificate option to BrowserPluginOptions and propagated through createLaunchContext
packages/browser-pool/src/anonymize-proxy.ts Created AnonymizeProxySugarOptions interface and modified logic to invoke proxy chain when ignoreProxyCertificate is set
packages/browser-pool/src/playwright/playwright-plugin.ts Passed ignoreProxyCertificate to anonymizeProxySugar during browser launch
packages/browser-pool/src/playwright/playwright-controller.ts Passed ignoreProxyCertificate to anonymizeProxySugar during incognito page creation
packages/browser-pool/src/puppeteer/puppeteer-plugin.ts Passed ignoreProxyCertificate to anonymizeProxySugar in browser launch and incognito context
packages/browser-pool/src/puppeteer/puppeteer-controller.ts Passed ignoreProxyCertificate to anonymizeProxySugar during context creation
packages/browser-crawler/src/internals/browser-launcher.ts Added ignoreProxyCertificate option to BrowserLaunchContext interface and validation
packages/stagehand-crawler/src/internals/stagehand-plugin.ts Passed ignoreProxyCertificate to anonymizeProxySugar for Stagehand proxy handling
packages/memory-storage/src/resource-clients/key-value-store.ts Unrelated formatting change (collapsed multi-line code to single line)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/memory-storage/src/resource-clients/key-value-store.ts Outdated
Comment thread packages/browser-pool/src/anonymize-proxy.ts
Comment thread packages/browser-pool/src/anonymize-proxy.ts
@github-actions github-actions Bot added the tested Temporary label used only programatically for some analytics. label Feb 16, 2026
@barjin barjin changed the title feat: add ignoreProxyCertificate for the internal proxy-chain instance feat: add ignoreProxyCertificate option for the internal proxy-chain instance Feb 16, 2026
@barjin barjin assigned janbuchar and barjin and unassigned janbuchar and barjin Feb 16, 2026
@barjin barjin requested review from janbuchar and l2ysho February 16, 2026 14:37
Copy link
Copy Markdown
Contributor

@l2ysho l2ysho left a comment

Choose a reason for hiding this comment

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

approved, just small nit

Comment thread test/browser-pool/anonymize-proxy-sugar.test.ts
@barjin barjin merged commit 02eec66 into master Feb 17, 2026
9 checks passed
@barjin barjin deleted the feat/ignore-https-errors-proxy branch February 17, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

page.goto: net::ERR_TUNNEL_CONNECTION_FAILED When using browser-pool and https proxy

5 participants