Skip to content

feat: enforce browser egress through host callbacks - #26

Merged
senamakel merged 3 commits into
epic/8056-modules-wiringfrom
sec-656-secret-cipher
Oct 27, 2026
Merged

senamakel merged 3 commits into
epic/8056-modules-wiringfrom
sec-656-secret-cipher

Conversation

@senamakel

Copy link
Copy Markdown
Owner

Ports browser network egress enforcement onto the v2.21 TinyComputer API without changing the submodule pin history.

The module now exposes a typed BrowserEgressHost callback contract, validates the host-selected policy and generation from private module config, and launches browsers behind a per-session loopback proxy. Each destination is authorized and each exact socket grant is consumed by the host callback before dialing; active tunnels revalidate their lease. Missing callbacks, malformed/stale grants, and host denials fail closed. Caller-provided browser launch arguments are refused when egress policy is configured.

Also adds optional HostContext to continuation and consequence review requests, relayed unchanged and omitted from old wire payloads. Existing AgentResponse.version validation remains intact.

Validation:

  • cargo test --manifest-path vendor/tinycomputer/Cargo.toml -p tinycomputer -p tinycomputer-bus -p tinycomputer-browser --features tinycomputer-browser/agent-browser
  • cargo clippy --manifest-path vendor/tinycomputer/Cargo.toml -p tinycomputer -p tinycomputer-bus -p tinycomputer-browser --all-targets -- -D warnings
  • cargo clippy --manifest-path vendor/tinycomputer/Cargo.toml -p tinycomputer-browser --features agent-browser --all-targets -- -D warnings
  • cargo fmt --manifest-path vendor/tinycomputer/Cargo.toml --all -- --check

Refs senamakel/openhuman#656

senamakel and others added 3 commits October 27, 2026 04:38
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
@senamakel
senamakel merged commit 27b9f39 into epic/8056-modules-wiring Oct 27, 2026
13 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