| tags |
|
|
|---|---|---|
| last_verified | 2026-11-04 |
Use an owned, disposable environment for account verification. The image and synthetic refresh procedure below tests the older Gateway-owned OAuth source; it does not qualify the TokenService account path.
device-authorization-api.test.ts and openshell-device-authorization-api.test.ts
exercise the production Fastify, IAM, and selected TokenService device-login path
with a controlled issuer. The PostgreSQL device-login suite is intended to exercise
persisted session and Source settlement; it has not been qualified for this cutover.
These tests do not prove a real user grant,
Worker activation, or native bearer substitution.
Full account qualification requires an approved Codex account and device-login interaction, a disposable application-role PostgreSQL database, and a qualified stock Codex/OpenShell runtime with selected Compute and Credential Proxy. Verify the real login, Agent model turn, retained Provider, renewal and Proxy update, then required-model withdrawal and Source cleanup. Also check native behavior that requires issuer-signed claims; the launcher supplies unsigned local metadata.
Select official OpenShell v0.1.9, source commit
ce58cf8e9b953281352d98a637e41616295b1318, for the gateway, supervisor, and
static sandbox launcher. Use the immutable digests of the stable 0.1.9 image
tags and the published gateway and Workspace OCI Helm charts from that version. The stable release
rebuilds its images, so the source-commit image tags select different digests. This release includes emSign public-key distrust from
OpenShell #4794, as well as operator GetProviderCredentials
from OpenShell #4357 and the alias
resolver correction in #4390.
| Component | Immutable image |
|---|---|
| Gateway | ghcr.io/nvidia/openshell/gateway@sha256:1fd9e1e807990e66c9486a28d3ce9d649fd7528df48d0e830d2de2148b52dfe5 |
| Supervisor | ghcr.io/nvidia/openshell/supervisor@sha256:f1ec231b5dbe5b6a40c33acb2ac847995aabb959a56134ef6d7d7aa4f43199d3 |
| Static sandbox launcher | ghcr.io/nvidia/openshell/sandbox@sha256:e57d07cd6cc1fc314b80368d6b51ec6fbf825fb62cd8f081312941180846866f |
CI mirrors must preserve these multiarchitecture OCI indexes. The AMD64 production quickstart pins the corresponding platform manifests. The published charts are helm-chart:0.1.9 and openshell-workspace:0.1.9; they are separate OCI packages, not release assets.
OCE keeps its JWT wrapper: Codex needs the local account claims, while the
supervisor replaces the whole alias with the live credential. Stable-handle
aliases already worked upstream across rotation. #4390 fixes version-alias
resolution after cache eviction and corrects EndpointMismatch reporting for
disallowed endpoints; it does not add JWT parsing or change refresh ownership.
The development launcher
imports these same pins. When installing separately, select all three immutable
references through gateway.image, supervisor.image, and sandboxRuntime.image.
Selecting local charts alone does not select those binaries. Record actual launched
versions. Earlier dev.8 and dev.47 evidence remains bound to its tested pins;
neither qualifies v0.1.9. The release update does not establish a fix for the
known provider-environment disconnect or a successful restart/withdrawal proof.
The opt-in observed-hook repository credential preview admits 0.1.5 and 0.1.6. Use patched 0.1.6 with the existing dedicated workspace, held-launcher challenge and live policy/recipient checks. This remains startup observation, not mandatory request-hook enforcement for every future request.
Configure the shared OpenShell Backend
with its selected credential_refresh member, ordinary bearer authentication,
the gateway CA, and separate operatorTls
certificate/key paths. Enable the gateway's default-off operator authentication
in its Helm values:
gatewayConfig:
openshell.gateway.mtls_auth:
operator_enabled: trueIssue the client certificate from its trusted client CA with exact
OU=operator; use a direct TLS endpoint without termination or forwarded identity.
The ordinary bearer keeps its Workspace/provider permissions. Credential export
uses only the operator certificate. Do not put both identities on one request.
rootCertificatePath trusts OCC-to-OpenShell gRPC only. The dedicated Agent
Gateway also needs to trust the private CA for OpenShell's advertised wss
Harness endpoint.
Build the base OCE image through the runtime recipe. Its source manifest selects OpenClaw; the Dockerfile selects Codex and Node. Keep its frozen lockfile, source checksum, and native filesystem checks. Record the tested source commit and actual launched versions with each proof; earlier runtime evidence does not qualify a newer pin.
Set BASE_RUNTIME_IMAGE to that locally available immutable image reference and
OPENSHELL_PUBLIC_CA to the gateway's public PEM CA certificate. Build a
deployment-specific derivative in a separate directory:
export RUNTIME_CONTEXT="$(mktemp -d)"
cp "$OPENSHELL_PUBLIC_CA" "$RUNTIME_CONTEXT/openshell-ca.crt"
cat > "$RUNTIME_CONTEXT/Dockerfile" <<'DOCKERFILE'
ARG BASE_RUNTIME_IMAGE
FROM ${BASE_RUNTIME_IMAGE}
USER root
COPY openshell-ca.crt /usr/local/share/ca-certificates/openshell.crt
RUN chmod 0644 /usr/local/share/ca-certificates/openshell.crt && update-ca-certificates
ENV NODE_USE_SYSTEM_CA=1
USER node
DOCKERFILE
docker build --build-arg BASE_RUNTIME_IMAGE="$BASE_RUNTIME_IMAGE" \
--tag openclaw-enterprise-runtime:openshell-oauth "$RUNTIME_CONTEXT"Include only the public certificate in this build context, never CA signing
keys, operator credentials, or OAuth material. NODE_USE_SYSTEM_CA=1 makes Node use
the augmented system trust store while retaining normal certificate and
hostname verification. A CA change requires rebuilding and selecting the image.
For the Compose control-plane profile, select this local image through
OCC_KUBERNETES_RUNTIME_IMAGE before dev-up; the launcher imports it and
records an immutable reference. For real-runtime tests, follow the
Kubernetes image import procedure
and set OCC_TEST_KUBERNETES_GATEWAY_IMAGE and
OCC_TEST_KUBERNETES_AGENT_IMAGE to the imported digest reference.
For an ordinary OIDC issuer signed by a private CA, create a ConfigMap in the
OpenShell Gateway's namespace with the PEM bundle under the ca.crt key.
Set server.oidc.caConfigMapName to that ConfigMap's name in the OpenShell
0.1.9 chart. The bundle applies to issuer discovery and JWKS requests. OAuth
token requests use platform trust.
If a separate token endpoint uses a private CA, include that CA in its client's
trust store. The Agent Gateway trust above serves a separate connection.
The manually selected openshell-oauth lane runs
openshell-oauth-credentials-real.test.mjs
against the real upstream gateway and a synthetic HTTPS OAuth issuer. It is outside
ci and full, enables OCE_OPENSHELL_OAUTH_REAL=1, and requires these inputs
in a private environment file:
| Variable | Required input |
|---|---|
OCE_OPENSHELL_OAUTH_GATEWAY_ENDPOINT |
Direct HTTPS gateway endpoint with operator authentication enabled. |
OCE_OPENSHELL_OAUTH_CA_FILE |
Public gateway CA file. |
OCE_OPENSHELL_OAUTH_ADMIN_TOKEN_FILE |
Ordinary OIDC admin token for Workspace/provider operations. |
OCE_OPENSHELL_OAUTH_OPERATOR_CERT_FILE |
Trusted client certificate with exact OU=operator. |
OCE_OPENSHELL_OAUTH_OPERATOR_KEY_FILE |
Matching private key file, readable only by the test process. |
OCE_OPENSHELL_OAUTH_DENIED_TOKEN_FILE |
Ordinary OIDC admin token without an operator certificate. |
OCE_OPENSHELL_OAUTH_TEST_TOKEN_URL |
Synthetic issuer's HTTPS token endpoint. |
OCE_OPENSHELL_OAUTH_KUBECONFIG |
Dedicated disposable cluster kubeconfig. |
OCE_OPENSHELL_OAUTH_KUBERNETES_CONTEXT |
k3d-occ-dev-oce-oauth-poc; the test enforces this context and a loopback API. |
OCE_OPENSHELL_OAUTH_WORKSPACE_CHART |
Matching OpenShell Workspace chart path. |
The synthetic issuer must accept unique oauth-poc-refresh-initial-<UUID> grants,
return a new access token and rotating refresh token with a one-hour lifetime,
and reject reused refresh tokens. Use fresh fixture identities and state;
never point this lane at an existing user's deployment.
node --env-file="$TEST_ENV_FILE" scripts/ci/run-tests.ts run openshell-oauth \
--state /tmp/oce-openshell-oauth-state.json \
--results /tmp/oce-openshell-oauth-results.jsonMissing prerequisites fail before execution. No real model credential is needed. The case uses the real Backend's ordinary and operator channels. A seeded token has four minutes remaining, below upstream's five-minute retrieval requirement; the fixture's shorter background-refresh margin puts scheduled refresh beyond the operation deadline. Retrieval must refresh it, a subsequent read must reuse it, and another explicit rotation must use the stored successor refresh token. The case also checks unchanged attachments and rejects ordinary bearer export and refresh-material export. It proves neither real ChatGPT login nor Harness injection/model execution. A TLS handshake or ready source does not prove those outcomes either.
For real-provider proof, use the Console for fresh device login, select the
resulting source on a dedicated Codex Agent, and verify initial workspace files,
an active deployment, a real model response, and a subsequent version using
the same source. Select codex-plugin with catalogSource: hosted to verify
directory discovery. Selected runtime plugins remain unsupported; discovery
does not prove plugin execution. The remaining qualification boundaries are below.
For the new account login and its proof limits, see TokenService Codex account verification.
tests/conformance/kubernetes-compute.test.mjs exercises the real Compute
preparation path with Driver transport fixtures. It checks source matching,
Harness-only placeholder/metadata delivery, and refusal before provisioning on
invalid attachments. tests/integration/codex-model-probe.test.ts runs the
emitted launcher in Docker with a substituted Codex executable, checking the
generated auth file at both the probe and app-server boundaries. Select its
immutable Node image with OCC_TEST_CODEX_PROBE_IMAGE.
The external ChatGPT receiving contract does not establish OAuth injection or refresh through OpenShell. The bundled real-runtime suite uses an API-key source. Qualifying a Gateway-owned OAuth Source requires the external Token Service and paired gateway: verify native Codex startup, inference and hosted app/MCP requests, access-token rotation without a Harness restart, restart, and refusal after source withdrawal. Receiver fixtures alone cannot prove those provider and gateway behaviors or native account checks that require real access-token claims.