continue icon indicating copy to clipboard operation
continue copied to clipboard

Fetch 14: Read node extra ca certs, better NO_PROXY logic

Open RomneyDa opened this issue 5 months ago • 2 comments
trafficstars

Reads certs from NODE_EXTRA_CA_CERTS for custom fetch.

It appears that whenever agent ca is manually set, NODE_EXTRA_CA_CERTS is not read, even though the node docs seem to imply that NODE_EXTRA_CA_CERTS are added to tls on initialization. It seems node-fetch injects these under the hood.

Adds a simple certs cache that caches

  • tls and globalAgent certs
  • certs read from NODE_EXTRA_CA_CERTS
  • caBundlePath successful cert contents

This fixes missing NODE_EXTRA_CA_CERTS and speeds up fetch.

Also adds port and case sensitivity issue fixes for NO_PROXY (taken from https://github.com/continuedev/continue/pull/6115)

RomneyDa avatar Jun 17 '25 09:06 RomneyDa

Deploy Preview for continuedev failed. Why did it fail? →

Name Link
Latest commit 46f991029d01b94b9a2025a550f66c4d9212970a
Latest deploy log https://app.netlify.com/projects/continuedev/deploys/6851b411b5a65e000824dddf

netlify[bot] avatar Jun 17 '25 09:06 netlify[bot]

😱 Found 2 issues. Time to roll up your sleeves! 😱

recurseml[bot] avatar Jun 17 '25 09:06 recurseml[bot]

:tada: This PR is included in version 1.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

sestinj avatar Jul 22 '25 05:07 sestinj