TL;DR: HTTPS_PROXY, deny-lists, and model prompts only create policy, not enforcement, because an agent can spawn subprocesses or choose transports that bypass them, according to PipeLab. The practical boundary is below the agent process, where the kernel or cluster network policy can refuse unrouted traffic entirely.
Editorial analysis by NHI Mgmt Group, based on content published by PipeLab: “Politeness vs Enforcement: Why "Set HTTPS_PROXY" Isn't a Security Control”.
Key questions
Q: What breaks when proxy settings are the main control for AI agent egress?
A: Proxy settings break down because they rely on cooperative behaviour from the same process they are supposed to constrain.
Q: Why does kernel-enforced egress matter for AI agents that handle credentials?
A: Kernel-enforced egress matters because it stops outbound traffic even when the agent runtime misbehaves or is prompted into an unsafe path.
Q: How should teams test whether agent network controls are real?
A: Teams should test the bypass path, not just the approved path.
Practitioner guidance
- Separate the agent identity from the proxy identity Run the agent as a distinct Linux UID or in a distinct pod so its runtime cannot inherit the proxy’s internet reach.
- Enforce egress below the agent process Use nftables or NetworkPolicy to drop traffic that does not match the allowed path, rather than relying on environment variables or prompts.
- Test the bypass, not just the policy Run a shell without proxy variables and confirm the agent UID cannot reach external endpoints directly.
Bottom line: Agent egress controls fail when they depend on the agent’s own cooperation, because subprocesses and alternate transports can bypass them without breaking the runtime.
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →