Repository navigation
feat(sandbox): bubblewrap sandbox for the OpenCode CLI (v3.1.0) - #20
Merged
Merged
Conversation
Add an optional 'sandbox' component installing bubblewrap and ~/.local/bin/opencode-sandbox (alias 'ocs'): runs opencode with a read-only system, a writable workspace, and only OpenCode's own state dirs mounted — ~/.ssh, cloud credentials and ~/.env.workbench stay outside. Network allowed by default; OPENCODE_SANDBOX_NO_NET=1 isolates. - scripts/sandbox/opencode-sandbox.sh (wrapper) - components.ts: sandbox component + uninstall - aliases.sh: ocs alias - docs: security-model (Layer 2b), README, AGENTS, mcp-server/README, CHANGELOG - vdd: spec vdd/specs/opencode-sandbox + tactics A-012 - version 3.1.0 (package.json/server.json/connector.json)
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an optional
sandboxcomponent that installs bubblewrap and~/.local/bin/opencode-sandbox(aliasocs).~/.ssh,~/.env.workbench, cloud credentials excludedOPENCODE_SANDBOX_NO_NET=1isolatesscripts/sandbox/opencode-sandbox.shdocs/security-model.mdLayer 2b, README, AGENTS, mcp-server/READMEvdd/specs/opencode-sandbox/spec.md+ tactics A-012; CHANGELOG v3.1.0Verified via
cs run "pnpm typecheck && pnpm test && pnpm build"— 55 tests pass.