Skip to content

fix(browser): sink remaining Chrome vendor egress and repair egress check - #215

Merged
ElbertePlinio merged 5 commits into
mainfrom
fix/139-browser-egress
Sep 28, 2026
Merged

ElbertePlinio merged 5 commits into
mainfrom
fix/139-browser-egress

Conversation

@ElbertePlinio

@ElbertePlinio ElbertePlinio commented Sep 27, 2026 •

Copy link
Copy Markdown
Member

Closes #139.

What

Each remaining vendor destination was traced to its Chromium client through the NetLog traffic_annotation hash, then removed on headed Chrome 154 under Xvfb, one variant at a time:

Destination Client Change
clients2.google.com network_time_component NetworkTimeServiceQuerying disabled
www.gstatic.com safe_browsing_ohttp_key_fetch SafeBrowsingHashPrefixRealTimeLookups disabled
www.google.com aim_eligibility_fetch + startup search preconnect AimEnabled, PreconnectToSearch disabled
accounts.google.com gaia_auth_list_accounts --gaia-url=https://127.0.0.1:0
update.googleapis.com, edgedl.me.gvt1.com update_client (on-device model manifest, registered despite --disable-component-update) --component-updater=url-source=https://127.0.0.1:0

One vendor request remains, and the README documents it. Chrome's activity reporter ({cd7cc169-...} via update_client) pings update.googleapis.com once when a browser session ends, including at close. It uses a hardcoded URL and has no switch or feature to disable it. Only a proxy or resolver rule could block it, and the args test deliberately rules out --host-resolver-rules. The other remaining entry, [2001:4860:4860::8888]:443, is Chrome's IPv6 reachability probe, a UDP connect that sends zero bytes.

scripts/lab/chrome-egress-check.mjs:

  • Close: resolves on the Browser.close acknowledgement. Chrome replies, then drops the socket with an error and close 1006, which used to fail the close step.
  • Cleanup: passes --project-dir only to session create. session destroy rejects it and already reads the check's own PICKFORGE_HOME.
  • Reporting: skips *_LOCAL_ADDRESS events, which named the host's own interface. It also surfaces the lab's JSON error on stdout when a lab command fails.
  • Window: observes for 120 s, since the component update check starts at about 90 s.

Validation

  • bun run lint, bun run typecheck and bun run build pass. PICKFORGE_REQUIRE_BROWSER=1 bun run test:coverage passes: 2132 tests, 6 skipped.
  • The Browser.close sequence was reproduced with Node's WebSocket against Chrome 154.
  • The reporter over the final capture prints only the IPv6 probe and exits 0.
  • An independent review of the change found nothing actionable.

Re-run

Two runs of node scripts/lab/chrome-egress-check.mjs through this branch's pickforge-lab 0.6.0 build, Chrome 154.0.8037.57, both exit 0 with cleanup succeeding. Each run reported only the IPv6 probe and the shutdown activity ping to update.googleapis.com. The model-manifest update_client requests went to https://127.0.0.1:0/. Run 2 also listed the resolved and connected address for that one ping.

…heck

Disable network time, Safe Browsing real-time lookups, AI Mode eligibility
and the search preconnect, and point Gaia and the component updater at an
unusable loopback endpoint. The egress check now resolves on the
Browser.close acknowledgement, passes --project-dir only to session create,
ignores local-address events and observes for 120 seconds.

Refs #139
execFile leaves stdout out of the error message, so a failed session create
reported nothing about why it failed.

Refs #139
@ElbertePlinio
ElbertePlinio merged commit 3e50077 into main Sep 28, 2026
10 checks passed
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.

fix(browser): remaining vendor egress and egress-check script cleanup

1 participant