You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The httpProxy config option is currently only configured to be used by the agent, but the diagnose report transmitter and Push API key validator do not use this config option's value.
We're running into issues using the http/https libraries in Node.js directly do to missing documentation and missing safety checks. Implementing proxy support has been a big chore so far that we haven't been able to figure out.
We need this http(s) capability for the following scenarios:
Download the agent and extension in the installer
Validate the Push API key on install and diagnose
Transmit the diagnose report
Alternative libraries
There's a popular library axios that we can use instead that has more checks and proper proxy support.
We prefer not to add additional dependencies unless absolutely necessary. We've done something similar in Elixir; we use hackney as an HTTP library. Ideally though, we find a way to use the standard library for these types of things.
Research
Research if we can improve our usage of the http/https libraries
If not, research axios, or other light weight alternatives. Write up a comparison.
Decide with the team if we want to use an extra library for http/https.
tombruijn
changed the title
The httpProxy option isn't used by the diagnose transmitter or Push API key
The httpProxy option isn't used by the diagnose transmitter or Push API key validator
Nov 29, 2021
After working on this one for a while, we decided not to continue as it requires more work than expected.
Node.js native proxy connection support is poorly documented, not to say not documented at all. The best I could find was this StackOverflow answer, and it only works for HTTP. The support is even worse to connect to an HTTPS through a proxy.
We need to spend a bit of research on this one and make a decision as a team:
Keep fighting with http and https modules
Use an external package that provides proxy support out of the box
The abstraction of transmitters and the certificate configuration support is on the way.
As discussed, we can also hold off on working on this for a while. No one has asked for it yet, so I see no rush to put it in if it's a lot of work right now
Part of https://github.com/appsignal/integration-guide/pull/105
The
httpProxy
config option is currently only configured to be used by the agent, but the diagnose report transmitter and Push API key validator do not use this config option's value.We're running into issues using the http/https libraries in Node.js directly do to missing documentation and missing safety checks. Implementing proxy support has been a big chore so far that we haven't been able to figure out.
We need this http(s) capability for the following scenarios:
Alternative libraries
There's a popular library axios that we can use instead that has more checks and proper proxy support.
We prefer not to add additional dependencies unless absolutely necessary. We've done something similar in Elixir; we use hackney as an HTTP library. Ideally though, we find a way to use the standard library for these types of things.
Research
To do
The text was updated successfully, but these errors were encountered: