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 egress proxy is configured in the eval dev space. This work should then be set to merge to eval-main.
Finch is not working with the double proxy hop setup we ended up needing, but HTTPoison is working.
Tasks
Replace Finch calls with HTTPoison calls
Update tests that rely on Finch
Configure HTTPoison to use the egress proxy when configured (so that its not used locally or in test)
Remove Finch and any other HTTP library that isn't HTTPoison or a dependency of HTTPoison
Technical Detail
# If System.get_env("LOCAL_PROXY_HOST") is set, add options to the HTTPoison get calls that look like this:options=[proxy: {System.get_env("LOCAL_PROXY_HOST"),8888}]HTTPoison.get("https://www.google.com",[],options)
This is likely feasible to do in a module where use HTTPoison.Base is invoked, and then implementing the callback process_request_options so that these options are added to every call from that module.
Example Usage
Here is an example of the responses expected when the proxy allows vs denies traffic, so that you can get your pattern matches (although we probably handle {:error ...} the same way most of the time.
Context
The egress proxy is configured in the eval dev space. This work should then be set to merge to
eval-main
.Finch is not working with the double proxy hop setup we ended up needing, but HTTPoison is working.
Tasks
Technical Detail
This is likely feasible to do in a module where
use HTTPoison.Base
is invoked, and then implementing the callbackprocess_request_options
so that these options are added to every call from that module.Example Usage
Here is an example of the responses expected when the proxy allows vs denies traffic, so that you can get your pattern matches (although we probably handle
{:error ...}
the same way most of the time.Deployment Target
This work must be based on
eval-main
and merge back toeval-main
The text was updated successfully, but these errors were encountered: