Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
46f706d
feat(driver-tensorlake): add initial Tensorlake compute driver
shanshantensorlake-spec Oct 15, 2026
a130ae1
fix(driver-tensorlake): fix status polling and gateway CA checks
shanshantensorlake-spec Oct 17, 2026
0d9e781
feat(driver-tensorlake): run the control plane in a Tensorlake sandbox
shanshantensorlake-spec Oct 17, 2026
16bb35b
fix(driver-tensorlake): require launch authentication only at create
shanshantensorlake-spec Oct 19, 2026
cb27513
fix(driver-tensorlake): use the plan maximum idle timeout
shanshantensorlake-spec Oct 19, 2026
92e0e8b
build(driver-tensorlake): build CAS images and keep explicit image names
shanshantensorlake-spec Oct 19, 2026
f4e6414
docs(driver-tensorlake): add control-plane authentication design
shanshantensorlake-spec Oct 19, 2026
6e83445
fix(driver-tensorlake): report launcher failures instead of hanging
shanshantensorlake-spec Oct 19, 2026
c1cc2b2
fix(driver-tensorlake): use the sandbox ID in the guards' gateway URL
shanshantensorlake-spec Oct 19, 2026
75d3d8d
fix(driver-tensorlake): make the supervisor CA directory traversable
shanshantensorlake-spec Oct 19, 2026
f4dc072
fix(driver-tensorlake): migrate launch bundles to provisioning evidence
shanshantensorlake-spec Oct 19, 2026
fd6cbad
docs(driver-tensorlake): document a stable image rebuild loop
shanshantensorlake-spec Oct 19, 2026
830b43b
fix(driver-tensorlake): bound HTTP requests and use the crypto facade
shanshantensorlake-spec Oct 19, 2026
034684a
feat(driver-tensorlake): emit launch progress events
shanshantensorlake-spec Oct 20, 2026
c48d0a1
docs: add the Tensorlake runtime page
shanshantensorlake-spec Oct 20, 2026
a8d1aae
ci(driver-tensorlake): add a manual image publish workflow
shanshantensorlake-spec Oct 20, 2026
e34ca64
docs(driver-tensorlake): record the split topology and auth decision
shanshantensorlake-spec Oct 20, 2026
55f03fe
feat(driver-tensorlake): run the guard in its own Tensorlake VM
shanshantensorlake-spec Oct 20, 2026
75fd3ef
docs(driver-tensorlake): document the split topology
shanshantensorlake-spec Oct 20, 2026
0bb3ea8
docs(driver-tensorlake): align the README with the code and rework th…
shanshantensorlake-spec Oct 20, 2026
1a78bd2
fix(driver-tensorlake): keep sandbox names across a driver restart
shanshantensorlake-spec Oct 20, 2026
a410a31
fix(driver-tensorlake): pass the sandbox API URL to the tunnel and di…
shanshantensorlake-spec Oct 20, 2026
e650d65
docs(driver-tensorlake): fold the split topology design into the README
shanshantensorlake-spec Oct 20, 2026
e98adce
refactor(driver-tensorlake): remove the combined topology
shanshantensorlake-spec Oct 20, 2026
da3e8ed
docs(driver-tensorlake): drop the note about the removed one-VM mode
shanshantensorlake-spec Oct 20, 2026
b5dc178
fix(driver-tensorlake): keep DNS working under --allow-out
shanshantensorlake-spec Oct 21, 2026
8b5c40c
feat(driver-tensorlake): add stop and start
shanshantensorlake-spec Oct 21, 2026
d4fa2bf
docs(driver-tensorlake): align the README with the driver code
shanshantensorlake-spec Oct 21, 2026
6ee4166
docs(driver-tensorlake): add the OpenCode on Tensorlake case study
shanshantensorlake-spec Oct 21, 2026
8a9b94e
docs(driver-tensorlake): record the OIDC login run on Tensorlake
shanshantensorlake-spec Oct 21, 2026
c736a72
build(driver-tensorlake): name public images after the release tag or…
shanshantensorlake-spec Oct 21, 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
93 changes: 93 additions & 0 deletions .github/workflows/tensorlake-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

name: Tensorlake Images

# Build and register the Tensorlake sandbox and control-plane images with
# crates/openshell-driver-tensorlake/build-images.sh. Tensorlake runs the
# Docker builds, so this job needs only the `tl` CLI and an API key.
#
# Run it by hand. A build with `public: true` registers the pair for every
# Tensorlake project under a versioned name. The version comes from the
# checkout: run the workflow from a release tag to publish that release
# (v0.1.6 -> openshell-tensorlake-0-1-6), or from a branch to publish a
# build named after its short commit. Public names are permanent. Set
# `version` only when you need a name the checkout does not give you.
#
# Required secret: TENSORLAKE_API_KEY, a key for the Tensorlake project that
# owns the images.

on:
workflow_dispatch:
inputs:
version:
description: "Image version suffix. Default: the release tag on the checkout as 0-1-6, or the short commit."
required: false
type: string
default: ""
public:
description: "Register the images for all Tensorlake projects."
required: false
type: boolean
default: false

permissions:
contents: read

concurrency:
group: tensorlake-images-${{ inputs.version || github.ref }}
cancel-in-progress: false

defaults:
run:
shell: bash

jobs:
build:
name: Build Tensorlake images
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# The build script names a public pair after the release tag on HEAD.
fetch-tags: true

- name: Check inputs
env:
VERSION: ${{ inputs.version }}
PUBLIC: ${{ inputs.public }}
run: |
set -euo pipefail
if [ -n "${VERSION}" ] && ! [[ "${VERSION}" =~ ^[a-z0-9][a-z0-9-]*$ ]]; then
echo "::error::version must contain only lowercase letters, digits, and dashes" >&2
exit 1
fi

- name: Install the Tensorlake CLI
run: |
set -euo pipefail
curl -fsSL https://tensorlake.ai/install | sh
echo "${HOME}/.tensorlake/bin" >> "${GITHUB_PATH}"

- name: Build and register the images
env:
TENSORLAKE_API_KEY: ${{ secrets.TENSORLAKE_API_KEY }}
VERSION: ${{ inputs.version }}
PUBLIC: ${{ inputs.public == true && '1' || '' }}
run: |
set -euo pipefail
if [ -z "${TENSORLAKE_API_KEY}" ]; then
echo "::error::the TENSORLAKE_API_KEY secret is not set" >&2
exit 1
fi
tl whoami
crates/openshell-driver-tensorlake/build-images.sh | tee build-images.log
{
echo "## Tensorlake images"
echo
echo '```'
sed -n '/^Registered:/,$p' build-images.log
echo '```'
} >> "${GITHUB_STEP_SUMMARY}"
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Do not rely on this file for a full inventory. The detailed public and contribut
| `crates/openshell-driver-kubernetes/` | Kubernetes compute driver | In-process `ComputeDriver` backend for K8s sandbox pods |
| `crates/openshell-driver-docker/` | Docker compute driver | In-process `ComputeDriver` backend for local Docker sandbox containers |
| `crates/openshell-driver-podman/` | Podman compute driver | In-process `ComputeDriver` backend for local Podman sandbox containers |
| `crates/openshell-driver-tensorlake/` | Tensorlake compute driver | Standalone `ComputeDriver` subprocess that runs each sandbox in a Tensorlake microVM |
| `crates/openshell-driver-vm/` | VM compute driver | Standalone libkrun-backed `ComputeDriver` subprocess (embeds its own rootfs + runtime) |
| `crates/openshell-driver-mxc/` | Microsoft MXC compute driver | In-process Windows AppContainer and isolation-session compute backend |
| `crates/openshell-prover/` | Policy prover | Policy verification and proof generation |
Expand Down
26 changes: 26 additions & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion crates/openshell-crypto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ not a whole-application crypto coverage claim:

| Remaining use | Current scope and follow-up |
| --- | --- |
| Reqwest clients (OIDC/JWKS, token exchange, provider refresh, Vault, token grants, telemetry) | These use Rustls's process-default provider after ensuring one exists; they do not necessarily honor an explicitly selected `CryptoContext`. The OpenSSL follow-up must supply compatible preconfigured TLS or another supported transport integration and test actual provider use. |
| Reqwest clients (OIDC/JWKS, token exchange, provider refresh, Vault, Tensorlake, token grants, telemetry) | These use Rustls's process-default provider after ensuring one exists; they do not necessarily honor an explicitly selected `CryptoContext`. The OpenSSL follow-up must supply compatible preconfigured TLS or another supported transport integration and test actual provider use. |
| Kubernetes client TLS (`kube-client` 0.99) | The AWS-LC-enabled client attempts to install AWS-LC as the Rustls process default. It does not consult `CryptoContext`; the OpenSSL follow-up must adapt this transport before claiming selected-backend coverage. |
| Outer-fence evidence digest (`openshell-isolation-interface::contract`) | The digest binds generation and native enforcement evidence using `sha2` through `Sha256Digest::compute`. This security-relevant hash remains outside facade dispatch and must be migrated with failure propagation before claiming exclusive backend ownership. |
| VM image/archive digest verification and cached supervisor validation (`openshell-driver-vm`) | Security-relevant artifact integrity remains outside this runtime credential migration. Moving it requires covering the streaming readers, embedded-artifact cache, and build-time digest generation together; it must be addressed before claiming exclusive backend ownership. |
Expand Down
43 changes: 43 additions & 0 deletions crates/openshell-driver-tensorlake/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

[package]
name = "openshell-driver-tensorlake"
description = "Tensorlake compute driver for OpenShell"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true

[[bin]]
name = "openshell-driver-tensorlake"
path = "src/main.rs"

[dependencies]
openshell-core = { path = "../openshell-core", default-features = false }
openshell-crypto = { workspace = true }
openshell-otel = { path = "../openshell-otel" }
openshell-isolation-interface = { path = "../openshell-isolation-interface" }
openshell-sandbox-backend = { path = "../openshell-sandbox-backend" }
tar = "0.4"

tokio = { workspace = true }
tonic = { workspace = true, features = ["transport"] }
prost = { workspace = true }
futures = { workspace = true }
tokio-stream = { workspace = true, features = ["sync"] }
reqwest = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
clap = { workspace = true }
tracing = { workspace = true }
miette = { workspace = true }
thiserror = { workspace = true }
url = { workspace = true }

[dev-dependencies]
tokio = { workspace = true, features = ["test-util"] }

[lints]
workspace = true
Loading
Loading