Skip to content

Commit 57ef5c7

Browse files
committed
feat(proxy): compose backend listeners with connection identity
Accept backend-owned prebound listeners and validate executable identity for each workload connection. Retain reservation ownership through cleanup and fail closed when identity is unavailable. Closes #4804 Signed-off-by: Shiju <[email protected]>
1 parent c92c2c7 commit 57ef5c7

4 files changed

Lines changed: 533 additions & 23 deletions

File tree

‎crates/openshell-supervisor-network/README.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ default features, so this instrumentation does not
1515
require the compute runtime or Unix-only sandbox library. It is a development
1616
dependency only.
1717

18+
## Direct proxy support
19+
20+
Isolation backends can reuse the supervisor's explicit proxy with a reserved
21+
listener and per-connection executable identity. This keeps network policy
22+
enforcement in the supervisor while the backend's launcher retains its socket
23+
reservation through sandbox cleanup. Attribution failures deny the request.
24+
1825
## Sandbox instance inputs
1926

2027
`run_networking` takes a `SandboxInstanceNetwork` with the sandbox identity,

‎crates/openshell-supervisor-network/src/host.rs‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,13 @@ pub async fn start_host_proxy(config: HostProxyConfig) -> Result<HostProxyHandle
222222
None,
223223
None,
224224
None,
225-
Some(direct_listener_identity),
226-
None,
225+
Some(crate::run::ProxyListenerConfig {
226+
bind_addr: config.bind_addr,
227+
authorization: None,
228+
binary_identity: direct_listener_identity,
229+
listener: None,
230+
identity_resolver: None,
231+
}),
227232
None,
228233
)
229234
.await?;

0 commit comments

Comments
 (0)