sysdig-sdk-python icon indicating copy to clipboard operation
sysdig-sdk-python copied to clipboard

Add proxy support to sysdig client stack

Open tsimp06 opened this issue 2 years ago • 3 comments
trafficstars

These changes will allow the initializer to add a proxy at initialization of the client to add to the request session, for use for all requests in that instantiation.

tsimp06 avatar Mar 16 '23 18:03 tsimp06

@tsimp06 Thank you for the submission, just a quick question: did you try to run the SDK with the environment variables HTTP_PROXY and HTTPS_PROXY configured? Maybe this would be enough instead of configuring the proxies as parameters.

tembleking avatar Mar 23 '23 15:03 tembleking

@tsimp06 Thank you for the submission, just a quick question: did you try to run the SDK with the environment variables HTTP_PROXY and HTTPS_PROXY configured? Maybe this would be enough instead of configuring the proxies as parameters.

Yes, and while that works, we don't want to use the proxy for ALL requests, as we are using private endpoints for other requests in the same test.

tsimp06 avatar Mar 23 '23 15:03 tsimp06

@tembleking please see previous comment.

tsimp06 avatar Mar 28 '23 21:03 tsimp06