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 4 months ago • 2 comments

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