Force cursor-agent egress through node2 SOCKS5 via local CONNECT bridge
build-and-push / build (push) Successful in 8m40s

The Bun-based cursor-agent only honors http://-scheme HTTP(S)_PROXY values
and silently ignores socks5(h):// — with the pod's socks5h env it egressed
directly. Add devbox-proxy-bridge (loopback HTTP CONNECT -> node2 SOCKS5),
run it supervised from the entrypoint, and shadow cursor-agent/agent with a
wrapper that points at the bridge (fail-loud, no bypass). CI path triggers
updated for the new files.
This commit is contained in:
Ubuntu
2026-09-27 09:48:55 +00:00
parent e0ca7b1a56
commit 90c6b6c425
6 changed files with 258 additions and 0 deletions
+5
View File
@@ -71,6 +71,11 @@ RUN curl -L https://github.com/dolthub/dolt/releases/latest/download/install.sh
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Proxy bridge + cursor-agent proxy wrapper (see file header comments).
COPY devbox-proxy-bridge.js /usr/local/share/devbox/devbox-proxy-bridge.js
COPY cursor-agent-wrapper.sh /usr/local/share/devbox/cursor-agent-wrapper.sh
RUN chmod 755 /usr/local/share/devbox/devbox-proxy-bridge.js /usr/local/share/devbox/cursor-agent-wrapper.sh
EXPOSE 22 8080
USER root
ENTRYPOINT ["/entrypoint.sh"]