Standalone web admin UI for OpenShell, the open-source agent sandboxing platform. Go BFF + React (PatternFly 6) frontend, talking to the OpenShell gateway through the official Go SDK.
- Workspaces: create, browse, delete; manage members (OIDC subject + role)
- Sandboxes: list, create (with required security policy), inspect, delete
- Providers: register inference/service credentials from provider profiles
- Gateway: status, version, compute drivers
The frontend's page components are self-contained and exported (openshell-dashboard/pages) so downstream platforms can import and wrap them.
UI copy goes through an English-only i18n layer (openshell-dashboard/i18n; contract in ADR 0004). See frontend/src/i18n/README.md for contributor usage and how hosts can override strings or add locales.
Prereqs: Go 1.25.1+, Node 20+, and a running OpenShell gateway (openshell gateway start).
make setup # npm install + go mod download
export OPENSHELL_GATEWAY_URL=localhost:50051 # your gateway gRPC endpoint
make devmake dev starts two processes:
| Process | Port | Notes |
|---|---|---|
| Vite dev server | http://localhost:3000 | proxies /api → BFF |
| Go BFF | http://localhost:8080 | runs with AUTH_DISABLED=true by default in dev |
Open http://localhost:3000, click Continue as developer, and you're in.
To develop against a gateway that has real OIDC configured (Keycloak), use the included dev environment script. This sets up self-signed TLS, a Keycloak instance in Podman, and builds the gateway from source. The dashboard itself runs in dev mode (the gateway allows unauthenticated calls locally); Keycloak mints real JWTs for exercising the Bearer relay path with curl or the OpenShell CLI. To test the full browser-auth flow, put oauth2-proxy in front of the BFF (see Auth below).
Additional prereqs: Podman (with podman machine start on macOS), Rust toolchain (cargo), and the OpenShell repo cloned locally.
make setup
export OPENSHELL_DIR=~/path/to/openshell # your OpenShell checkout
make dev-full # starts infra + dashboardThat's it. dev-full starts Keycloak and the gateway (if not already running), writes a scripts/.env.dev config file, and launches the dashboard. On subsequent runs, make dev picks up the config automatically (no env vars needed).
If OPENSHELL_DIR is not set, the script prompts interactively and offers to clone the repo for you. The chosen path is saved to scripts/.env.dev so you only configure it once.
Open http://localhost:3000 and log in via Keycloak with one of the test users:
| User | Password | Role |
|---|---|---|
admin@test |
admin |
Platform admin (full access) |
user@test |
user |
Workspace member |
user-b@test |
user-b |
Workspace member |
| Component | How | Lifecycle |
|---|---|---|
| Keycloak | Podman container (openshell-keycloak) on port 8180 |
Runs until dev-env.sh stop |
| OpenShell gateway | Background process built from source, port 17670 (gRPCs) + 17671 (health) | Runs until dev-env.sh stop |
| Dashboard BFF | go run on port 8080 |
Runs with make dev, Ctrl+C to stop |
| Dashboard frontend | Vite dev server on port 3000 | Runs with make dev, Ctrl+C to stop |
Keycloak and the gateway survive across make dev restarts. Stop them explicitly:
./scripts/dev-env.sh stop # stops gateway + keycloak, cleans up orphans
./scripts/dev-env.sh status # check what's running
./scripts/dev-env.sh rebuild-gateway # rebuild after upstream changesAll flags have env var fallbacks:
| Flag | Env var | Default | Description |
|---|---|---|---|
-port |
PORT |
8080 |
BFF listen port |
-listen-address |
LISTEN_ADDRESS |
BFF listen address; empty binds all interfaces | |
-gateway-url |
OPENSHELL_GATEWAY_URL |
localhost:50051 |
Gateway gRPC endpoint (grpcs:// prefix for TLS) |
-static-dir |
STATIC_DIR |
: | Serve built frontend from this directory |
-auth-disabled |
AUTH_DISABLED |
false |
Skip auth: dev only |
-auth-token-header |
AUTH_TOKEN_HEADER |
x-forwarded-access-token |
Header the auth proxy injects the bearer into |
-auth-user-header |
AUTH_USER_HEADER |
x-auth-request-user |
Header the auth proxy injects the username into |
-admin-role |
ADMIN_ROLE |
admin |
Role name the frontend treats as platform admin (display gating only) |
-logout-url |
LOGOUT_URL |
/oauth2/sign_out |
Auth proxy sign-out URL the frontend redirects to on logout |
-gateway-ca-cert |
GATEWAY_CA_CERT |
: | Path to CA cert for self-signed gateway TLS |
-gateway-client-cert |
GATEWAY_CLIENT_CERT |
Path to client certificate for gateway mTLS | |
-gateway-client-key |
GATEWAY_CLIENT_KEY |
Path to client private key for gateway mTLS | |
-tls-cert |
TLS_CERT_FILE |
Path to server certificate for inbound BFF HTTPS | |
-tls-key |
TLS_KEY_FILE |
Path to server private key for inbound BFF HTTPS |
The browser or auth proxy connects to the dashboard BFF over HTTP or HTTPS. The BFF then connects separately, as a gRPC client, to the OpenShell gateway's administrative API. These are three independent TLS boundaries:
- Inbound BFF TLS — proxy/browser → BFF (
TLS_CERT_FILE/TLS_KEY_FILE). When both are set, the BFF serves HTTPS onPORT. When neither is set, the BFF serves plain HTTP (local dev unchanged). Setting only one fails at startup. - Outbound gateway TLS — BFF → gateway server (
GATEWAY_CA_CERT). - Outbound gateway mTLS — BFF client identity to the gateway
(
GATEWAY_CLIENT_CERT/GATEWAY_CLIENT_KEY).
Browser authentication protects access to the dashboard; inbound BFF TLS encrypts the proxy-to-BFF hop; outbound gateway TLS/mTLS protects the BFF-to-gateway connection.
For container deployments that require inbound HTTPS, mount cert and key files and point the env vars at them (paths are examples, not enforced):
/etc/tls/private/tls.crt → TLS_CERT_FILE
/etc/tls/private/tls.key → TLS_KEY_FILE
PORT=8843 # consumer choice; not hardcoded
Rotating mounted cert/key files requires restarting the BFF process so it reloads
the paths configured in TLS_CERT_FILE and TLS_KEY_FILE.
The default local OpenShell gateway requires mutual TLS on its loopback-only administrative listener. Run the BFF on the gateway host and configure the gateway CA, client certificate, and client key as shown below. Do not point the BFF at the gateway listener reachable from sandbox containers; that listener is reserved for sandbox callbacks and is not the administrative API.
./openshell-dashboard \
-listen-address 127.0.0.1 \
-gateway-url https://localhost:17670 \
-gateway-ca-cert "$HOME/.config/openshell/gateways/openshell/mtls/ca.crt" \
-gateway-client-cert "$HOME/.config/openshell/gateways/openshell/mtls/tls.crt" \
-gateway-client-key "$HOME/.config/openshell/gateways/openshell/mtls/tls.key" \
-auth-disabledPackage-managed OpenShell installations generate this client bundle
automatically under ~/.config/openshell/gateways/<gateway-name>/mtls/. See
OpenShell's gateway authentication reference
and installation guide.
Operators running a gateway manually or in a container can create the bundle
with the documented generate-certs flow.
The BFF can also manage a remote OpenShell gateway by setting -gateway-url
to a deliberately exposed administrative endpoint. The gateway's server
certificate must cover that hostname, and the gateway must trust the BFF's
client certificate. Mutual TLS is especially important across a network: it
encrypts the administrative traffic, authenticates the gateway to the BFF,
and authenticates the BFF to the gateway. Restrict network access to the
endpoint and place an authentication proxy in front of the BFF for browser
users; mutual TLS does not replace user authentication or gateway RBAC.
The BFF is a token relay. It runs no OIDC flows, holds no sessions, and
never validates tokens. Browser authentication is owned by an auth proxy in
front of it; the BFF reads the bearer the proxy injects
(x-forwarded-access-token, configurable) — or an explicit Authorization: Bearer from API clients — and forwards it to the gateway on every gRPC
call. The gateway validates the JWT against its own OIDC JWKS and makes all
RBAC decisions.
-
Production / standalone with auth: run oauth2-proxy (or kube-auth-proxy on OpenShift) in front of the BFF, registered as an OIDC client with the same IdP the gateway trusts, with an audience the gateway accepts. oauth2-proxy handles login, cookie sessions, refresh, and sign-out (
/oauth2/sign_out— the BFF's defaultLOGOUT_URL), and it authenticates WebSocket upgrades (the terminal) like any other request. The secure-agent-workspace validated pattern ships exactly this setup. Deployment requirement: the BFF must only be reachable through the proxy — anything that can reach the BFF directly can present any header.A verified sidecar configuration (Dex as IdP, gateway audience =
client_id):--provider=oidc --oidc-issuer-url=https://<idp> # same issuer the gateway trusts --client-id=openshell-dashboard # must match the gateway's audience --redirect-url=https://<dashboard-host>/oauth2/callback --upstream=http://127.0.0.1:8080/ # the BFF --http-address=0.0.0.0:4180 # point the Service/Route here --scope=openid profile email groups --pass-authorization-header=true # forwards the ID token as the bearer --pass-user-headers=true # then set AUTH_USER_HEADER=x-forwarded-user --email-domain=* --reverse-proxy=true --insecure-oidc-allow-unverified-email # needed for IdPs that map a username # into the email claim without # email_verified (e.g. Dex's # OpenShift connector)Note the client must be confidential (oauth2-proxy requires a client secret) — a PKCE-only public client registration is not enough.
The RHOAI/OpenShell POC's sanitized Dex configuration, including its separate public embed client, is documented in
deploy/openshift/dex/. -
Dev (
AUTH_DISABLED=true): no auth, synthetic dev-user, no tokens forwarded.make dev-fullruns the gateway with unauthenticated calls allowed; Keycloak still mints real JWTs for exercising the Bearer relay path with curl or the CLI.
See docs/adrs/0002-auth-relay-only-bff.md for the full design.
make setup # install frontend + backend deps
make dev # frontend dev server (:3000) + BFF (:8080)
make dev-full # start Keycloak + gateway, then run dev (full OIDC stack)
make build # docker image (multi-stage: frontend + Go binary)
make test # jest + go test
make lint # eslint + golangci-lint + prettier
make typecheck # tsc --noEmit
make compat # gateway compatibility suite (needs Docker; see below)The BFF pins its SDK in backend/go.mod; the gateway is a separately released
artifact. Those two drift silently — a gateway release can break the dashboard
with no change on our side, which is exactly how the Sep 2026 SDK breaking
changes reached main unnoticed.
backend/test/compat is the guard: a Go suite that drives the BFF's REST API
against a real gateway and asserts the contracts the frontend depends on —
list endpoints returning arrays (not pagination envelopes), the delete outcome
envelope, the policy enum spellings, and a full sandbox lifecycle.
It is build-tagged compat, so go test ./... never picks it up.
make compat # against gateway:latest
OPENSHELL_VERSION=0.0.116 make compat # against a specific gateway release
make compat-up && make compat-down # manage the stack by handBumping sdk/go is not a local-only change. The Sep 2026 SDK renumbered
CreateSandboxRequest's protobuf fields — workspace_scope moved from field 8
to field 7, where older gateways expect a string. Against an older gateway every
workspace-scoped call then fails with:
workspace '\n\adefault' not found
That mangled name is the serialized WorkspaceSelector (0A 07 "default")
being read as a plain string. Always run make compat after an SDK bump.
The gateway's TOML config is versioned too, and the schemas are mutually
exclusive — dev requires v2, releases up to 0.0.116 require v1:
| v1 (≤ 0.0.116) | v2 (dev) |
|
|---|---|---|
version |
1 |
2 |
| compute driver | compute_drivers = ["docker"] |
compute_driver = "docker" |
image_pull_policy |
"IfNotPresent" |
"if_not_present" |
sandbox_namespace |
supported | removed |
OPENSHELL_CONFIG_SCHEMA (v1|v2, default v2) picks the template in
deploy/ci/gateway.e2e.*.toml.tmpl.
Two tag gotchas:
latestis not the newest gateway. It aliases the newest release (0.0.116, built 2026-08-28).devtracks upstream HEAD and is the only tag that keeps pace withsdk/go@latest.- Gateway and supervisor share a tag and must match.
Per ADR 0005 the dashboard
pins a supported range and never claims latest:
| Job | When | Blocking | Question |
|---|---|---|---|
compat (ci.yml) |
per PR | yes | do we still honor the range we promised? |
compat-sweep |
weekly / manual | no | how far ahead can we move? |
compat runs exactly one lane: the pin. That is the gateway this dashboard
claims to work with, and it is what a PR needs to prove. Looking around at
other releases is the sweep's job, on a schedule, not something every PR pays
for.
Today the pin is a dev digest, because no released gateway carries the
renumbered proto. An advisory lane on an older release would be a trap rather
than a canary: the SDK only moves forward, so such a lane can never go green.
compat-sweep also probes upstream HEAD (dev) on every run, as early
warning. Once the pin sits on a release, nothing else watches HEAD — the sweep
otherwise only walks release tags — so a HEAD regression would stay invisible
until it shipped in a release. dev is informational only and never a bump
target: ADR 0005 wants the pin on a release, so a green HEAD must not move us
onto a moving tag. Disable it with include_dev=0.
compat-sweep walks upstream release tags newer than the current floor,
taking the gateway image and the matching SDK commit from the same tag
(sdk/go is a submodule of NVIDIA/OpenShell, so a release tag resolves to an
exact SDK version). A green row newer than the floor is the signal to open a
range-bump PR — and per ADR 0005 the SDK pin, the gateway pins and the declared
range all move together in that one PR, never separately.
Because a sweep crosses the v1/v2 config boundary, it runs with
OPENSHELL_CONFIG_SCHEMA=auto, which tries v2 and falls back to v1 when the
gateway rejects the config.
Each run produces actionable pieces — up to two, because a bump and a migration are different work with different lifecycles:
| Newer releases | Bump PR | Migration issue |
|---|---|---|
| all compatible | to the newest | — |
| all incompatible | — | opened |
| mixed | to the highest that passes | opened for the rest |
| none released | — | closed if one was open |
- Bump PR —
chore/compat-bump-<version>. Moves the SDK pin anddeploy/ci/gateway-pins.jsontogether, as ADR 0005 requires. Closes by merging. Never auto-merged. - Migration issue — labelled
compat-migrate, a singleton rewritten in place. Tracks releases we cannot follow yet, which need investigation rather than a bump. Scoped to open issues, and auto-closed once nothing fails.
A failure is the most valuable result, so it is never silent.
The sweep only looks forward, and refuses a floor below the current pin. It moves the SDK and gateway together, so below the pin the build fails before anything talks to a gateway — which says nothing about compatibility.
The useful backward question is a different experiment: "does our current
build still work against an older gateway?" That holds the SDK fixed and varies
only the gateway image, which is what an advisory lane in
deploy/ci/gateway-pins.json does, and it is how the floor of the supported
range gets established.
The three failure modes are recorded separately (BFF did not compile / gateway did not start / compat suite failed) because only the last is a compatibility result.
The pins live in deploy/ci/gateway-pins.json, read by the compat matrix in
ci.yml and edited structurally by the bump PR — which is why they are not
inlined in the workflow.
OPENSHELL_VERSION selects the gateway and supervisor tag — they are
released together and must match. The community sandbox image publishes no
semver tags, so it is pinned separately via COMPAT_SANDBOX_IMAGE and
deliberately does not move with the gateway.
Local runs need a Docker-compatible socket at
/var/run/docker.sock. Rootless Podman on macOS does not satisfy the gateway's Docker driver out of the box — override withDOCKER_SOCKandOPENSHELL_STATE_DIRif your setup differs.
make build
podman run -p 8080:8080 \
-e OPENSHELL_GATEWAY_URL=host.containers.internal:50051 \
-e AUTH_DISABLED=true \
openshell-dashboard:latestFor local OIDC testing without containers, use ./scripts/dev-env.sh start instead (see above).
Browser ── REST ──► Go BFF ── gRPC (bearer) ──► OpenShell gateway
(React Query) (OpenShell Go SDK)
- The vendored Go SDK is the source of truth. Handlers call
github.com/NVIDIA/OpenShell/sdk/godirectly. The only remaining low-level escape hatch isbackend/pkg/clients/rawexec.gofor binary-safe file uploads, because the public SDK still lacks a non-TTY exec API that accepts raw stdin bytes. - Polling for status: sandbox state uses polling (5s via React Query
refetchInterval). WebSockets are used only for the interactive terminal. - Secrets never reach the browser: provider credentials are write-only; the BFF serializes only credential key names.
- Sandbox stop/start (OpenShell v0.0.113+): the lifecycle is create → ready/error → (stop ⇄ start) → delete. Stopping retains persistent state; there is still no suspend/restart. The UI reflects the API as-is.
- Sandbox policy is required at create: the form ships client-side starter templates (the gateway has no server-side policy library).
See CLAUDE.md and .claude/rules/ for contributor conventions.