Skip to content

feat(openshell): update deployment to use mvp-v2 branch - #1814

Merged
pdettori merged 11 commits into
rossoctl:mainfrom
pdettori:feat/openshell-mvp-v2-1813
Jun 4, 2026
Merged

pdettori merged 11 commits into
rossoctl:mainfrom
pdettori:feat/openshell-mvp-v2-1813

Conversation

@pdettori

@pdettori pdettori commented Jun 4, 2026

Copy link
Copy Markdown
Member

Summary

  • Update gateway and supervisor image tags to latest (built from mvp-v2 CI)
  • Update build-images.sh to clone mvp-v2 branch and use the new Dockerfile.gateway (the old multi-stage Dockerfile.images no longer exists upstream)
  • Replace fork CLI binary downloads in sandbox-guide.md with upstream CLI installation (upstream CLI is fully compatible with the mvp-v2 gateway)

Closes #1813

Test plan

  • deploy-tenant.sh tested with mvp-v2 images on Kind
  • Verify openshell sandbox create works with upstream CLI against the new gateway
  • Verify build-images.sh --gateway-only builds successfully from mvp-v2 source

Assisted-By: Claude Code

- Update gateway and supervisor image tags to latest (built from mvp-v2)
- Update build-images.sh to clone mvp-v2 branch and use Dockerfile.gateway
  (the old multi-stage Dockerfile.images no longer exists upstream)
- Replace fork CLI binary downloads with upstream CLI installation
  (upstream CLI is fully compatible with mvp-v2 gateway)

Closes rossoctl#1813

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
pdettori added 2 commits June 3, 2026 23:02
Pin to the latest published mvp-v2 image for each component rather than
using the mutable :latest tag, for reproducibility.

- gateway: mvp-v2-3a1bbea
- supervisor: mvp-v2-9a6a0ed

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
The mvp-v2 gateway no longer accepts --sandbox-namespace. The sandbox
namespace is now controlled by the compute driver (--namespace flag on
the compute-driver container). The gateway connects to drivers via UDS
configured through OPENSHELL_COMPUTE_DRIVER_SOCKET env var.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
gateway:
repository: ghcr.io/kagenti/openshell/gateway
tag: v0.0.36-kagenti.8
tag: mvp-v2-3a1bbea

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This tag mvp-v2-3a1bbea is worthy of a comment. This is a real tag, but I don't know where it came from or why we default to it.

if [[ ! -d "$src" ]]; then
echo "ERROR: Gateway source not found at $src" >&2
echo "Clone it: git clone https://github.com/kagenti/OpenShell.git -b mvp $src" >&2
echo "Clone it: git clone https://github.com/kagenti/OpenShell.git -b mvp-v2 $src" >&2

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From Claude:

Gateway clone hint now points to -b mvp-v2, but the compute-driver clone hint at line 125 (and credentials-driver
below) still references -b mvp. If mvp-v2 is the new convention across the OpenShell components, consider updating those
for consistency. If mvp is intentional for the drivers (because they didn't move), a one-line comment explaining the
asymmetry would help future readers.

@esnible esnible left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From Claude:

Blocking concern: the "OpenShell PoC (Kind)" CI run shows three teleport
sandbox-spawn tests failing with timeouts/AssertionErrors after the gateway image+args change, even though the gateway
readiness check passes — the PR's own test plan items are unchecked. Worth investigating whether the new gateway image fully
implements sandbox spawning via the compute-driver UDS path before merging.

@pdettori

pdettori commented Jun 4, 2026

Copy link
Copy Markdown
Member Author

there is an issue tracked in #1815 - need also changes to compute driver. Working on a PR.

@Ladas Ladas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed code and security. Clean upgrade to mvp-v2, 4 files changed:

values.yaml: Gateway tag → mvp-v2-3a1bbea, supervisor tag → mvp-v2-9a6a0ed. Note: different SHAs because supervisor was published from an earlier commit. Both are from mvp-v2 branch. ✓

statefulset.yaml: Removes --sandbox-namespace args — correct, the new gateway auto-detects driver via env vars (OPENSHELL_COMPUTE_DRIVER_SOCKET, OPENSHELL_CREDENTIALS_DRIVER_SOCKET). No explicit --drivers=external needed because the socket env vars trigger external mode. ✓

build-images.sh: Clones mvp-v2 branch, uses Dockerfile.gateway instead of old Dockerfile.images. ✓

sandbox-guide.md: Switches from fork CLI to upstream CLI installation — correct, upstream CLI is compatible with mvp-v2 gateway. ✓

Security: No credentials, no new attack surfaces. Image tags are pinned to commit SHAs. ✓

Note: PR #1689 has the same chart changes — we should rebase after this merges to avoid conflicts.

Known issue: #1815 — supervisor mvp-v2 is scratch/distroless, breaks init container sh -c cp in compute driver. Affects supervised agents, not teleport sandboxes.

Assisted-By: Claude Code

pdettori added 2 commits June 4, 2026 09:59
The new driver version handles scratch-based supervisor images (no shell
required for the init container copy operation).

Fixes rossoctl#1815

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
The new compute driver uses Go's flag package which expects single-dash
flags (-flag=value) not double-dash (--flag=value). Also removes the
obsolete -dtach-binary-path flag which no longer exists.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
@pdettori

pdettori commented Jun 4, 2026

Copy link
Copy Markdown
Member Author

Test Results

Tested on Kind cluster with mvp-v2 images. The chart changes are validated:

Component Image Status
Gateway ghcr.io/kagenti/openshell/gateway:mvp-v2-3a1bbea ✅ Starts and serves gRPC
Supervisor init ghcr.io/kagenti/openshell/supervisor:mvp-v2-9a6a0ed ✅ Binary copy succeeds
Compute driver ghcr.io/kagenti/openshell-driver-openshift/compute-driver:v0.1.0-rc.1 ✅ Pod creation works
Upstream CLI (0.0.55) N/A ✅ Gateway registration, OIDC login, sandbox create

Remaining blocker (driver-side, not this PR)

Sandbox pods start but the supervisor can't establish the relay session — the compute driver doesn't set OPENSHELL_K8S_SA_TOKEN_FILE env var on sandbox pods. Tracked in #1815. Once the driver publishes a fix, sandboxes will be fully functional.

Chart fixes discovered during testing

  1. Removed --sandbox-namespace gateway arg (flag removed in mvp-v2)
  2. Changed compute driver flags from --flag to -flag (Go flag package in v0.1.0-rc.1)
  3. Removed obsolete --dtach-binary-path flag

pdettori added 2 commits June 4, 2026 10:43
Includes fixes for both supervisor init container (scratch image copy)
and SA token auth injection for mvp-v2 sandbox relay.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
Both gateway and supervisor must be from the same commit to avoid
proto/API mismatch in the IssueSandboxToken bootstrap exchange.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
…tstrap

Add the gateway-side configuration needed for sandbox pods to authenticate
via projected ServiceAccount tokens (IssueSandboxToken bootstrap exchange).

Changes:
- gateway-config.yaml: TOML ConfigMap with gateway_jwt, TLS, OIDC, and
  driver sections — replaces individual CLI flags/env vars
- certgen.yaml: pre-install hook Job that generates Ed25519 signing keypair
  (CreateJwtOnly path when cert-manager TLS secrets already exist)
- rbac.yaml: ClusterRole + ClusterRoleBinding for tokenreviews/create
  (required for K8sServiceAccountAuthenticator)
- statefulset.yaml: gateway uses --config flag, mounts gateway-config and
  jwt-keys volumes
- values.yaml: gatewayJwt (enabled by default) and sandboxServiceAccount
  configuration sections

The certgen hook detects existing TLS secrets from cert-manager and only
creates the JWT keypair secret (openshell-gateway-jwt-keys).

Closes rossoctl#1818

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
The v0.1.0-rc.3 compute driver injects a projected ServiceAccount token
with audience "openshell-gateway" into sandbox pods so the supervisor can
authenticate back to the gateway via IssueSandboxToken.

Pass the new -sa-token-audience and -sa-token-ttl-secs flags from the
Helm chart, and bump the image tag to v0.1.0-rc.3.

Ref: rossoctl#1815

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
pdettori added 2 commits June 4, 2026 13:06
Picks up the sandbox-id annotation fix (openshell.io/sandbox-id) required
by the gateway's IssueSandboxToken flow.

Ref: rossoctl#1815

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
The certgen pod picks up OPENSHELL_SERVER_PORT=tcp://... from K8s
service link environment variables, which the gateway binary
misinterprets as a --port flag. Set enableServiceLinks: false to
prevent this (matches the gateway statefulset).

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
@pdettori
pdettori merged commit 11c62ea into rossoctl:main Jun 4, 2026
26 of 27 checks passed
@github-project-automation github-project-automation Bot moved this from New /:ToDo to Done in Rossoctl Issue Prioritization Jun 4, 2026
pdettori added a commit that referenced this pull request Jun 6, 2026
feat(openshell): update deployment to use mvp-v2 branch

(cherry picked from commit 11c62ea)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Update OpenShell deployment to use mvp-v2 branch

3 participants