Repository navigation
Container and Kata workspaces on OpenShell v0.1.10 - #174
Conversation
The saw-kubernetes-runtime controller that drives a user's stock OpenShell gateway: it compiles the workspace plan, enrolls it, and reconciles the workspace, providers and sandboxes. - OpenClaw tool gate: automation approvals, retry hints, harness rules and model thinking, with a best-effort local audit log by default and signed fail-closed receipts as an option. The audit mount stays on log/. - Superseded tool-gate trees are kept for sandboxes that still mount them. - Native providers: an already-configured refresh is observed, not resent. - A credentialed provider's live profile must match the shipped governed profile exactly: every endpoint's host, ports, path, protocol, access and rules (custom inference: the site's host). - Kata: the boundary check requires the workload and the supervisor in the approved RuntimeClass. Assisted-By: Claude
Portal and GitOps projection of container and Kata workspaces, and the platform charts they need. - saw-portal-container: per-user stack (identity, policy, gateway, audit, relay). No cluster-specific addresses: the Kubernetes API through the control-plane nodes, DNS by selector, the cluster's default StorageClass. Signed audit receipts are optional (auditReceipts); OCSF events and the agent trace relay go to the pattern's OpenTelemetry collector. The gateway and the admission policy pin the same runtime and supervisor images. - saw-runtime-policies: supervisors may carry only the configured OCSF and agent-trace collectors and a numeric attach timeout; in Kata mode both the workload and the supervisor must use the approved class (two VMs). - saw-users: projection with an IP-free projector; Kata users default to saw-kata, bound by its live UID and placement digest on autoApprove sites. - saw-kata (KataConfig and an attachable saw-kata RuntimeClass) and saw-telemetry (OCSF logs and agent traces collector). - OpenShell v0.1.10-rhaiv.0 for VM and container users; the governance interceptor rebuilt from v0.1.10; container sandboxes on a temporary openshell-sandbox carry until a fixed image is released. - openshell-rhdh portal, Keycloak relay registrar, container defaults. Assisted-By: Claude
- values-prod: OpenShift sandboxed containers and Red Hat build of OpenTelemetry operators, saw-kata (off by default), saw-telemetry, agent-sandbox, container defaults for saw-users and the portal. - make saw-init is the one preparation step: storage classes and, only for audit receipts, the shared RWX class. - make e2e-workspace checks one user's live workspace for vm, container or kata: Argo, sandbox, Kata placement, a real inference turn, the tool-gate audit entry and OCSF export. - Scripts and tests follow OpenShell v0.1.10. Assisted-By: Claude
- OpenShift-ready OpenClaw image and the workspace runtime image, published from branches on demand. - Governance interceptor built from OpenShell v0.1.10 (Rust 1.95) with the SAW extension; the ai-openshell/openshell#3929 workaround stays. - TEMPORARY carry: odh-openshell-sandbox v0.1.10-rhaiv.0 rebuilt with one fix. Its network broker panicked on every connect on RHEL 9: rustix could read the aux vector neither through PR_GET_AUXV (Linux 6.4+) nor through /proc/self/auxv once the sandbox is nondumpable. The patch reads it at the top of main(). Remove once a fixed image is released. Assisted-By: Claude
README rewritten as an install guide (VM, container and Kata users, make e2e-workspace); container installation, Kata (pattern-managed runtime, two VMs per sandbox), audit events and receipts, deployment and governance docs updated for OpenShell v0.1.10. Assisted-By: Claude
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hadar301
left a comment
There was a problem hiding this comment.
I reviewed PR #174 with the #173 review as context. The four earlier high urgency findings remain fixed, and the description now covers the broader scope.
One high urgency issue remains in charts/saw-telemetry/values.yaml:9–11: the sole default exporter uses debug verbosity: basic, which writes batch counts and discards the OCSF event bodies and trace details. Successful delivery therefore leaves no event details in the documented collector log. Please use a record-preserving exporter, or detailed output for the demonstration setup, and verify a record with its body and sandbox identity before merge.
Two medium issues also need attention. Lifecycle-enabled model selection generates a local-audit binding that compiler.py:402–404 rejects without a receipt key. Also, the W6 check can pass from another workspace's traffic because it only counts shared collector batch summaries. Please support or reject the lifecycle/audit combination before enrollment, and make W6 verify an event from the workspace under test.
…settings Use detailed, unsampled collector output for the demonstration deployment. Require W6 to find a fresh OCSF JSON body and matching sandbox identity rather than shared batch summaries. Select the requested sandbox's own pod pair. Reject lifecycle model selection without receipts in shared projection, portal requests before credential writes, and direct chart rendering. Keep the compiler's receipt-key requirement intact. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ecf0448 to
68246ce
Compare
Fixed all three in
Targeted tests and live Kata W1–W6 checks passed on |
Container and Kata workspaces on OpenShell v0.1.10: GitOps-deployed, with no cluster-specific configuration. Kata gets two VMs per sandbox. OCSF audit export and the agent trace relay go to a collector the pattern deploys.
What this changes
kubernetes-runtime/: controller, plan compiler, tool gate, provider and boundary checkscharts/,overrides/: per-user stack, admission policies, projection, Kata and telemetry chartsvalues-prod.yaml,scripts/,Makefile*.github/,images/,image-builder-charts/,openshell-sandbox-carry/README.md,docs/Container and Kata workspaces
overrides/saw-users.yamlcreates a container or Kata workspace through Argo CD. The projector resolves the user, enrollment publishes the boundary, and the runtime reconciles the user's own OpenShell gateway.nodespeer on the control-plane nodes, and DNS through the cluster DNS pods. No IPs are needed.overrides/container-network.yamland the per-cluster storage file are gone.make saw-initis the one preparation step.auditReceipts). Only then does a workspace get the audit writer, asaw-history-*namespace and RWX storage.diagnostics-otelplugin, which OpenClaw 2026.9.6 doesn't bundle; that's a follow-up.saw-runtime-policies): supervisor and workload pods must match the stock OpenShell shape. That means the approved images and commands, and only the configured OCSF and agent-trace collectors and a numeric attach timeout. The gateway and the policy get their images from one value.Kata
values-prod.yamlinstalls the OpenShift sandboxed containers operator.saw-katacreates the KataConfig, selecting plain workers only. It also creates asaw-kataRuntimeClass that's already labelled attachable, so nobody labels the operator's class by hand. It is off by default, because enabling it reboots the workers once.saw-kata. OnautoApprovesites the projector binds them to its live UID and placement digest automatically. Reviewed sites keep an explicit binding.supervisor_runtime_class_name), the supervisor runs in its own Kata VM. It handles the agent's traffic and credentials, so it never shares the workload's guest kernel. This is required, not optional: the admission policy and the controller's boundary check both enforce it.OpenShell v0.1.10-rhaiv.0
Tooling:
make e2e-workspace OPENSHELL_SAW_NAME=<user> DEPLOYMENT_MODE=vm|container|katachecks one user's live workspace:Temporary items
odh-openshell-sandbox:v0.1.10-rhaiv.0panics in its network broker on every connect, so the agent has no network and no inference.clock_ticks_per_second(). rustix reads the aux vector withprctl(PR_GET_AUXV), which needs Linux 6.4 or later, or with/proc/self/auxv, which a non-dumpable sandbox running as a non-root UID can't read.openshell-sandbox-carry/rebuilds only/openshell-sandboxfrom the same downstream commit with a one-line warm-up at the top ofmain(), and layers it onto the official image.ghcr.io/sauagarwa/…CI builds until main CI publishes them.Verification
make e2e-workspacewith every check green. For the Kata user, the workload and the supervisor each ran insaw-kata. Removing and recreating both users through GitOps also worked.Follow-ups (separate PRs)
diagnostics-otelplugin, or a newer OpenClaw).saw-ctl-*andsaw-ui-*namespaces.https://claude.ai/code/session_01B7As13NaHoAbqt5NZ6SRn8
Supersedes #173 (same 5 commits by @sauagarwa, unchanged).
CI fixes
Vendor the served KataConfig v1 schema from OpenShift sandboxed containers
operator v1.13.1 at commit
891eadc9fa270c38b1d7040d05675636990058b8.Deployment validation continues to reject missing schemas, and the schema
lookup test and pinned-source documentation include KataConfig.
Extend the existing NemoClaw Debian package alignment to replace the removed
ca-certificates=20250419pin with20250419+deb13u1, keeping the curl8.14.1-2+deb13u7alignment. Tests execute the workflow step against stale,partially updated and already-correct pins, then confirm a second run changes
nothing.
Local targeted verification:
uv run --locked pytest -q tests/charts/test_nemoclaw_image_build.py tests/scripts/test_deployment_validation_ci.py— 27 passed.make test-dependencies— 0 errors, including 299 schema resources.GitHub CI at
838b8513: 25 successful checks, 12 expected skips,including Deployment validation and both NemoClaw sandbox architectures.
Installation blocker fix
The first fresh-cluster install exposed a failure in the documented credential
setup: the current utility framework rejects duplicate secret names even when
vaultPrefixesdiffer. The container-workspace instructions now put distinctowner keys in a separate values-secret file selected explicitly with
VALUES_SECRET; the template also explains how one entry can share identicalcredentials across multiple prefixes. Appending a second
inferenceorweb-searchentry to the platform's file no longer appears as the install path.Review follow-up fixes
a dedicated logger, preserving OCSF event bodies, sandbox identities and trace
details in its logs. The installation guide distinguishes demonstration logs
from a production SIEM or durable audit store.
auditReceipts: true. Staticprojection rejects an unsupported local-audit combination before enrollment
reads, portal requests reject it before credential writes, and direct chart
rendering rejects it before the enrollment Job exists. The compiler's receipt
requirement remains enforced. Fixed-model local audit remains supported.
a fresh OCSF JSON body whose
device.container.uidmatches both the livesandbox UUID and the record's
openshell.sandbox.idattribute. Batch summaries,other sandboxes, stale bodies, malformed records and request resource references
cannot satisfy it.
tests passed (278 distinct cases across targeted runs).
make test-dependenciesagain completed with 0 errors, including 299 schema resources.
68246cedis running.Live verification
Fresh-cluster verification on 2026-11-25, following README Installation
→ Kata workspace and
docs/kata-workspaces.md:cluster-9q89w, OpenShift 4.22.22, BareMetal,OVNKubernetes.
instance-type label is present. Control-plane nodes were excluded from Kata.
saw-kata-pool: 2 installed / 2 ready,InProgress=False;MachineConfigPool
kata-ocUpdated and not degraded. Bothkataandattachable
saw-kataRuntimeClasses are present.kata1usessaw-katafor its separate supervisor and workload Pods, custom inference athttps://integrate.api.nvidia.com/v1, andnvidia/nemotron-3.5-lightning-30b-a3b.mtalvi/secure-agent-workspace:test/fresh-cluster-kata; none are in this PR.make e2e-workspace OPENSHELL_SAW_NAME=kata1 DEPLOYMENT_MODE=kata— passed.Owner browser chat passed. On 2026-11-25, @mtalvi confirmed the manual
check: signing in as
kata1, sending a chat message through the owner route,and receiving a real model reply.
The Kata e2e above was rerun after the review fixes on 2026-11-25.
The deployed collector retained the following fields from the verified record:
{ "log_record_attributes": { "openshell.sandbox.id": "bcf92a35-24e7-46b6-9a78-ccd28ec4e8b2" }, "ocsf_body_excerpt": { "class_uid": 4001, "class_name": "Network Activity", "activity_id": 1, "activity_name": "Open", "type_uid": 400101, "time": 1795609907070, "device": { "container": { "uid": "bcf92a35-24e7-46b6-9a78-ccd28ec4e8b2" } } } }