You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
reservedSandboxKeys only guards env.sandbox, not .env.d or host_files dest #7010
reservedSandboxKeys is consulted only by buildSandboxEnvLines (internal/cli/run.go), so it stops a harness env.sandbox entry shadowing a runner-owned export and nothing else. Two other harness-controlled routes reach the same variables.
First, bootstrapEnv sources .env.d/*.env partway through the generated script, so any host_files entry with expand: true landing a file there overwrites every export written above that line. FULLSEND_ROLE and FULLSEND_SLUG are written above it today.
Second, host_files entries have an unvalidated dest, and .env is uploaded before them, so dest: /sandbox/workspace/.env replaces the runner's file wholesale regardless of ordering.
This is trusted harness config rather than an untrusted-input path — the harness is as trusted as the runner invoking it — so the impact is that the reserved-key guarantee is narrower than it reads, not that an attacker gets in.
Proposed change
Either source harness-controlled files before every runner-owned export, or reject a host_files dest that targets the runner's own .env.
Validation criteria
A harness that sets FULLSEND_ROLE through an .env.d file, and one that targets /sandbox/workspace/.env with host_files, both fail or are ignored rather than replacing the runner's value.
Context
Found while reviewing #7007, which moved that PR's two run facts below the .env.d line and closes the first route for those two keys only. The general gap remains.
Reacted by fullsend-ai-triage and fullsend-ai-coder
// TestReservedKeysNotOverriddenByEnvD verifies that .env.d files// cannot shadow runner-owned infrastructure variables.funcTestReservedKeysNotOverriddenByEnvD(t*testing.T) {
// Build a harness with a host_files entry that lands// FULLSEND_ROLE=attacker in .env.d/override.env// Call bootstrapEnv and assert FULLSEND_ROLE retains// the runner-set value, not the .env.d value.
}
// TestHostFilesDestRejectsRunnerEnvPath verifies that host_files// cannot target the runner's own .env file.funcTestHostFilesDestRejectsRunnerEnvPath(t*testing.T) {
// Build a harness with host_files dest: /sandbox/workspace/.env// Assert bootstrapEnv returns an error or ignores the entry.
}
Labels: Sandbox env var guard bypass via .env.d and host_files is a confirmed runner/sandbox defect with limited impact (trusted config only).
Next steps:
/fs-code — agent creates a PR to implement this issue
/fs-code <your instruction> — agent implements with your specific guidance
Relevant to this issue: A bug was identified where runner credentials in environment files shadow placeholder tokens injected by providers into the sandbox — directly related to this issue's concern about .env.d and host_files bypassing reservedSandboxKeys.
A bug was identified where runner credentials in .env files shadow placeholder tokens that providers inject into the sandbox
Proposal to document that sandbox configuration should exclude sensitive tokens and rely on providers for credential injection
Proposal to improve process isolation by explicitly defining environment variables in maps rather than inheriting them from the runner process
Related PRs:#7012 (guard reserved sandbox keys against .env.d and host_files bypass), #7192 (preserve workflow token for GitHub Packages providers)
Next steps: Review PR #7012 for removing tokens from sandbox blocks. Update documentation to specify that the sandbox should not contain sensitive information and that providers should be used for credential injection.
Activity
fullsend-ai-triage commentedon Sep 4, 2026
🤖 Finished Triage · ✅ Success · Started 2:57 PM UTC · Completed 3:01 PM UTC
Commit:
fecb2f0· View workflow run →Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $0.80
fullsend-ai-triage commentedon Sep 4, 2026
Related issues:
reservedSandboxKeysset is smaller thanreservedCredentialKeys). That issue is about the key coverage; this one is about the code-path coverage. Both can be addressed independently..env.droute by moving two specific run-fact exports below the sourcing line, but the general gap for all reserved keys remains.Proposed test case:
Labels: Sandbox env var guard bypass via .env.d and host_files is a confirmed runner/sandbox defect with limited impact (trusted config only).
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidancefullsend-ai-coder commentedon Sep 4, 2026
🤖 Finished Code · ✅ Success · Started 3:03 PM UTC · Completed 3:23 PM UTC
Commit:
fecb2f0· View workflow run →Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $7.00
fullsend-ai-scribe commentedon Sep 22, 2026
Meeting update — 2026-09-22
Relevant to this issue: A bug was identified where runner credentials in environment files shadow placeholder tokens injected by providers into the sandbox — directly related to this issue's concern about
.env.dandhost_filesbypassingreservedSandboxKeys..envfiles shadow placeholder tokens that providers inject into the sandboxRelated PRs: #7012 (guard reserved sandbox keys against
.env.dandhost_filesbypass), #7192 (preserve workflow token for GitHub Packages providers)Next steps: Review PR #7012 for removing tokens from sandbox blocks. Update documentation to specify that the sandbox should not contain sensitive information and that providers should be used for credential injection.
Meeting notes