-
Notifications
You must be signed in to change notification settings - Fork 532
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
Include X-Forwarded-Prefix header in 'allowForwarded' implementation #1739
Comments
@chefhoobajoob While The quick workaround is to have a handler that inspects that header and strips it from the context |
@pmlopes : I think the issue at Envoy was not closed as a rejection, but was auto-closed due to inactivity. While it is true there is an early comment on that issue claiming that there are alternative "standard" headers to communicate these additional path elements, there is no such other header, and this is acknowledged in a later comment by that same user. I only provided the issue reference here for its description of the use case for the header. The example cited to motivate its inclusion in Separate question: is the |
This concept has been around in Microsoft ecosystem, as far a i can remember, in IIS5 since early 2000. IIS has a concept of virtual path to mount multiple applications on the same virtual host using subdirectories. This allow for static subrouting but as a collateral effect, it also allow supporting dynamic subrouting in the Microsoft world (dotnet core now). It is as simple as 5 lines of code, mangling request path and request basePath values early in the request processing. It is fully transparent to the application and the same instance of an application can be exposed on multiple ingress endpoint with different combinations of host/port/scheme and base path. I guess that since 2.2.0, Spring Boot adopts a similar strategy and rewrite HttpServletRequest contextPath, path, and uri accordingly. |
Describe the feature
vertx support of
X-Forwarded-*
header processing should consider including support for the non-standard but actively usedX-Forwarded-Prefix
header, which provides path prefixes that the client's original url included, typically used with api gateways like apigee, kong, and others. Spring Boot includes support for this in theirX-Forwarded-*
support.Use cases
Example description here:
envoyproxy/envoy#5528
The text was updated successfully, but these errors were encountered: