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 @@ -15,6 +15,13 @@ default features, so this instrumentation does not
require the compute runtime or Unix-only sandbox library. It is a development
dependency only.

## 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