Skip to content

Take web-tooling v0.2.0: the browser in its own network namespace - #7

Merged
JaimeStill merged 1 commit into
mainfrom
web-tooling-0.2.0
Nov 30, 2026
Merged

JaimeStill merged 1 commit into
mainfrom
web-tooling-0.2.0

Conversation

@JaimeStill

Copy link
Copy Markdown
Contributor

Take web-tooling v0.2.0: the browser in a network namespace of its own

web-tooling v0.2.0 (standards-lab/web-tooling#7) runs Chrome in a user and network namespace of
its own, with only loopback up. Chrome used to drop every open connection, loopback included,
with net::ERR_NETWORK_CHANGED whenever any interface on the machine changed. A Docker network,
Wi-Fi, or a VPN was enough, and local browser tiers failed with "Failed to fetch dynamically
imported module".

  • Pins @standards-lab/web-tooling at #v0.2.0.
  • CI runs sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 before the check:
    Ubuntu runners refuse unprivileged user namespaces otherwise.
  • With launch() refused (a stub unshare), every browser test file fails promptly; none
    hangs.
  • Docs name the browser tier's new machine requirements: unshare, ip, and unprivileged user
    namespaces. CHANGELOG records the change under Unreleased.

web-tooling 0.2.0's launch() runs Chrome in a user and network namespace with only
loopback up, so a host link or address change no longer aborts the browser tier's
page loads with ERR_NETWORK_CHANGED. The machine now needs unshare, ip, and
unprivileged user namespaces.

- package.json and the lockfile pin github:standards-lab/web-tooling#v0.2.0.
- ci.yml and release.yml run "Allow the browser's network namespace"
  (sysctl kernel.apparmor_restrict_unprivileged_userns=0) just before the check,
  the shape of web-tooling's own CI.
- docs/testing.md says what the browser tier needs from the machine, pointing to
  web-tooling's README; docs/release.md names the CI step; CHANGELOG records it.

With a refusing unshare first on PATH, every browser test file fails in about
150 ms on launch()'s rejection: each after hook already closes with optional
chaining, so the server started before launch() is stopped, and no test changed.
No test or doc named ERR_NAME_NOT_RESOLVED.
@JaimeStill
JaimeStill merged commit 57e7a14 into main Nov 30, 2026
1 check passed
@JaimeStill
JaimeStill deleted the web-tooling-0.2.0 branch November 30, 2026 11:21
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