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

Additional connection args #49

Closed

Conversation

my2ndhead
Copy link

Add support for http proxy with basic auth
Add support for setting the ssl_context for cases where CA certs are in another location

Allow http proxy with basic auth
Allow setting the ssl_context for cases where CA certs are in another location
@my2ndhead
Copy link
Author

my2ndhead commented Jan 18, 2021

Please integrate directly into aiohttp3

@lgrahl
Copy link
Contributor

lgrahl commented Jan 22, 2021

Do you have an example for a use case scenario?

@my2ndhead
Copy link
Author

my2ndhead commented Jan 23, 2021

I'm developing an intergration into a monitoring platform (Splunk) to send out alerts (e.g. confidential security alerts etc).

For security reasons, corporate monitoring platforms are always behind a web proxy and can't directly connect to the gateway.

Regarding the ssl_context, in the case of Splunk. I have to use the integrated python3.7 interpreter, which does not pick up the certfile automatically. Possibly, if a https proxy is used, additional certificates may have to be added to the certstore also.

A handful of joint Gateway/Splunk users would be happy to have an integration :)

lgrahl added a commit that referenced this pull request May 17, 2021
This allows to add arbitrary arguments to each `get` and `post` call. It
can be used to add proxy arguments:

    Connection(session_kwargs={'proxy': <your-proxy>})

See the aiohttp docs for details:
https://docs.aiohttp.org/en/stable/client_advanced.html#proxy-support

Supersedes and closes #49
@lgrahl lgrahl closed this in #56 May 17, 2021
lgrahl added a commit that referenced this pull request May 17, 2021
This allows to add arbitrary arguments to each `get` and `post` call. It
can be used to add proxy arguments:

    Connection(session_kwargs={'proxy': <your-proxy>})

See the aiohttp docs for details:
https://docs.aiohttp.org/en/stable/client_advanced.html#proxy-support

Supersedes and closes #49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants