Skip to content

Docker sandbox forwards API keys to container #12

@iliall

Description

@iliall

Summary

When using --sandbox docker, LLM API keys are forwarded into the container via forward_env. This allows code running inside the container to read and potentially exfiltrate these secrets.

Current Behavior

"forward_env": [
    "GITHUB_TOKEN",
    "GH_TOKEN",
    "OPENAI_API_KEY",
    "ANTHROPIC_API_KEY",
    "GEMINI_API_KEY",
    "DEEPSEEK_API_KEY",
    "GROQ_API_KEY",
],

Why It's Needed

The agent needs API keys to call LLMs. Without them, Docker mode doesn't work.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions