Skip to content

fix: Load custom CA certificates in fast webpki-only HTTP client#12591

Merged
anthonyshew merged 1 commit intomainfrom
shew/investigate-12590
Apr 9, 2026
Merged

fix: Load custom CA certificates in fast webpki-only HTTP client#12591
anthonyshew merged 1 commit intomainfrom
shew/investigate-12590

Conversation

@anthonyshew
Copy link
Copy Markdown
Contributor

@anthonyshew anthonyshew commented Apr 9, 2026

Summary

Closes #12590

  • The two-phase SharedHttpClient builds a fast webpki-only client (~0ms) before the full native-certs client (~200ms on macOS). When a remote cache request fires before the native client is ready, the fast client handles it — but it has no custom CA certificates, so connections to self-hosted caches with custom CAs fail intermittently.
  • The fast client now loads certificates from SSL_CERT_FILE and SSL_CERT_DIR env vars via file I/O (no Keychain access), preserving the performance benefit while ensuring custom CAs work from the first request.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
examples-basic-web Ready Ready Preview, Comment, Open in v0 Apr 9, 2026 7:23pm
examples-designsystem-docs Ready Ready Preview, Comment, Open in v0 Apr 9, 2026 7:23pm
examples-gatsby-web Ready Ready Preview, Comment, Open in v0 Apr 9, 2026 7:23pm
examples-kitchensink-blog Ready Ready Preview, Comment, Open in v0 Apr 9, 2026 7:23pm
examples-nonmonorepo Ready Ready Preview, Comment, Open in v0 Apr 9, 2026 7:23pm
examples-svelte-web Ready Ready Preview, Comment, Open in v0 Apr 9, 2026 7:23pm
examples-tailwind-web Ready Ready Preview, Comment, Open in v0 Apr 9, 2026 7:23pm
examples-vite-web Ready Ready Preview, Comment, Open in v0 Apr 9, 2026 7:23pm
turbo-site Ready Ready Preview, Comment, Open in v0 Apr 9, 2026 7:23pm

@anthonyshew anthonyshew requested a review from a team as a code owner April 9, 2026 18:49
@anthonyshew anthonyshew requested review from tknickman and removed request for a team April 9, 2026 18:49
Comment thread crates/turborepo-api-client/src/lib.rs
Comment thread crates/turborepo-api-client/src/lib.rs Outdated
@anthonyshew anthonyshew force-pushed the shew/investigate-12590 branch from aadbb01 to 80753d2 Compare April 9, 2026 19:21
@anthonyshew anthonyshew enabled auto-merge (squash) April 9, 2026 19:27
@anthonyshew anthonyshew merged commit 28db7d0 into main Apr 9, 2026
57 checks passed
@anthonyshew anthonyshew deleted the shew/investigate-12590 branch April 9, 2026 19:33
github-actions Bot added a commit that referenced this pull request Apr 9, 2026
## Release v2.9.6-canary.3

Versioned docs: https://v2-9-6-canary-3.turborepo.dev

### Changes

- chore: Delete agents app (#12587) (`9018c65`)
- release(turborepo): 2.9.6-canary.2 (#12588) (`b412177`)
- fix: Load custom CA certificates in fast webpki-only HTTP client
(#12591) (`28db7d0`)
- docs: Remove pre-release badges (#12592) (`861efa8`)

Co-authored-by: Turbobot <turbobot@vercel.com>
github-actions Bot added a commit that referenced this pull request Apr 10, 2026
## Release v2.9.6

Versioned docs: https://v2-9-6.turborepo.dev

### Changes

- release(turborepo): 2.9.5 (#12577) (`3c552d9`)
- docs: Add Bun equivalent for updating dependencies (#12580)
(`5563b8e`)
- fix: Mention `turbo.json` in concurrency error message (#12582)
(`4fabc54`)
- release(turborepo): 2.9.6-canary.1 (#12583) (`aba98af`)
- fix: Surface actionable message when remote cache is requested but not
linked (#12584) (`219b602`)
- fix: Add missing `@types/node` to `with-svelte` example apps (#12585)
(`8338f42`)
- chore: Update dependencies found in audits (#12586) (`5d19186`)
- chore: Delete agents app (#12587) (`9018c65`)
- release(turborepo): 2.9.6-canary.2 (#12588) (`b412177`)
- fix: Load custom CA certificates in fast webpki-only HTTP client
(#12591) (`28db7d0`)
- docs: Remove pre-release badges (#12592) (`861efa8`)
- release(turborepo): 2.9.6-canary.3 (#12593) (`5a8f2e8`)
- feat(sandbox): Bump @vercel/sandbox from v1 to beta (#12595)
(`dba017a`)

---------

Co-authored-by: Turbobot <turbobot@vercel.com>
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.

Turbo > 2.8.14 fails to connect to self-hosted remote cache server with custom CA

1 participant