Skip to content

test(browser): verify TinyComputer egress admission - #16

Merged
senamakel merged 24 commits into
epic/7328-security-busfrom
epic-7328-111-browser-egress
Oct 22, 2026
Merged

senamakel merged 24 commits into
epic/7328-security-busfrom
epic-7328-111-browser-egress

Conversation

@senamakel

@senamakel senamakel commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Part of OpenHuman #7328, implementing TinyComputer #111 on the epic/7328-security-bus branch.

Changes

  • Adds live Chromium coverage for denied redirects, subresources, WebSockets, worker fetches, and DNS rebinding to a private address, alongside allowed navigation and a host-permitted cross-origin asset.
  • Adds an opt-in loaded-module test that exercises browser egress through TinyBus, verifies the module dials only the socket returned by the host, and rejects a grant after the host policy changes.
  • Runs the live browser suite serially in the feature-test matrix.
  • Updates dependency gitlinks needed by the feature: TinyBus v0.1.9 (d22fb0bcc3d4d35b5e5b56c37fa0292ce3d96303, using rawzip), agent-browser 76e4892d1946e80b28b5b97fc29c44158e847c77 (zip 9.x fix), Agent Desktop epic merge fee077c47cbad3317b7bf7ec7a99a2b6ae233376 (TraceSink API), and TinyInference 03adc8b92ec8ada4d69533f30731f56e7775b8c8 (usage and evaluation APIs). No dependency source is modified in this PR.
  • Refreshes Cargo.lock for those dependency snapshots, including zip 9.0.5 and nix 0.31.3.

Validation

GitHub Actions run 39716465053 passed all 13 checks on this head: formatting, clippy, tests, coverage, docs, MSRV, supply-chain, and feature-test and module-E2E jobs across Linux, macOS, and Windows. The Windows feature-test job passed on its targeted rerun. The live DNS-rebinding test passed on all three operating systems.

senamakel and others added 24 commits October 22, 2026 00:59
…erence

Update the pinned submodule commits for the four vendored dependencies to
their latest revisions.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
…erence

Update the pinned submodule commits for the four vendored dependencies to
their latest revisions.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Wire up a build script and gate a new live browser egress test module
behind the live_module_browser_egress_tests cfg so the tests only
compile when explicitly requested.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Update the live Chromium egress test to use the browser interface names and
the current navigate request shape, and tighten the host authorizer to only
grant the fixture hostname and port. The authorize call count assertion is
relaxed to at least two since Chromium may issue extra requests, and the
denied socket check now compares against the listener's address directly.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Add an explicit u16 turbofish to the port parse call so the inferred type is
unambiguous.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
The live egress test now checks that opening a session reports launched as true, and it no longer passes a headless option when opening the session.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
…erence

Update the pinned submodule commits for the four vendored dependencies to
their latest revisions.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Rename the live Chromium test to match the live_ prefix convention and
bound the fixture server wait with a ten second timeout so a hung task
fails instead of blocking. The authorizer assertion now compares the
count before and after the policy change rather than requiring at least
two calls, and the rebinding wording is corrected to describe a policy
refresh.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Reindent the chained iterator calls in the policy change assertion so the
continuation lines align with the surrounding code. No behaviour change.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Regenerate Cargo.lock after dependency changes, which drops several
transitive crates and pins zip to 8.6.0. The vendored tinybus submodule
is bumped to match.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Add a live Chromium test asserting that a fetch issued from a worker script never reaches a denied destination, and extend the tinybus egress fixture to record resolved addresses and tolerate extra connections so the new case can be observed.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
The feature test script now runs the browser crate's live tests with the live browser flag enabled, so that path is exercised alongside the existing workspace and feature test runs.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Update the vendored tinybus submodule from 0.1.6 to 0.1.9 and refresh Cargo.lock to match. The new revision drops the zip 2.6.1 dependency in favour of rawzip and adds icu_casemap and unicode-normalization.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Refresh the lockfile to pick up zip 9.0.5, which adds a nix 0.31.3 dependency, and drop the now-unused webpki-roots 0.26.11 entry in favour of the 1.0.10 release. Also bump windows-sys for the getrandom crate.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Update the vendored tinyinference submodule to the latest upstream commit.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Update the agent-desktop crates to 0.10.1 and regenerate Cargo.lock, which pulls in new transitive dependencies for the Windows backend and adds several crates to the dependency graph.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
The DNS rebinding live test now binds its private listener to the same port
as the allowed listener on IPv6 loopback, so the rebound connection is
actually directed at the private socket rather than an unrelated port.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
@senamakel
senamakel marked this pull request as ready for review October 22, 2026 04:07
@senamakel
senamakel merged commit 05ee0e6 into epic/7328-security-bus Oct 22, 2026
25 of 26 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.

1 participant