Repository navigation
feat(openshell): update deployment to use mvp-v2 branch - #1814
Conversation
- 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]>
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
|
there is an issue tracked in #1815 - need also changes to compute driver. Working on a PR. |
Ladas
left a comment
There was a problem hiding this comment.
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
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]>
Test ResultsTested on Kind cluster with mvp-v2 images. The chart changes are validated:
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 Chart fixes discovered during testing
|
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]>
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]>
feat(openshell): update deployment to use mvp-v2 branch (cherry picked from commit 11c62ea)
Summary
latest(built frommvp-v2CI)build-images.shto clonemvp-v2branch and use the newDockerfile.gateway(the old multi-stageDockerfile.imagesno longer exists upstream)sandbox-guide.mdwith upstream CLI installation (upstream CLI is fully compatible with themvp-v2gateway)Closes #1813
Test plan
deploy-tenant.shtested withmvp-v2images on Kindopenshell sandbox createworks with upstream CLI against the new gatewaybuild-images.sh --gateway-onlybuilds successfully frommvp-v2sourceAssisted-By: Claude Code