Skip to content

STA-4150: add Electron isolation and placement lifecycle - #14955

Closed
Jinwoo-H wants to merge 17 commits into
sta-4150-landing-paired-tunnel-routingfrom
sta-4150-landing-electron-lifecycle
Closed

Jinwoo-H wants to merge 17 commits into
sta-4150-landing-paired-tunnel-routingfrom
sta-4150-landing-electron-lifecycle

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 18 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2091 $\color{#cf222e}{\Huge{\mathbf{−}}}$​9 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2082
Prod 31 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3177 $\color{#cf222e}{\Huge{\mathbf{−}}}$​68 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3109

Summary

Stack 3/5 for STA-4150, based on #14954. Adds route-scoped Electron partitions, guest quarantine, renderer ownership, navigation and retirement fences, and explicit immutable client-page placement authority.

Proxy setup is invoked synchronously as soon as the route Session exists, before synchronous policy installation can wake a persisted service worker. Preparation then waits for proxy settlement, closes existing connections, verifies SOCKS routing, and only then allows page use.

Causal evidence

A real two-launch Electron fixture first persists a service worker, then forces it awake during the next launch. The old ordering records a direct desktop-localhost request before setProxy; the new ordering routes both that wake and a later worker fetch through the SOCKS execution route with zero path-attributed direct requests.

Compatibility

  • Placement remains server-hosted when omitted or ineligible.
  • No live migration, dual execution, or client-to-server fallback is added.
  • Exact generations prevent stale guest or placement adoption.
  • Failed policy setup still joins in-flight proxy setup and connection cleanup while preserving the original policy error.

Validation

  • Rebased onto origin/main@71bbab72e1; latest rebase preserves all 74 current patches exactly; the audit correction is the only additive patch relative to the prior published series
  • Exact lifecycle package: 3 files / 28 tests passed
  • Cumulative lifecycle slice: 9 files / 123 tests passed
  • Persisted-worker Electron fixture: three consecutive passes
  • Fresh latest-main overlap/lifecycle/wire gate: 8 files / 72 tests passed
  • CI reproduced the global-fetch audit on the injected worker source; the audit-only correction and exact worker oracle pass 2 files / 2 tests
  • Fresh current-head CI: 43 passes, 2 intentional skips, zero failures
  • Full Node/CLI/web typecheck, lint/audits, 89 reliability gates, max-lines, localization, formatting, headed paired-Electron E2E, and real headless orca serve E2E passed on the preceding identical patch series

Draft only. Do not merge outside the complete stack.

@Jinwoo-H Jinwoo-H changed the title sta 4150 landing electron lifecycle STA-4150: add Electron isolation and placement lifecycle Aug 16, 2026
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-paired-tunnel-routing branch from 7e18471 to a362565 Compare August 16, 2026 21:54
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-electron-lifecycle branch 2 times, most recently from cb04a85 to e6dbfb4 Compare August 16, 2026 22:01
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-paired-tunnel-routing branch from 92f9641 to fa00d9c Compare August 16, 2026 22:35
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-electron-lifecycle branch from e6dbfb4 to 7933e78 Compare August 16, 2026 22:35
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-paired-tunnel-routing branch from fa00d9c to 767b9ac Compare August 16, 2026 23:07
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-electron-lifecycle branch from 7933e78 to d402d88 Compare August 16, 2026 23:07
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-paired-tunnel-routing branch from 767b9ac to f783806 Compare August 17, 2026 00:01
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-electron-lifecycle branch 2 times, most recently from 11ba439 to 9ded878 Compare August 17, 2026 01:05
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-paired-tunnel-routing branch 2 times, most recently from 4f8f794 to c764292 Compare August 17, 2026 02:02
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-electron-lifecycle branch from 9ded878 to 54d78c8 Compare August 17, 2026 02:02
@Jinwoo-H

Copy link
Copy Markdown
Contributor Author

Latest-main security closure at 54d78c83c3:

  • A real Electron 43.1.0 control emitted four direct UDP/STUN packets from a SOCKS-partition guest; applying disable_non_proxied_udp to the exact recognized route guest reduced the same capture to zero while preserving SOCKS proxy resolution.
  • The policy-failure regression was red 1/23 because quarantine was installed too late. Quarantine now precedes policy application; delayed or throwing close remains navigation- and popup-denied, and the focused gate is green 24/24.
  • Exact-tip lifecycle, resource, and wire/security rereviews found no remaining proven P0/P1/P2.

Residual network-containment gaps remain for QUIC/HTTP3, DoH, WebTransport, persistent workers, network-service restart, and other non-WebRTC direct-egress paths.

@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-electron-lifecycle branch from 54d78c8 to 2024a2d Compare August 17, 2026 02:36
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-paired-tunnel-routing branch 2 times, most recently from 2915411 to aab80fb Compare August 17, 2026 03:54
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-electron-lifecycle branch from 2024a2d to 8822761 Compare August 17, 2026 03:54
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-paired-tunnel-routing branch from aab80fb to f41cf97 Compare August 17, 2026 04:01
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-electron-lifecycle branch from 8822761 to d2ece7c Compare August 17, 2026 04:01
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-paired-tunnel-routing branch from f41cf97 to 14079a0 Compare August 17, 2026 04:17
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-electron-lifecycle branch from 2324309 to 4490d98 Compare August 17, 2026 04:17
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-paired-tunnel-routing branch from 14079a0 to 0fd0dc0 Compare August 17, 2026 06:32
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-electron-lifecycle branch from 4490d98 to a46c591 Compare August 17, 2026 06:32
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-paired-tunnel-routing branch from 0fd0dc0 to db28693 Compare August 17, 2026 09:55
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-electron-lifecycle branch from a46c591 to a22c7b3 Compare August 17, 2026 09:55
@Jinwoo-H
Jinwoo-H marked this pull request as ready for review August 19, 2026 01:07
… proxy

Chromium routes component-update requests (gvt1.com) through the same fixed proxy, so an exact socksHosts match is not a stable oracle. Assert the target host is present instead.
@Jinwoo-H

Copy link
Copy Markdown
Contributor Author

Superseded by the consolidated PR #15448 (the full STA-4150 feature merged with latest main). This PR's diff remains as the per-layer review view; its CI was fully green at close.

@Jinwoo-H Jinwoo-H closed this Aug 19, 2026
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.

1 participant