-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Forwarded header #4376
Forwarded header #4376
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.
@tanzeeb: 0 warnings.
In response to this:
Fixes #3112
Proposed Changes
Add a
ForwardedShimHandler
to the queue-proxy chain, which constructs aforwarded
http header from the information available in thex-forwarded-*
headers.Release Note
The `forwarded` header will be set on requests based on the information in the `x-forwarded-for`, `x-forwarded-host` and `x-forwarded-proto` headers. If the request already has a `forwarded` header set, it will be used instead. Note: IPv6 addresses in `x-forwarded-for` are not supported.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
/assign @dgerd |
/assign @mattmoor |
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.
Couple nits. I'll leave the rest to Dan or Nghia
/assign @tcnghia
/test pull-knative-serving-upgrade-tests |
1 similar comment
/test pull-knative-serving-upgrade-tests |
Let's get an issue open for the IPv6 support in addition to the TODO, but aside from the comments already here I am happy with this. Thanks for picking this up Tanzeeb! |
/hold I'll take a stab at IPv6 in this PR. |
Hey @vagababov thanks for the review, but do you mind marking the nits as such? It helps me figure out if I'm missing something critical or if it's more of an opinion or stylistic change. |
The issues I left outside of tests, are not nits, IMO. |
/hold cancel Hey folks, updated with IPv6 address support |
/test pull-knative-serving-upgrade-tests |
/retest |
/lgtm |
/test pull-knative-serving-upgrade-tests |
c4e2fab
to
ce7a470
Compare
The following is the coverage report on pkg/.
|
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tanzeeb, tcnghia The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
Fixes #3112
Proposed Changes
Add a
ForwardedShimHandler
to the queue-proxy chain, which constructs aforwarded
http header from the information available in thex-forwarded-*
headers.Release Note