Repository navigation
Conversation
5050f76 to
d73503e
Compare
Hadar301
left a comment
There was a problem hiding this comment.
Three high-urgency issues block the merge:
-
Production values enable dev-only auto-approval (
overrides/saw-container-defaults.yaml:42-47).values-prod.yamlloads this file forsaw-usersand the self-service portal. The default enablesautoApprove, which lets the portal offer every catalog profile and lets enrollment publish the first observed boundary and BOM without a reviewed reference or profile digest. Please keep this off in production values. Require the reviewedreferenceandapprovedProfiles, and put auto-approval in a demo-only values file. -
A per-user
falsecannot disable default auto-approval (charts/saw-users/templates/_helpers.tpl:520-524).mergeOverwriteskips empty values, socontainerSites.<name>.automaticEnrollment.autoApprove: falsedoes not override a sharedtrue. The chart projector then keeps auto-approval enabled, while the portal's Python merge acceptsfalse. Please merge by explicit key presence and test that both paths honor the same per-user override. -
Install defaults to a privileged demo NFS stack (
scripts/shared-storage.sh:115-124,229-230).saw-initruns this duringpattern-installandmake saw-create. If no recognized RWX class exists, the unset default creates a single-pod NFS server, grants it privileged SCC access, and adds a cluster-scoped provisioner role without an opt-in prompt. Please fail with guidance by default and require an explicitSAW_SHARED_STORAGE=nfschoice for the demo server.
GitHub also reports this PR as non-mergeable (dirty) and shows no check runs. Please resolve the merge state and run the required checks after these fixes.
a440492 to
64770a8
Compare
Hadar301
left a comment
There was a problem hiding this comment.
One high-urgency issue remains in charts/openshell-saw/files/installer/saw_core.py:1327-1328. The harness tool-rule builder inserts an MCP server name into policy text without validating or escaping it. A name containing newlines can inject an unconditional allow rule for exec, which can bypass the tool gate's default-deny behavior. Please reject names that do not match MCP_SERVER_NAME_RE before building rules, serialize policy fields safely, and add a regression check for invalid names.
Optional:
The PR title and body describe only the OpenClaw command aliases, but the diff spans 94 files and includes container/Kata provisioning, provider credentials, network policy, and shared storage. Please update the PR description or split the unrelated changes. The latest available check snapshot still had the Python 3.12 and 3.14 test jobs in progress; wait for required checks to finish before merge.
For testing alice's container workspace on cluster vvkp4siy, which deploys this branch directly: - overrides/container-network.yaml: this cluster's API, DNS and Keycloak egress, storage classes and ApplicationSet controller labels (make container-topology). - values-prod.yaml: list it, and the demo overlay (enrollment on first observation), in saw-users' extraValueFiles. - custom-inference governance profile: api.enmaas.devshift.net. Revert this commit, and fac2da8 (alice's entry), before PR validatedpatterns-sandbox#173 merges. PR tests that expect the shipped values and example host fail until then. Assisted-By: Claude
Validate workload GID, strict groups, and sysctl values against generated OCI policy. Normalize only explicit host namespace denials. Narrow PVC policy mounts to their approved read-only mode and recheck that boundary during enrollment. Reject unsupported subpaths before generation. Document the remaining Kata subpath blocker and the distinct storage scope of PR validatedpatterns-sandbox#173. Keep confidential deployment gates closed.
ad0fbc4 to
5e71fbd
Compare
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
709d5cb to
efd4e4c
Compare
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
ba27387 to
848ca3a
Compare
|
Thanks for the review. I've rewritten the branch as 5 commits by area. The code is unchanged from what was tested; only the history is new. Response to each finding: P0: production values install the test cluster. Fixed. The test-cluster configuration was always marked TEMPORARY and is no longer on the branch:
P1: the charts don't run the sandbox carry. Fixed. Your snapshot predates the pin.
P2: endpoint equality drops path and protocol. Real, and wider than reported: the access preset and L7 rules were ignored too. A live github profile could have dropped the
On "fixed since the last review": as noted there, keeping superseded tool-gate trees means each policy update leaves another directory on the gate volume. I've listed that as a follow-up. After all of the above, a GitOps container user and a Kata user passed |
|
Can be closed. Done in #174 . |
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.🤖 Generated with Claude Code
https://claude.ai/code/session_01B7As13NaHoAbqt5NZ6SRn8