Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions crates/openshell-supervisor-network/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ dependency only.

Before the supervisor forwards a connection it cannot inspect (`tls: skip`, transparent TCP, h2c, unsupported tunnels, SQL passthrough), `uninspectable_traffic_gate` checks the matching middleware chain. Any `fail_closed` entry denies the connection, and an all-`fail_open` chain relays it with a bypass finding. For `tls: skip`, the gate runs before `200 Connection Established`, so a denial is a `403`.

## Direct proxy support

Isolation backends can reuse the supervisor's explicit proxy with a reserved
listener and per-connection executable identity. This keeps network policy
enforcement in the supervisor while the backend's launcher retains its socket
reservation through sandbox cleanup. Attribution failures deny the request.

## Sandbox instance inputs

`run_networking` takes a `SandboxInstanceNetwork` with the sandbox identity,
Expand Down
9 changes: 7 additions & 2 deletions crates/openshell-supervisor-network/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,13 @@ pub async fn start_host_proxy(config: HostProxyConfig) -> Result<HostProxyHandle
None,
None,
None,
Some(direct_listener_identity),
None,
Some(crate::run::ProxyListenerConfig {
bind_addr: config.bind_addr,
authorization: None,
binary_identity: direct_listener_identity,
listener: None,
identity_resolver: None,
}),
None,
)
.await?;
Expand Down
Loading
Loading