Document mandatory sudo requirement for self-hosted agentic workflows#18210
Merged
Document mandatory sudo requirement for self-hosted agentic workflows#18210
Conversation
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix support for execution on self-hosted runners without sudo
Document mandatory sudo requirement for self-hosted agentic workflows
Feb 24, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR documents the mandatory sudo requirement for self-hosted runners in agentic workflows, clarifying that AWF requires root-level access for host-level iptables rules and explicitly stating that non-sudo configurations are not supported.
Changes:
- Added a WARNING block to the self-hosted runners guide explaining the sudo requirement and its security rationale
- Documented that AWF enforces network egress filtering via host-level iptables rules on the DOCKER-USER chain, requiring root UID
- Explicitly called out that ARC configurations with
allowPrivilegeEscalation: falseare not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Self-hosted runs were expected to work without privilege escalation, but the current agent job security model depends on root-level operations. This PR clarifies that requirement in the self-hosted runner docs and explains why
allowPrivilegeEscalation: falseconfigurations are not supported for agentic workflows.Docs update: self-hosted runner requirement
guides/self-hosted-runners.mdthat self-hosted runners must permitsudofor agentic workflows.Security rationale clarified (not optional behavior)
iptablesin theDOCKER-USERchain (root UID required).iptablesin-container, Squid ACLs, capability drops) are defense-in-depth layers and do not replace the host boundary.Unsupported mode explicitly called out
allowPrivilegeEscalation: false.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
telemetry.astro.build/opt/hostedtoolcache/node/24.13.0/x64/bin/node node /home/REDACTED/work/gh-aw/gh-aw/docs/node_modules/.bin/astro build(dns block)/opt/hostedtoolcache/node/24.13.0/x64/bin/node node /home/REDACTED/work/gh-aw/gh-aw/docs/node_modules/.bin/astro dev --host 127.0.0.1 --port 4321 odules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/node(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.