Description
Describe the bug
I am using the proxy_pool plugin as a base for my own proxy selector. I was expecting to be able to use TLS interception in order to read the uri in order to determine which upstream proxy to send the request to. Unfortunately, as the plugin is written, I'm unable to retrieve the request.path unless it's an http request. I'm unsure why the TLS interception doesn't take place because in before_upstream_connection
we should have the entire request before we even attempt to connect to the upstream proxy, so I don't see a reason we can't take a peak at the contents and base the upstream proxy on the content of the uri
To Reproduce
Steps to reproduce the behavior:
- Run
proxy.py
with TLS interception parameters - Add debug to the proxy_pool plugin to attempt to print the uri/request path before choosing an upstream proxy
- Make an https request and see that you get None back
Expected behavior
I expect to be able to snoop on the contents of the https request because I have TLS Interception enabled
Version information
- OS: Docker
- proxy.py Version: https://github.com/abhinavsingh/proxy.py.git@develop