Skip to content

Commit 62a943a

Browse files
committed
feat(isolation): add boundary protocol and Linux primitives
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
1 parent 05a961b commit 62a943a

24 files changed

Lines changed: 7580 additions & 20 deletions

‎AGENTS.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ These pipelines connect skills into end-to-end workflows. Individual skill files
3939
| `crates/openshell-conformance-cli/` | Conformance CLI | Distributable `list` and `run` entrypoint for gateway conformance |
4040
| `crates/openshell-server/` | Gateway server | Control-plane API, sandbox lifecycle, auth boundary |
4141
| `crates/openshell-sandbox/` | Sandbox runtime | Container supervision, policy-enforced egress routing |
42+
| `crates/openshell-binary-identity/` | Binary identity | Shared trusted procfs executable identity resolution for isolation backends |
4243
| `crates/openshell-isolation-interface/` | Isolation backend interface | RFC 0012 `IsolationBackend` trait + types; the supervisor-facing runtime contract for the boundary |
4344
| `crates/openshell-policy/` | Policy engine | Filesystem, network, process, and inference constraints |
4445
| `crates/openshell-router/` | Privacy router | Privacy-aware LLM routing |
@@ -67,7 +68,7 @@ These pipelines connect skills into end-to-end workflows. Individual skill files
6768
| `crates/openshell-supervisor-middleware/` | Middleware runtime | Generic middleware registry, remote service integration, and chain execution |
6869
| `crates/openshell-supervisor-middleware-builtins/` | Built-in middleware | First-party in-process middleware implementations |
6970
| `crates/openshell-supervisor-network/` | Network supervisor | Proxying, L7 enforcement, policy evaluation, and inference routing |
70-
| `crates/openshell-supervisor-process/` | Process supervisor | Process lifecycle, namespace, and bypass monitoring |
71+
| `crates/openshell-supervisor-process/` | Supervisor process runtime | Gateway sessions, SSH access, and remote sandbox process control |
7172
| `crates/openshell-vfio/` | VFIO support | PCI and GPU passthrough preparation and lifecycle |
7273
| `python/openshell/` | Python SDK | Python bindings and CLI packaging |
7374
| `sdk/typescript/` | TypeScript SDK | Native Connect client, curated sandbox API, and generated protobuf types |

‎Cargo.lock‎

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

‎Cargo.toml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ hyper-util = { version = "0.1", features = ["tokio", "server-auto"] }
3333
http = "1.2"
3434
http-body = "1.0"
3535
http-body-util = "0.1"
36+
h2 = "0.4"
3637

3738
# TLS
3839
tokio-rustls = { version = "0.26", default-features = false, features = ["logging", "tls12", "ring"] }
3940
rustls = { version = "0.23", default-features = false, features = ["std", "logging", "tls12", "ring"] }
4041
rustls-pemfile = "2"
41-
rcgen = { version = "0.13", features = ["crypto", "pem"] }
42+
rcgen = { version = "0.13", features = ["crypto", "pem", "x509-parser"] }
4243
webpki-roots = "1"
4344
rustls-native-certs = "0.8"
4445

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
[package]
5+
name = "openshell-binary-identity"
6+
description = "Trusted executable identity resolution for OpenShell isolation backends"
7+
version.workspace = true
8+
edition.workspace = true
9+
rust-version.workspace = true
10+
license.workspace = true
11+
repository.workspace = true
12+
13+
[dependencies]
14+
openshell-isolation-interface = { path = "../openshell-isolation-interface" }
15+
sha2 = { workspace = true }
16+
17+
[lints]
18+
workspace = true
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Binary identity
2+
3+
`openshell-binary-identity` provides shared executable-identity resolution for
4+
RFC 0012 isolation backends. Runtime-specific observers remain in their backend:
5+
Docker obtains an authoritative thread ID from seccomp notification, while the
6+
co-located Linux path maps an accepted socket to its owning processes.
7+
8+
Given an authoritative Linux PID and an optional trusted process-tree root, the
9+
crate reads the executable path from procfs, hashes the live `/proc/<pid>/exe`
10+
object, and collects bounded executable ancestry and diagnostic command-line
11+
paths. Resolution failures are returned as `ResolveError` so the caller can
12+
deny the associated connection.
13+
14+
The crate does not intercept connections, authenticate remote observers, or
15+
evaluate policy. The isolation backend remains responsible for binding the
16+
resolved identity to the active boundary and exact accepted connection before
17+
constructing `MediatedConnection`.

0 commit comments

Comments
 (0)