Repository navigation
feat(host): sandbox connector processes on macOS and Linux - #456
Merged
Merged
Conversation
Start each connector under sandbox-exec on macOS or the shipped Linux launcher. When that sandbox cannot start, keep today's Node flags and load a prelude that retains the host.sandbox warning.
3 tasks done
aicayzer
marked this pull request as ready for review
December 1, 2026 01:56
aicayzer
commented
Dec 1, 2026
aicayzer
left a comment
Contributor
Author
There was a problem hiding this comment.
Review: security review done; details held privately
Summary. Ready to merge: three review rounds, every blocking finding fixed, and the last round found nothing.
Reviewed by withmarfa-reviewer on Claude Opus 5.5. This review may contain mistakes.
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.
Summary
The connector host now starts each connector inside an operating-system sandbox:
sandbox-execon macOS and a small compiled launcher (Landlock and seccomp) on Linux. When the sandbox can't start, the connector still runs under the host's Node permission flags and the owner sees a quiet warning in Marfa. The Linux install no longer uses up the one-time link on a machine it can't set up.Closes #424
Closes #432
Closes #433
Changes
PUT /connector-hosts/self/connectors/{plugin}/sandbox, Marfa 0.0.121) with a launch number the host keeps on disk, so a late report can't override a newer start. Connector state and problems are untouched.nsswitch.confasks for, and restart a connector after a file it was given is replaced.--no-servicethroughinstall-host.sh, and name a missing library before installing.@withmarfa/client0.0.121 in the host, and move it with the kit and scripts when following a release.Testing
sandboxandconnector-hostproof groups passed. New behavior had tests seen failing first.Notes for reviewers
Security boundary: reviewed three times. Known limits, which
host/README.mdstates: on macOS no profile rule stops a connector asking the system to sendSIGIO(ignored by default) through a pipe or socket, and on Linux a machine that resolves names withmyhostnamelets a connector read network addresses and routes. A connector that uses up ports or processes can delay other connectors' starts, and replacing a file the sandbox was given restarts connectors, which can interrupt a run.Checklist