Skip to content

bug: processes under launchd require proper network permission configuration to access Tart bridge #73

Description

@STRRL

Summary

In Issue #72, we implemented a workaround by switching to the ssh binary for readiness probes. While this unblocks CI, it does not resolve the root cause: Go processes running under launchd (via Homebrew services) cannot directly route TCP traffic to the Tart bridge interface (bridge101).

This is a "bypass" rather than a fix. Any future features requiring direct TCP/Socket communication from the runner to the VM will still fail.

Observed Behavior

  • Interactive Shell: net.Dialer in Go can reach the VM IP (e.g., 192.168.64.x) perfectly.
  • launchd Service: The same code fails with connect: no route to host.
  • Note: The ssh command-line tool works in both contexts, which suggests ssh might have different entitlement or bypasses that raw Go sockets do not have under launchd.

Investigation / Tasks Needed

We need to identify the specific macOS security/network policy causing this isolation:

  1. TCC/Permissions: Does the daemon need specific "Local Network" or "Full Disk Access" entitlements in the .plist?
  2. Sandbox Restrictions: Does launchd apply a default sandbox profile that restricts access to bridge interfaces?
  3. Documentation: Once identified, we should update the installation guide to include the mandatory system-level permission grants (e.g., using tccutil or modifying the service .plist).

Relates to

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions