Skip to content

fix(docker): harden egress proxy forwarding - #16

Closed
lavaman131 wants to merge 1 commit into
datacurve-ai:mainfrom
lavaman131:fix/docker-egress-proxy-resilience
Closed

fix(docker): harden egress proxy forwarding#16
lavaman131 wants to merge 1 commit into
datacurve-ai:mainfrom
lavaman131:fix/docker-egress-proxy-resilience

Conversation

@lavaman131

Copy link
Copy Markdown

Summary

Hardens the Docker restricted-egress Squid sidecar so long installed-agent runs are less likely to wedge allowed provider CONNECT tunnels and so proxy diagnostics persist with the trial directory.

Fixes #15.

Changes

  • Persist allowed_domains.txt, squid_access.log, and squid_cache.log under egress-proxy/logs/ via a bind mount instead of leaving them in container /tmp.
  • Replace the TCP-open healthcheck with a Squid PID healthcheck to avoid per-second NONE_NONE/000 transaction-end-before-headers access-log spam.
  • Configure explicit DNS resolvers, shorter negative DNS TTL, and longer/retried connect/forward timeouts for the Squid sidecar.
  • Preserve the existing authenticated domain allowlist behavior.

Validation

  • python3 -m py_compile src/pier/environments/agent_setup.py
  • uv run ruff check src/pier/environments/agent_setup.py
  • uv run ruff format --check src/pier/environments/agent_setup.py
  • Built the generated Squid sidecar locally and verified a proxied request to https://openrouter.ai/api/v1/models returned HTTP 200 with TCP_TUNNEL/200 in squid_access.log.
  • In a DeepSWE/Atomic workflow validation run using this patch, OpenRouter CONNECT traffic has remained TCP_TUNNEL/200 so far, with no repeated TCP_TUNNEL/503 ... HIER_NONE/- burst observed.

Refs: #15
Assistant-model: GPT-5.5
@lavaman131

Copy link
Copy Markdown
Author

Hey @Ynng, any updates on this? I talked with James from your team and he mentioned you would be able to look at this. Thanks.

@lavaman131 lavaman131 closed this by deleting the head repository Aug 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.

Docker egress proxy can wedge allowed CONNECT tunnels

1 participant