-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
move S3 ASF virtual host proxy and refactor #7001
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice little refactoring! Much cleaner 💯
@thrau thanks for the review 🙏 Are those CI failures "okay"? |
LocalStack integration with Pro 1 files - 2 1 suites - 2 51m 4s ⏱️ - 25m 22s Results for commit 9a2664f. ± Comparison against base commit 079d5c0a. ♻️ This comment has been updated with latest results. |
cd46736
to
9a2664f
Compare
yes i think the ones at the time were ok. i've since rebased the PR on your changes from #6987, hopefully nothing broke! |
Thanks a lot for the rebase! |
This PR moves the S3 ASF virtual host proxy (rewriting virtual host addressed bucket requests to path addressed ones).
It also refactors a bit, adding the handler inside a class, allowing to have the rewriting logic inside of it. Also added a bit of logic removing server added headers (by hypercorn), because they would be added twice (once after being proxied, then when returning the actual response).
Added a small test to check that the headers are actually returned once, not sure it should be in s3 but maybe something along the testing the router or proxy, I'm not sure?