Skip to content

Commit 28d70ba

Browse files
committed
feat(podman): adopt isolated sandbox and supervisor containers
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
1 parent 7209c5e commit 28d70ba

18 files changed

Lines changed: 1658 additions & 1217 deletions

File tree

‎Cargo.lock‎

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎architecture/compute-runtimes.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ gateway. A supported runtime provisions `openshell-sandbox` inside the workload,
55
`openshell-supervisor` outside it, a protected channel between them, and an
66
independent outer network fence. Drivers do not implement policy evaluation.
77

8+
Podman provisions a paired workload and supervisor container using its native
9+
libpod API. The workload uses `network=none`; the external supervisor alone joins
10+
the configured network. A per-sandbox named volume carries their mutually
11+
authenticated gRPC Unix socket, with supervisor credentials kept in its separate
12+
filesystem. Both containers run as the resolved non-root identity with all
13+
capabilities dropped. They share only a user namespace for volume ownership,
14+
not PID, mount, or network namespaces. Podman owns paired lifecycle and health;
15+
the common protocol owns process, identity, TCP, DNS, and forwarding semantics.
16+
817
## Driver Contract
918

1019
Each runtime receives a sandbox spec and canonical policy from the gateway and

‎crates/openshell-driver-podman/Cargo.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ path = "src/main.rs"
1717
[dependencies]
1818
openshell-core = { path = "../openshell-core", default-features = false, features = ["driver-extraction"] }
1919
openshell-otel = { path = "../openshell-otel" }
20+
openshell-isolation-interface = { path = "../openshell-isolation-interface" }
21+
tar = "0.4"
22+
uuid = { workspace = true }
2023

2124
tokio = { workspace = true }
2225
tonic = { workspace = true, features = ["transport"] }

0 commit comments

Comments
 (0)