-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
The issue
There is an issue in vt_handler#L49 where proxy settings are not properly fetched from the server settings:
if self.server_config.get('http_proxy'):
proxies['https'] = self.server_config.get('HTTPS_PROXY')
if self.server_config.get('https_proxy'):
proxies['http'] = self.server_config.get('HTTP_PROXY')HTTP_PROXY and HTTPS_PROXY do not exist in uppercase, only lowercase, plus there is a confusion between http and https proxy.
Moreover, there is no possibility to disable the SSL cert verification, which is problematic for some proxy setups.
Solution
should be:
if self.server_config.get('https_proxy'):
proxies['https'] = self.server_config.get('https_proxy')
if self.server_config.get('http_proxy'):
proxies['http'] = self.server_config.get('http_proxy')and for the other issue, add a ssl_verify setting server-wide (irisweb side), fetch it from vt_handler. Then, virus-total-apis doesn't use any ssl_verify argument unfortunately, so we should issue to them or do some patch on requests package...
Metadata
Metadata
Assignees
Labels
No labels