In an IoT server cluster setup if we configure the worker or manager node calls to be routed through a proxy the communication fails. Purpose of this PR is to fix this issue. Resolves wso2/product-iots#1806
Goals
It appears that certain HTTP calls from IoT Server's worker node to the gateway is bypassing the configured proxy. This could be due to the HTTP client that we are using. We use library call Feign in IoT server. Feign is a Java to HTTP client binder. Hence goal is to enable the HTTP calls to be the route through a configured proxy.
Approach
Feign client is not supporting proxy routing this fix has included okhttp client and pass it to the feigns okkhttp client wrapper in order to pass HTTP/HTTPS call through proxy server if the system proxy properties are set. Further this modifies the apache http client also to pick system properties.
Purpose
Goals
Approach
User stories
Release note
Documentation
Training
Certification
Marketing
Automation tests
Security checks
Samples
Related PRs
Migrations (if applicable)
Test environment
Learning