Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP proxy not properly set #2

Open
Ektoplasma opened this issue Jun 30, 2022 · 1 comment
Open

HTTP proxy not properly set #2

Ektoplasma opened this issue Jun 30, 2022 · 1 comment
Assignees

Comments

@Ektoplasma
Copy link

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...

@Ektoplasma Ektoplasma self-assigned this Jun 30, 2022
@shoebilldev
Copy link

@Ektoplasma you self-assigned this issue, just checking you didn't want to contribute to the project yourself? if not I can create a pull request with your solution to the proxy setting.

Also a suggestion for avoiding having to set ssl_verify setting, consider just adding the cert for your local instance of virus total to your trusted ca folder inside the iris docker container - this is what we've done (but your idea to be able to pass through the flag would be superior).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants