cerberus-core icon indicating copy to clipboard operation
cerberus-core copied to clipboard

Proxy & gzip compression management for external calls.

Open vertigo17 opened this issue 7 years ago • 4 comments

There is today a proxy configuration available in order to activate and manage proxy call when performaing a service call : cerberus_proxy_active cerberus_proxy_host cerberus_proxy_port cerberus_proxy_nonproxyhosts cerberus_proxyauthentification_active cerberus_proxyauthentification_user cerberus_proxyauthentification_password

This issue is to gather all effort that needs to be done in order to finalyse proxy implementation:

  • [x] add an exceptions parameter in order to activate or not the proxy depending on specific host values
  • [ ] implement proxy when using getFromXml
  • [ ] implement proxy when using getFromJson
  • [ ] implement proxy when accessing webdriver (sikuli) server
  • [ ] implement proxy when adding attachement URL in SOAP Request
  • [ ] implement proxy when accesing csv file in Datalib Request
  • [x] implement proxy when accessing webdriver (selenium/appium) server
  • [x] implement proxy when performing a Service call.
  • [x] rename the parameter removing the "_callservicerest" part

NB : Issue should also cover the migration of the client side to apache HttpClient library (in order to support gzip compression nativly)

vertigo17 avatar Apr 10 '17 08:04 vertigo17

Could be extend as : implement proxy when performing any network request? Because cerberus_url could also be fetched through proxy.

abourdon avatar Apr 10 '17 09:04 abourdon

In fact, cerberus_url should not be used to access Cerberus. This is to limit the maximum the mandatory parameters in order to have it working. It should be only used when Cerberus generate email that points to th GUI. Any oter usage should be avoided.

There should not be any other http access appart from service REST and SOAP.

vertigo17 avatar Apr 10 '17 20:04 vertigo17

I meaned apply proxy to any external http requests. cerberus_url was an example.

To be more precise, it should be designed in order to be the only point to external http requests, whatever the request call type (to webdriver, to SOAP call, ...).

abourdon avatar Apr 10 '17 20:04 abourdon

Right this is the purpose. I add the actio to rename the parameter removing the "_callservicerest"

vertigo17 avatar Apr 10 '17 21:04 vertigo17