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

Make redirect middleware can use path #3206

Merged
merged 3 commits into from Jul 14, 2023

Conversation

takmatsu
Copy link
Contributor

@takmatsu takmatsu commented Jul 17, 2020

This patch enable us to use path in redirect middleware.

Currently, redirect middleware respects only scheme and host.
But actually our S3-Compatible storage needs this features for redirect to object storage endpoint.
and I believe this should be useful also for other users.

Related: #3022

@alibowl
Copy link

alibowl commented Nov 25, 2020

Any reason this hasn't been merged yet, we'd like to use this feature

@rikatz
Copy link

rikatz commented Jul 12, 2023

@milosgajdos 👋
Thanks for the project!

I was looking into this very same feature and got hit by the same problem. Apparently, the path is not respected :( Is there anything that can be done here to get this PR merged, or should people willing on having this same middleware feature use this as an extension point on docker distribution but write their own middleware?

Thank you very much!!!

@milosgajdos
Copy link
Member

I'll close and reopen this PR so it re-kicks the CI.

@milosgajdos milosgajdos reopened this Jul 13, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jul 13, 2023

Codecov Report

Patch coverage has no change and project coverage change: -2.42 ⚠️

Comparison is base (53e18a9) 58.22% compared to head (316e1c6) 55.81%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3206      +/-   ##
==========================================
- Coverage   58.22%   55.81%   -2.42%     
==========================================
  Files         105      108       +3     
  Lines        8362    10969    +2607     
==========================================
+ Hits         4869     6122    +1253     
- Misses       2836     4161    +1325     
- Partials      657      686      +29     
Flag Coverage Δ
linux ?

Flags with carried forward coverage won't be shown. Click here to find out more.

see 108 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@milosgajdos
Copy link
Member

@takmatsu can you also please squash the commits

takmatsu and others added 3 commits July 14, 2023 10:36
Signed-off-by: MATSUMOTO TAKEAKI <takeaki.matsumoto@linecorp.com>
Signed-off-by: MATSUMOTO TAKEAKI <takeaki.matsumoto@linecorp.com>
Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
@milosgajdos milosgajdos merged commit d5c1b39 into distribution:main Jul 14, 2023
12 checks passed
@rikatz
Copy link

rikatz commented Jul 14, 2023

@milosgajdos thank you very very much for pushing this :))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants