-
Notifications
You must be signed in to change notification settings - Fork 83
Retain True-Client-Ip for Route Services #778
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
Retain True-Client-Ip for Route Services #778
Conversation
rename acl true_client_ip_request to true_client_ip_found
b1tamara
left a comment
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.
approving to run CI
acceptance-tests/headers_test.go
Outdated
| Expect(recordedHeaders).To(HaveKey(headerKey)) | ||
| Expect(recordedHeaders[headerKey]).To(HaveLen(1)) | ||
| Expect(recordedHeaders[headerKey][0]).To(Equal("8.8.8.8")) | ||
| }) |
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.
Please add tests for the other two cases as well.
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.
Please add tests for the other two cases as well.
Done
b1tamara
left a comment
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.
Approving to run CI
maxmoehl
left a comment
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.
Once merged, please cut a major release right away to make sure we don't accidentally release this with a minor / patch.
This Pull-Request completes the True-Client-Ip feature introduced with #759. With this change, we add three options to deal with the header:
forward_only_if_route_service: Forward only in route service scenario. This is the default behavior which adds support for the True-Client-Ip header in the route service scenario.always_set: Always set the header, overwrite if existing.always_forward: Always forward if existing, set otherwise.