Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
f48ba50
feat(driver-sdk): add the versioned startup document for launched dri…
elezar Nov 20, 2026
76a7fb0
feat(gateway): convert resolved gateway config to the startup document
elezar Nov 20, 2026
a631399
refactor(driver-sdk): reuse core types and carry the resolved gateway…
elezar Nov 20, 2026
9c5589e
feat(vm): launch the VM driver with a startup document
elezar Nov 20, 2026
0e187d2
refactor(driver-sdk): keep operator-set settings in driver_config
elezar Nov 20, 2026
245eefa
refactor(driver-sdk): share the network trust artifact loader
elezar Nov 20, 2026
43728dd
refactor(vm): let the VM driver own and validate its configuration
elezar Nov 20, 2026
4e4c175
refactor(gateway): extract a generic launcher for launched drivers
elezar Nov 20, 2026
a2d9dfd
feat(podman): start the Podman driver from a startup document
elezar Nov 20, 2026
7a7dce7
feat(gateway): launch the Podman driver as a separate process
elezar Nov 20, 2026
da5b4a1
refactor(gateway): let the Podman driver validate its own configuration
elezar Nov 20, 2026
e649f27
feat(gateway): check launched driver binaries and stop when a driver …
elezar Nov 20, 2026
38dc50c
feat(podman): detect Podman through the driver's probe subcommand
elezar Nov 20, 2026
cd922b8
feat(drivers): validate driver configuration through a preflight subc…
elezar Nov 20, 2026
49b7d37
fix(drivers): address review findings on launched drivers
elezar Nov 23, 2026
2de7d99
docs: describe launched compute drivers
elezar Nov 23, 2026
aee70da
build(packaging): ship the Podman driver in the DEB and RPM packages
elezar Nov 23, 2026
52ae834
build(release): ship the Podman driver for macOS through Homebrew
elezar Nov 23, 2026
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
16 changes: 16 additions & 0 deletions .github/workflows/build-binaries-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,22 @@
timeout-minutes: 60
steps: *build_steps

podman-driver:
name: openshell-driver-podman (${{ matrix.triple }})
env:
PACKAGE: openshell-driver-podman
BINARY: openshell-driver-podman
strategy:
matrix:
include:
- triple: x86_64-unknown-linux-gnu
runner: linux-amd64-cpu8

Check failure on line 104 in .github/workflows/build-binaries-linux.yml

View workflow job for this annotation

GitHub Actions / Actionlint (informational)

label "linux-amd64-cpu8" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2025-vs2026", "windows-2022", "windows-11-arm", "ubuntu-slim", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "macos-latest", "macos-latest-xlarge", "macos-latest-large", "macos-26-intel", "macos-26-xlarge", "macos-26-large", "macos-26", "macos-15-intel", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xlarge", "macos-14-large", "macos-14", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows", "ubuntu-26.04", "windows-arm64". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
- triple: aarch64-unknown-linux-gnu
runner: linux-arm64-cpu8

Check failure on line 106 in .github/workflows/build-binaries-linux.yml

View workflow job for this annotation

GitHub Actions / Actionlint (informational)

label "linux-arm64-cpu8" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2025-vs2026", "windows-2022", "windows-11-arm", "ubuntu-slim", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "macos-latest", "macos-latest-xlarge", "macos-latest-large", "macos-26-intel", "macos-26-xlarge", "macos-26-large", "macos-26", "macos-15-intel", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xlarge", "macos-14-large", "macos-14", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows", "ubuntu-26.04", "windows-arm64". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
runs-on: ${{ matrix.runner }}
timeout-minutes: 60
steps: *build_steps

runtimes:
name: ${{ matrix.binary }} (${{ matrix.triple }})
env:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-binaries-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
- package: openshell-supervisor
binary: openshell-supervisor
triple: aarch64-apple-darwin
- package: openshell-driver-podman
binary: openshell-driver-podman
triple: aarch64-apple-darwin
runs-on: macos-15-xlarge
timeout-minutes: 60
steps:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/build-rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,16 @@ jobs:
name: openshell-prover-${{ inputs.prover-target }}
path: package-binaries/

- name: Download Podman driver artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: openshell-driver-podman-${{ inputs.gateway-target }}
path: package-binaries/

- name: Configure package inputs
run: |
set -euo pipefail
chmod +x package-binaries/openshell{,-gateway,-prover}
chmod +x package-binaries/openshell{,-gateway,-prover,-driver-podman}
ls -lah package-binaries

- name: Mark workspace safe for git
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/deb-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,16 @@ jobs:
name: openshell-driver-vm-${{ matrix.gnu_target }}
path: package-binaries/

- name: Download Podman driver artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: openshell-driver-podman-${{ matrix.gnu_target }}
path: package-binaries/

- name: Configure package inputs
run: |
set -euo pipefail
chmod +x package-binaries/openshell{,-gateway,-prover,-driver-vm}
chmod +x package-binaries/openshell{,-gateway,-prover,-driver-vm,-driver-podman}
ls -lah package-binaries

- name: Build Debian package
Expand All @@ -76,6 +82,7 @@ jobs:
OPENSHELL_GATEWAY_BINARY="${PWD}/package-binaries/openshell-gateway" \
OPENSHELL_PROVER_BINARY="${PWD}/package-binaries/openshell-prover" \
OPENSHELL_DRIVER_VM_BINARY="${PWD}/package-binaries/openshell-driver-vm" \
OPENSHELL_DRIVER_PODMAN_BINARY="${PWD}/package-binaries/openshell-driver-podman" \
OPENSHELL_DEB_VERSION="${INPUTS_DEB_VERSION}" \
OPENSHELL_DEB_ARCH="${{ matrix.deb_arch }}" \
OPENSHELL_OUTPUT_DIR=artifacts \
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/package-release-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ jobs:
- artifact: openshell-driver-vm-aarch64-apple-darwin
binary: openshell-driver-vm
package: driver-vm-macos
- artifact: openshell-driver-podman-aarch64-apple-darwin
binary: openshell-driver-podman
package: driver-podman-macos
- artifact: openshell-prover-x86_64-unknown-linux-musl
binary: openshell-prover
package: prover-binary-linux-amd64
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/release-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,13 @@ jobs:
path: release/
merge-multiple: true

- name: Download Podman driver artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: driver-podman-*
path: release/
merge-multiple: true

- name: Download prover binary artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
Expand Down Expand Up @@ -400,6 +407,7 @@ jobs:
openshell-driver-vm-x86_64-unknown-linux-gnu.tar.gz \
openshell-driver-vm-aarch64-unknown-linux-gnu.tar.gz \
openshell-driver-vm-aarch64-apple-darwin.tar.gz \
openshell-driver-podman-aarch64-apple-darwin.tar.gz \
*.deb \
openshell-*.rpm > openshell-checksums-sha256.txt
cat openshell-checksums-sha256.txt
Expand Down Expand Up @@ -433,6 +441,7 @@ jobs:
release/openshell-driver-vm-x86_64-unknown-linux-gnu.tar.gz
release/openshell-driver-vm-aarch64-unknown-linux-gnu.tar.gz
release/openshell-driver-vm-aarch64-apple-darwin.tar.gz
release/openshell-driver-podman-aarch64-apple-darwin.tar.gz

- name: Prune managed assets from dev release
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
Expand Down Expand Up @@ -526,6 +535,7 @@ jobs:
release/openshell-driver-vm-x86_64-unknown-linux-gnu.tar.gz
release/openshell-driver-vm-aarch64-unknown-linux-gnu.tar.gz
release/openshell-driver-vm-aarch64-apple-darwin.tar.gz
release/openshell-driver-podman-aarch64-apple-darwin.tar.gz
release/openshell-prover-x86_64-unknown-linux-musl.tar.gz
release/openshell-prover-aarch64-unknown-linux-musl.tar.gz
release/openshell-prover-aarch64-apple-darwin.tar.gz
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ jobs:
path: release/
merge-multiple: true

- name: Download Podman driver artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: driver-podman-*
path: release/
merge-multiple: true

- name: Download prover binary artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
Expand Down Expand Up @@ -140,6 +147,7 @@ jobs:
openshell-driver-vm-x86_64-unknown-linux-gnu.tar.gz \
openshell-driver-vm-aarch64-unknown-linux-gnu.tar.gz \
openshell-driver-vm-aarch64-apple-darwin.tar.gz \
openshell-driver-podman-aarch64-apple-darwin.tar.gz \
openshell_*.deb \
openshell-*.rpm > openshell-checksums-sha256.txt
cat openshell-checksums-sha256.txt
Expand Down Expand Up @@ -399,6 +407,7 @@ jobs:
release/openshell-driver-vm-x86_64-unknown-linux-gnu.tar.gz
release/openshell-driver-vm-aarch64-unknown-linux-gnu.tar.gz
release/openshell-driver-vm-aarch64-apple-darwin.tar.gz
release/openshell-driver-podman-aarch64-apple-darwin.tar.gz
release/openshell-prover-x86_64-unknown-linux-musl.tar.gz
release/openshell-prover-aarch64-unknown-linux-musl.tar.gz
release/openshell-prover-aarch64-apple-darwin.tar.gz
Expand Down Expand Up @@ -462,6 +471,7 @@ jobs:
release/openshell-aarch64-apple-darwin.tar.gz
release/openshell-gateway-aarch64-apple-darwin.tar.gz
release/openshell-driver-vm-aarch64-apple-darwin.tar.gz
release/openshell-driver-podman-aarch64-apple-darwin.tar.gz
release/openshell-prover-aarch64-apple-darwin.tar.gz
release/openshell.rb
release/openshell-checksums-sha256.txt
Expand Down
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Do not rely on this file for a full inventory. The detailed public and contribut
| `crates/openshell-supervisor/` | Supervisor runtime | Gateway session, policy evaluation, credentials, and upstream networking |
| `crates/openshell-supervisor-control/` | Shared supervisor control | Gateway-owned assignment controller, launch registrations, recovery coordination, and host observations for a supervisor shared by many sandboxes |
| `crates/openshell-binary-identity/` | Binary identity | Shared trusted procfs executable identity resolution for isolation backends |
| `crates/openshell-driver-sdk/` | Driver SDK | Versioned startup document the gateway passes to launched compute drivers |
| `crates/openshell-isolation-interface/` | Isolation backend interface | Shared data and validation for the Isolation Backend RPC contracts |
| `crates/openshell-sandbox-backend/` | OpenShell sandbox backend | Concrete Isolation Backend RPC client and authenticated Sandbox Protocol shared with `openshell-sandbox` |
| `crates/openshell-policy/` | Policy engine | Filesystem, network, and process constraints |
Expand Down
21 changes: 20 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion crates/openshell-core/src/sandbox_env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ impl From<OtlpProtocol> for openshell_otel::Protocol {
}

/// One OTLP collector that a supervisor exports to.
#[derive(Clone, Debug, Eq, PartialEq)]
#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
#[serde(deny_unknown_fields)]
pub struct OtlpExport {
pub endpoint: String,
pub protocol: OtlpProtocol,
Expand Down
2 changes: 2 additions & 0 deletions crates/openshell-driver-podman/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ path = "src/main.rs"
[dependencies]
openshell-core = { path = "../openshell-core", default-features = false, features = ["driver-extraction", "otel", "clap"] }
openshell-otel = { path = "../openshell-otel" }
openshell-driver-sdk = { path = "../openshell-driver-sdk", features = ["clap"] }
openshell-isolation-interface = { path = "../openshell-isolation-interface" }
openshell-sandbox-backend = { path = "../openshell-sandbox-backend" }
tar = "0.4"
Expand All @@ -32,6 +33,7 @@ hyper-util = { workspace = true }
http-body-util = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
toml = { workspace = true }
prost-types = { workspace = true }
clap = { workspace = true }
nix = { workspace = true }
Expand Down
21 changes: 21 additions & 0 deletions crates/openshell-driver-podman/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,24 @@ When `[openshell.gateway.otlp.agent]` is enabled, the driver sets
`OPENSHELL_OTLP_AGENT_PROTOCOL` for a non-gRPC collector, which starts the
agent trace relay. On Podman Machine it rewrites a loopback agent endpoint to
the desktop host, as it does for the supervisor's trace endpoint.

## Launch by the gateway

The gateway runs this driver as a separate process and does not link it. It
starts `openshell-driver-podman --config <startup.toml>`; the document carries
the gateway's resolved values and the operator's `[openshell.drivers.podman]`
table, which the driver deserializes and validates before it binds its socket.
With `--config`, any other flag is an error. The driver ignores
`expected_peer_pid` and accepts any connection from its own user, on a socket
in a private directory.

Two subcommands take part in gateway decisions and start nothing:

- `openshell-driver-podman probe` prints `{"available": bool, "reason": "..."}`.
Gateway auto-detection runs it.
- `openshell-driver-podman preflight --config <path>` validates a startup
document and prints `{"ok": bool, "error": "..."}`. `openshell-gateway config
preflight` runs it.

The binary must be installed beside the gateway or in a libexec directory. See
[Launched Compute Drivers](../../docs/how-it-works/gateways/configuration.mdx#launched-compute-drivers).
1 change: 1 addition & 0 deletions crates/openshell-driver-podman/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pub mod grpc;
mod isolation;
pub mod otel_tracing;
mod socket_discovery;
pub mod startup_config;
#[cfg(test)]
pub(crate) mod test_utils;
pub(crate) mod watcher;
Expand Down
Loading
Loading