Skip to content

Isolate agent temporary storage from runner CoreCLR IPC - #11685

Closed
lpcox wants to merge 3 commits into
mainfrom
copilot/fix-agent-ipc-endpoint-issue
Closed

lpcox wants to merge 3 commits into
mainfrom
copilot/fix-agent-ipc-endpoint-issue

Conversation

@lpcox

@lpcox lpcox commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Shared host /tmp exposes runner CoreCLR debugger and diagnostic endpoints to same-UID agents, enabling potential token theft. One-time host cleanup misses endpoints created later and paths visible only to the DinD daemon.

  • Private temporary storage: Replace Compose’s host /tmp binds with private /tmp and /host/tmp tmpfs mounts. Narrow sbx sharing and preserve required handoffs, DinD path translation, and credential masking.
  • Fail-closed preflight: Reject command launch when CoreCLR endpoint names are visible in temporary or home paths, or inspection fails. Leave host endpoints untouched.
  • Explicit security boundary: Document protection against default temporary-directory exposure, the updated-agent-image requirement, and remaining IPC risks in intentionally shared workspace, home, handoff, and custom paths.
  • Runtime regressions: Exercise real host .NET endpoints created before and after container startup in both chroot modes, plus refusal when custom $TMPDIR sharing exposes them.

@lpcox lpcox changed the title [WIP] Fix agent access to runner CoreCLR debug IPC endpoints Isolate agent temporary storage from runner CoreCLR IPC Nov 16, 2026
@lpcox lpcox closed this Nov 16, 2026
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.

Agent can reach runner CoreCLR debug/diagnostic IPC endpoints via shared /tmp (token theft)

2 participants