Skip to content

Replace custom DockerSandbox with supported Mastra sandboxing and environment configuration #40

Description

@justsml

This was generated by AI during triage.

Goal

Fold the custom Kali Docker sandbox behavior into preferred/supported Mastra sandboxing, while retaining ExploitHunter’s Kali image and isolation requirements.

Scope

  • Replace, retire, or reduce src/mastra/config/docker-sandbox.ts in favor of the supported Mastra sandbox/provider path.
  • Support .env sandbox-provider configuration using meaningful values (provider, image/template, network mode/profile, resources, endpoint/region), without adding custom boolean flags.
  • Preserve thread workspace semantics, approved execution, resource limits, offline default, and error visibility.
  • Reuse the project-lab hardening/containment seam instead of maintaining a second Docker command builder.

Acceptance criteria

  • Docker/custom sandbox behavior no longer bypasses the project lab hardening defaults.
  • Provider selection and errors are deterministic and test-covered.
  • Existing local development configuration remains explicit and safe by default.

Notes

This issue is being implemented in parallel; reconcile the delivered work and update the ticket with the resulting approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty: LLarge cross-module implementation scopeenhancementNew feature or requestpriority: criticalContainment or safety work with unacceptable risk if deferredready-for-agentReady for an implementation agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions