feat: route outbound fetches through HTTP_PROXY, HTTPS_PROXY, and NO_PROXY - #17
feat: route outbound fetches through HTTP_PROXY, HTTPS_PROXY, and NO_PROXY#17RonCodes88 wants to merge 2 commits into
Conversation
|
Thanks for taking this on, and for the care that went into it. The CONNECT tunnel is done properly: proxy auth stays on the CONNECT hop and never reaches the origin, SNI is omitted for IP literals, and the tunnel test uses A few things to sort out before this goes in. Everything below was reproduced against this branch. CriticalThe private address guard stops working for hostnames once a proxy is set. On main the same call fails ENOTFOUND. IP literals and High1. Omitting the option is not the same as disabling it. Passing curl's empty-proxy disable form, or setting its no-proxy option, would make oc's decision stick. 2. Credentials in the page URL are handed to the proxy in the request line. Native fetch never puts userinfo in the request line, and your CONNECT path already strips it correctly via Medium3. The tests cover the two halves but not the wiring. 4. A bare Feedback
Address the critical and high items and I am happy to merge. The medium ones would be good to fold in at the same time since 3 is what would have caught 1. Thanks again for the contribution. |
Summary
HTTP_PROXY,HTTPS_PROXY, andNO_PROXYfor both impers and native fetch pathsCloses #9
Test plan
npm test