Repository navigation
Conversation
db127af to
8d30ba0
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Included review availability: Your plan includes up to 10 reviews per rolling hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe change adds Merge Risk: ⚪ Minimal · up to This change enables OS certificate trust for first-party HTTPS and WebSocket traffic while keeping certificate and hostname verification enabled; no actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/main/runtime/first-party-relay-websocket.test.ts (1)
104-130: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick winClose the HTTPS server in
afterAll.
wss.close()does not close an externally supplied HTTPS server. Callserver.close()after terminating clients and closingwssto release the listening handle.Source: Linters/SAST tools
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: e0bce478-7bc0-43cf-b1c8-4f6ad0666f7d
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (18)
config/packaged-runtime-node-modules.cjsconfig/scripts/package-electron-runtime-contract.test.mjspackage.jsonsrc/main/artifacts/artifact-cloud-request.tssrc/main/global-fetch-call-site-audit.test.tssrc/main/orca-profiles/profile-cloud-client.tssrc/main/orca-profiles/profile-cloud-org-members-client.tssrc/main/runtime/first-party-fetch.test.tssrc/main/runtime/first-party-fetch.tssrc/main/runtime/first-party-relay-websocket.test.tssrc/main/runtime/first-party-relay-websocket.tssrc/main/runtime/first-party-tls-trust.tssrc/main/runtime/relay/relay-control-client.tssrc/main/runtime/relay/relay-http-client.test.tssrc/main/runtime/relay/relay-http-client.tssrc/main/runtime/relay/relay-region-preference.test.tssrc/main/runtime/relay/relay-region-preference.tssrc/main/runtime/rpc/relay-transport.ts
Included review availability: Your plan includes up to 10 reviews per rolling hour; 9 remain after this review.
|
This PR has been I rebased it onto current The one conflict was I also verified the change on a host that actually reproduces the failure — a Windows machine where a locally installed HTTPS-filtering tool re-signs chains with a root present only in the OS store. Inside the real Electron main process, with a negative control to isolate the trust store as the deciding factor: The WSS rows matter because #13735 specifically doubted whether the Happy to close #16399 if you would rather rebase this one yourself; the only goal is getting the fix onto a mergeable base. |
Summary
Fixes the Node-versus-browser TLS trust split behind transparent corporate TLS inspection for Orca-owned Cloud and Relay traffic.
net.fetch, inheriting Chromium/OS trust.undici.Agentwith Node default roots plus policy-filtered system roots.SecureContextbuilt from the same additive roots.The Node CA set is byte-identical to the same Electron/Node runtime launched with
--use-system-ca(124/124 certificates on the validation host).Invariant
For Orca first-party HTTPS/WSS traffic, a chain accepted by the runtime's additive system-CA mode must be accepted by the scoped Orca boundary, while that same chain must still fail without the trusted CA and hostname/certificate verification must remain enabled.
Deterministic reproduction
A local static CA/leaf fixture (valid 2020–2120, SANs
localhostand127.0.0.1) serves the byte-identical HTTPS/WSS oracle.origin/maintransportfixture-http-okfixture-wss-okIndependent signals are the TLS verification failure on the raw path and exact HTTP/WSS response bytes plus the control-socket Bearer header on the trusted path.
Validation
pnpm run typecheck:nodepassed.git diff --checkpassed.pnpm run build:electron-vitepassed.UNABLE_TO_VERIFY_LEAF_SIGNATURE; Electronnet.fetchHTTP 200 withfixture-http-ok.[email protected]; the dependency closure includes it for Windows, macOS, and Linux.The aggregate unpacked-build wrapper is currently blocked before packaging by two unrelated renderer test-fixture type errors in
open-tab-search-retention.test.ts. Direct Electron bundling passed; the packager then passed the main-runtime dependency verifier before later stopping on an absent prebuilt CLI artifact from the skipped aggregate build.Scope and compatibility
Related to #13735