Skip to content

Sprites network policy for restricted mode and MCP reachability #3766

Done

Description

@integry

Sprites offer a DNS allowlist network policy and block private IPs, so the Unix-socket egress proxy and the propr-agent-mcp Docker network do not apply.

Acceptance:

  • SpritesRuntime enforces restricted mode by applying the run allowlist via updateNetworkPolicy before start and resetting after; declares the capability so admission accepts it.
  • MCP-granted runs reach ProPR via a configured public URL (or Connect gateway) with a per-run, short-lived token scoped to the grant.
  • Optional: Sprites Connectors as credential source (GitHub/Anthropic/OpenAI) so tokens never enter the Sprite; verify whether git-over-HTTPS works through the GitHub connector and fall back to short-lived token if not.

Implementation

Extend spritesRuntime.ts; add connector configuration to runtime settings. Document the trust model in execution-safety.md.


Update 2026-11-24: #3764 landed as PR #3791. SpritesRuntime.start() currently refuses restricted, named and policy-restricted networks with "Sprites requires open networking". This issue replaces that refusal with real enforcement (an updateNetworkPolicy allowlist that is applied before the run and reset in release before the checkpoint restore) and declares the capability. Keep the refusal for anything still not enforceable. Use the SpritePool and launcher in packages/core/src/agents/runtime/sprites/.

Activity

  1. propr-dev commented on Nov 24, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3766/claude-opus-5-5-sprites-network-policy-fo-20261124-2108-xkv
    • Base Branch: 3758-epic-runtime-abstraction-sc0
    • Worktree: issue-3766-20261124-2108-claude-opus-5-5-xkv

    🔍 Track Task Execution

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions