Skip to content

Commit e03394d

Browse files
committed
feat(network): support prebound proxy listeners and per-connection identity
Serve an isolation backend-owned listener without releasing its reservation. Resolve and validate each authenticated connection's executable identity, keeping blocking lookups out of acceptance and denying failures before dispatch. Reuse the supervisor proxy for policy enforcement and provider credentials. Preserve static identity behavior and reject direct listener configuration with transparent network mediation. Closes NVIDIA#4804 Signed-off-by: Shiju <[email protected]>
1 parent ceecf02 commit e03394d

4 files changed

Lines changed: 532 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
@@ -14,3 +14,10 @@ allocator implementation belongs to the VM crate. The VM dependency disables
1414
default features, so this instrumentation does not
1515
require the compute runtime or Unix-only sandbox library. It is a development
1616
dependency only.
17+
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.

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

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

0 commit comments

Comments
 (0)