Files
PaperClipAI/packages
nguyenm7andPaperclip b51c1715fb fix(skills-catalog): stop a proxy from defeating the discovery address pinning
The guard validated the destination and pinned --resolve to the addresses it
had validated, but did not disable proxies. curl ignores --resolve the moment
it uses one: the server-chosen hostname goes to the proxy in the CONNECT and
the proxy resolves it independently, so the addresses that were checked are
not the addresses connected to. A proxy-reachable internal service is exactly
what the guard exists to refuse.

safe_curl now passes --noproxy '*', and -q as the first option so curl reads
no config file -- ~/.curlrc can set a proxy with no environment variable to
notice. When a proxy variable is set it prints a note saying the proxy is
bypassed on purpose, and that a fetch failing because egress requires the
proxy is a gap to report rather than a flag to remove.

Measured rather than asserted, same URL and same pinned address each time:

  HTTPS_PROXY set, no --noproxy   curl: (7) connect to 127.0.0.1 port 9 -> 000
  HTTPS_PROXY set, --noproxy '*'  200
  proxy in .curlrc, no -q         curl: (7) connect to 127.0.0.1 port 9 -> 000
  proxy in .curlrc, -q            200

Through safe_curl with HTTPS_PROXY and ALL_PROXY both set at a dead port: the
note prints, the fetch goes direct, 200. The full battery still passes -- the
three adversarial metadata cases refuse, the live 301 refuses, and the
documented flow still returns the 401 challenge and the protected-resource
document.

The script printed in the document was extracted and diffed against the copy
that ran: byte-identical.

skills-catalog: manifest regenerated (19 skills), validate clean, 20 tests,
typecheck exit 0. Both packages still markdown_only, descriptions 291/293.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-24 21:16:25 +00:00
..