Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Don’t you trust the AI vendor’s own sandbox? I didn’t have a good answer

说明与用途

通过将容器隔离与卷挂载秘密删除相结合,并使用受控网关,项目填补了供应商沙箱留下的空白:在文件系统层隐藏秘密,验证配置,并允许安全的跨容器交互。

问题

Developers building AI coding agents need to protect secrets and control container access, but existing vendor sandboxes (Claude Code Sandbox, Docker AI Sandboxes) do not cover all threat models.

结果

By combining container isolation with volume‑mount secret removal and a controlled gateway, the project fills gaps left by vendor sandboxes: it hides secrets at the filesystem level, validates configurations, and allows safe cross‑container interaction.

工作流

  • 1. Configure docker‑compose.yml with volume mounts to hide secret files (e.g., /dev/null:/workspace/.env:ro).
  • 2. Run AI Sandbox container; startup validation checks deny rules against mounts and warns on mismatches.
  • 3. HostMCP starts as a gateway, exposing only whitelisted commands and masking sensitive output.
  • 4. AI agent interacts with containers via HostMCP, reading logs and running allowed commands, but cannot access blocked paths or start/stop containers unless explicitly enabled.
  • 5. If new secret files appear, AI Sandbox prompts the user to decide whether to hide them or leave exposed.

证据

AI Sandbox sidesteps this at the file level entirely. Each project's secret files are individually hidden from the AI's filesystem via volume mounts, regardless of directory hierarchy.

来源

The sandbox runs a validation check at startup to confirm the AI tool's deny rules stay in sync with the volume mounts in docker-compose.yml.

来源

  • 记录日期: 2026-09-07T01:52:06.052Z