Force cursor-agent egress through node2 SOCKS5 via local CONNECT bridge
build-and-push / build (push) Successful in 8m40s
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:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user