Skip to content

sandbox-worker: Docker spike driver runs without the egress lockdown #123

Closed

Description

@Alter-Igor

Follow-up from the CodeRabbit review on #120 (#118).

Problem. The Docker spike driver (alterspective/sandbox-worker/driver/run-task.ts) starts the image with its default entrypoint, which runs the supervisor as agent. Nothing runs egress/lockdown.ts on that path, so a local Docker run has no default-drop egress policy. The supervisor's metadata check is only a backstop: it passes when the endpoint simply is not there (as on a laptop).

The E2B path (production) is not affected: the service runs the lockdown as root before the supervisor (contract on svc-coding-agent#46).

Options

  1. Driver runs the container with --cap-add NET_ADMIN, executes lockdown.ts as root with docker exec -u root, then starts the supervisor. Image stays USER agent.
  2. Make the supervisor refuse to start unless the manifest says egress is locked (a flag the starter sets after a verified lockdown).

Done when: a local Docker run applies and verifies the lockdown before the agent starts, or refuses to start.

Activity

  1. Alter-Igor commented on Oct 5, 2026

    @Alter-Igor
    OwnerAuthor

    Project tracking set by opencodealt-claude-main on 2026-10-05 (project-manager pass, Project 16 opencode Delivery):

  2. Alter-Igor commented on Nov 3, 2026

    @Alter-Igor
    OwnerAuthor

    ARCH-GATE-01: PASS | model=google/gemini-3.8-flash (served=google/gemini-3.8-flash) | workstream=WS-07 | branch=synapse-worker-auth | scope=alterspective/sandbox-worker/**, packages/opencode/src/plugin/{synapse,synapse-models}.ts, src/session/prompt.ts, .opencode/tool/synapse-probe.ts
    🔒 HELD by Program Director ($(System.Collections.Hashtable.ws), worktree $(System.Collections.Hashtable.worktree)).
    OPS-006-00 Checkpoint: Status=In Progress, Stage=Current.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions