You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
openshell image: provide /sandbox so the workspace path can be uniform across OpenShell drivers #130
OpenShell's Kubernetes driver mounts the sandbox workspace PVC at /sandbox
(volumeMounts: [{name: workspace, mountPath: /sandbox}]). The image's own /workspace is the read-only container rootfs, so on Kubernetes anything written
there fails with EACCES — the sandbox runs as an SCC-assigned arbitrary UID
(e.g. 1000870000), not the image's 1001.
The Podman driver has no such volume, so /workspace (the image's WORKDIR) is
the writable directory and works fine.
Consequence today
Consumers must know which path applies per driver. In zero-trust-agents-v2 this
showed up as docsclaw serve failing to write /workspace/serve.log and sandbox upload failing, on Kubernetes only. It is worked around there with a
per-driver WORKSPACE_DIR (/workspace Podman, /sandbox OpenShift) plus
rendering tools.workspace and --config-dir from it. That works, but it is one
more thing every caller has to get right.
Proposal
Create /sandbox in the OpenShell image as well (owned by the runtime user, same
mode as /workspace), so both drivers can use /sandbox:
Then consumers can set one workspace path for both drivers. (serve already
honours tools.workspace > --workspace > /workspace, so no CLI change is
needed — only the image needs to make the path usable.)
Acceptance
/sandbox exists and is writable by UID 1001 in the -openshell image.
On Podman, docsclaw serve --workspace /sandbox starts and serves /health 200.
On Kubernetes, the same command works against the mounted PVC.
zero-trust-agents-v2 can drop the per-driver WORKSPACE_DIR difference and
re-run its Podman scenarios 11–15, which are the current proof for that path.
Why tools.workspace alone is not enough
It selects the agent's working directory, but the config directory passed to --config-dir must also live on a writable volume, so a single path is still
worth having for both.
Activity