Skip to content

fix(tools): drop sandbox proxy on unconfined retry - #403

Merged
github-actions[bot] merged 2 commits into
mainfrom
fix/unconfined-shell-drops-sandbox-proxy
Aug 19, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
fix/unconfined-shell-drops-sandbox-proxy

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Approved sandbox escalations reran bash/exec_command without the sandbox wrapper but still injected HTTP(S)_PROXY. gh pr create then hit the in-sandbox relay or the deny-all host proxy.

Only attach egress env when the command is actually confined, honor unconfined_shell in exec_command, and cover both with tests.

Approved sandbox escalations reran bash/exec_command without the
sandbox wrapper but still injected HTTP(S)_PROXY. gh pr create then
hit the in-sandbox relay or the deny-all host proxy.

Only attach egress env when the command is actually confined, honor
unconfined_shell in exec_command, and cover both with tests.
@github-actions
github-actions Bot enabled auto-merge (squash) August 19, 2026 11:14
exec_command defaults to sh, which is dash on Debian/Ubuntu. A blocked
write there is "Directory nonexistent", not bash's "No such file or
directory", so the denial never escalated and CI's exec_command
enforcement tests failed. Treat the dash string the same way, still
only when the missing path is outside the workspace.
@github-actions
github-actions Bot merged commit f8f9509 into main Aug 19, 2026
8 checks passed
mohitranka added a commit that referenced this pull request Aug 21, 2026
* fix(tools): drop sandbox proxy on unconfined retry

Approved sandbox escalations reran bash/exec_command without the
sandbox wrapper but still injected HTTP(S)_PROXY. gh pr create then
hit the in-sandbox relay or the deny-all host proxy.

Only attach egress env when the command is actually confined, honor
unconfined_shell in exec_command, and cover both with tests.

* fix(tools): recognise dash's sandbox write denial

exec_command defaults to sh, which is dash on Debian/Ubuntu. A blocked
write there is "Directory nonexistent", not bash's "No such file or
directory", so the denial never escalated and CI's exec_command
enforcement tests failed. Treat the dash string the same way, still
only when the missing path is outside the workspace.
mohitranka added a commit that referenced this pull request Sep 11, 2026
* fix(tools): drop sandbox proxy on unconfined retry

Approved sandbox escalations reran bash/exec_command without the
sandbox wrapper but still injected HTTP(S)_PROXY. gh pr create then
hit the in-sandbox relay or the deny-all host proxy.

Only attach egress env when the command is actually confined, honor
unconfined_shell in exec_command, and cover both with tests.

* fix(tools): recognise dash's sandbox write denial

exec_command defaults to sh, which is dash on Debian/Ubuntu. A blocked
write there is "Directory nonexistent", not bash's "No such file or
directory", so the denial never escalated and CI's exec_command
enforcement tests failed. Treat the dash string the same way, still
only when the missing path is outside the workspace.
mohitranka added a commit that referenced this pull request Sep 11, 2026
* fix(tools): drop sandbox proxy on unconfined retry

Approved sandbox escalations reran bash/exec_command without the
sandbox wrapper but still injected HTTP(S)_PROXY. gh pr create then
hit the in-sandbox relay or the deny-all host proxy.

Only attach egress env when the command is actually confined, honor
unconfined_shell in exec_command, and cover both with tests.

* fix(tools): recognise dash's sandbox write denial

exec_command defaults to sh, which is dash on Debian/Ubuntu. A blocked
write there is "Directory nonexistent", not bash's "No such file or
directory", so the denial never escalated and CI's exec_command
enforcement tests failed. Treat the dash string the same way, still
only when the missing path is outside the workspace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant