Skip to content

Revert bash sandbox via bubblewrap (#58)#59

Merged
Anton-Horn merged 1 commit into
mainfrom
revert/bash-sandbox-bubblewrap
Jun 9, 2026
Merged

Revert bash sandbox via bubblewrap (#58)#59
Anton-Horn merged 1 commit into
mainfrom
revert/bash-sandbox-bubblewrap

Conversation

@Anton-Horn

Copy link
Copy Markdown
Contributor

Reverts #58 (30e1237), which installed bubblewrap/socat and added a runtime probe + PI_REQUIRE_BASH_SANDBOX switch to confine the bash tool via nested user/mount namespaces.

The bubblewrap approach did not work in the OCD container environment: even with userns/relaxed seccomp, the nested namespace sandbox failed to engage, so bash kept falling back to unsandboxed (now loudly logged, but still no real isolation) while the container hardening was weakened with no benefit.

This restores the three files to their pre-#58 state:

  • server/Dockerfile — drops the bubblewrap + socat apt packages.
  • server/lib/pi/extensions/project-sandbox/index.ts — back to the SandboxManager fail-open path, no probe / no PI_REQUIRE_BASH_SANDBOX / no loud logging.
  • server/.ocd-deploy.json — drops "userns": true.

The per-project-UID approach will replace this for real bash isolation.

Pairs with the one-click-deploy revert/userns-feature PR that removes the platform-side userns plumbing.

Leaving open for manual review/merge.

@Anton-Horn Anton-Horn merged commit 5aef5a0 into main Jun 9, 2026
2 checks passed
@Anton-Horn Anton-Horn deleted the revert/bash-sandbox-bubblewrap branch June 9, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant