Repository navigation
feat: enforce browser egress through host callbacks - #26
Merged
Merged
Conversation
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
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.
Ports browser network egress enforcement onto the v2.21 TinyComputer API without changing the submodule pin history.
The module now exposes a typed
BrowserEgressHostcallback 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
HostContextto continuation and consequence review requests, relayed unchanged and omitted from old wire payloads. ExistingAgentResponse.versionvalidation remains intact.Validation:
cargo test --manifest-path vendor/tinycomputer/Cargo.toml -p tinycomputer -p tinycomputer-bus -p tinycomputer-browser --features tinycomputer-browser/agent-browsercargo clippy --manifest-path vendor/tinycomputer/Cargo.toml -p tinycomputer -p tinycomputer-bus -p tinycomputer-browser --all-targets -- -D warningscargo clippy --manifest-path vendor/tinycomputer/Cargo.toml -p tinycomputer-browser --features agent-browser --all-targets -- -D warningscargo fmt --manifest-path vendor/tinycomputer/Cargo.toml --all -- --checkRefs senamakel/openhuman#656