Repository navigation
fix(browser): sink remaining Chrome vendor egress and repair egress check - #215
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #139.
What
Each remaining vendor destination was traced to its Chromium client through the NetLog
traffic_annotationhash, then removed on headed Chrome 154 under Xvfb, one variant at a time:clients2.google.comnetwork_time_componentNetworkTimeServiceQueryingdisabledwww.gstatic.comsafe_browsing_ohttp_key_fetchSafeBrowsingHashPrefixRealTimeLookupsdisabledwww.google.comaim_eligibility_fetch+ startup search preconnectAimEnabled,PreconnectToSearchdisabledaccounts.google.comgaia_auth_list_accounts--gaia-url=https://127.0.0.1:0update.googleapis.com,edgedl.me.gvt1.comupdate_client(on-device model manifest, registered despite--disable-component-update)--component-updater=url-source=https://127.0.0.1:0One vendor request remains, and the README documents it. Chrome's activity reporter (
{cd7cc169-...}via update_client) pingsupdate.googleapis.comonce 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:Browser.closeacknowledgement. Chrome replies, then drops the socket with an error and close 1006, which used to fail the close step.--project-dironly tosession create.session destroyrejects it and already reads the check's ownPICKFORGE_HOME.*_LOCAL_ADDRESSevents, which named the host's own interface. It also surfaces the lab's JSON error on stdout when a lab command fails.Validation
bun run lint,bun run typecheckandbun run buildpass.PICKFORGE_REQUIRE_BROWSER=1 bun run test:coveragepasses: 2132 tests, 6 skipped.Re-run
Two runs of
node scripts/lab/chrome-egress-check.mjsthrough this branch'spickforge-lab0.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 toupdate.googleapis.com. The model-manifestupdate_clientrequests went tohttps://127.0.0.1:0/. Run 2 also listed the resolved and connected address for that one ping.