Skip to content

HTTP proxy not properly set #2

@Ektoplasma

Description

@Ektoplasma

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions