Skip to content

sandbox: extend env denylist to telemetry and runtime control variables #5949

Description

@dhshah13

What happens

A harness can currently place the agent runtime's own telemetry and control variables into the sandbox environment with no fullsend gate involved:

What should happen

Per ADR 0085 (PR #5947): OTEL_*, CLAUDE_CODE_*, and TRACEPARENT are denied among env.sandbox keys including forge-merged bases; host_files destinations that the sandbox sources or the runtime consumes are denied, and resolved content landing in remaining sourced locations is scanned for denied assignments. Violations are pre-flight hard errors before sandbox creation — stricter than the existing warn-and-skip, scoped to the new variables only.

Context

Independent of Level 3 and worth fixing on its own: this is the same surface #5837 hardened for OIDC credentials, and the failure mode is the one the sibling agentic-ci harness shipped (content capture enabled unconditionally). Also a precondition for ADR 0084's activation contract — the gates are meaningless if the sandbox can self-enable capture.

Relates to #5837, #5917, #5948.

Activity

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

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions