-
Notifications
You must be signed in to change notification settings - Fork 12
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
HTTPS support #1
Comments
What about a MITM proxy server that terminates the TLS connection at chaos-http-proxy? It would also be nice to induce HTTP errors in HTTPS sessions. Happy to contribute, as I have an ahem need for such a thing. |
Please submit a pull request. I believe you can scoop all the needed logic out of S3Proxy. |
Ideally there will be support for TLS-terminating HTTPS proxies (see bouncestorage#1), but prior to that it's better to fail the CONNECT method w/ a 405 than to mis-compose the URL out of the request-uri component.
Ok, but in the meanwhile let's disable CONNECT; the URL composition logic is misinterpreting the request-uri portion of that message & it's doomed to failure anyway. |
Ideally there will be support for TLS-terminating HTTPS proxies (see #1), but prior to that it's better to fail the CONNECT method w/ a 405 than to mis-compose the URL out of the request-uri component.
Researching this some years later, I am not sure that any HTTPS clients will work in the MITM way that I had imagined and that would be useful to Chaos HTTP Proxy. Instead it seems that they use the https://stackoverflow.com/a/36171547/2800111 Perhaps it is possible to inject a different SSL certificate as long as the client disables verification? |
This can find errors in retry logic. Chaos HTTP Proxy does not support SSL bouncestorage/chaos-http-proxy#1 so users must set s3proxy.endpoint and run via: CHAOS_HTTP_PROXY=1 S3_URL=http://127.0.0.1:8080 make check -C test It can also be helpful to increase retries and reduce sleep times. References s3fs-fuse#1504.
This can find errors in retry logic. Chaos HTTP Proxy does not support SSL bouncestorage/chaos-http-proxy#1 so users must set s3proxy.endpoint and run via: CHAOS_HTTP_PROXY=1 S3_URL=http://127.0.0.1:8080 make check -C test It can also be helpful to increase retries and reduce sleep times. References #1504.
compy shows how to do this in Go. |
it'd be good to have https support and induce chaos at the HTTPS layer
The text was updated successfully, but these errors were encountered: