Repository navigation
http:support for adding dynamic request headers to the upstream requests - #1708
Conversation
Signed-off-by: Kunal Gandhi <[email protected]>
7691df9 to
7d46667
Compare
| %PROTOCOL% | ||
| The original protocol which is already added by envoy as a | ||
| :ref:`X-Forwarded-Proto <config_http_conn_man_headers_x-forwarded-proto>` request header. | ||
|
|
There was a problem hiding this comment.
Are these the only two supported Kunal ? I remember you adding support for more variables. If that's the case, it might be instructive to change the example to use a different variable, and possibly mention that these are same as ones supported by access log
| return request_info.getDownstreamAddress(); | ||
| }; | ||
| } else { | ||
| throw EnvoyException( |
There was a problem hiding this comment.
That explains. I missed the history for this PR. Out of curiosity, why restrict to just two?
There was a problem hiding this comment.
@rshriram a lot of the variables from the access logger would not apply here and currently, we only need this two. We can add support for more variables as we require them.
| NiceMock<Upstream::MockClusterManager> cm; | ||
| NiceMock<Envoy::Http::AccessLog::MockRequestInfo> request_info; | ||
| ConfigImpl config(parseRouteConfigurationFromJson(json), runtime, cm, true); | ||
| const std::string downstream_addr = ("127.0.0.1"); |
|
@mattklein123 @htuch do you want to take a pass on this? |
|
Yup will do early next week. |
mattklein123
left a comment
There was a problem hiding this comment.
@khgandhi looks great. Thanks for seeing this through. I think just fix @RomanDzhabarov and we are good to go. Thank you!
f9204d3 to
6a91224
Compare
Signed-off-by: Kunal Gandhi <[email protected]>
6a91224 to
264bf54
Compare
|
Thank you @mattklein123 . after making the change, the circleci build is failing due the following error: Also, the Mac OSX build seems to have passed but it does not seem to get marked as a successful step on the PR |
…1711) **Description** This uses more accurate prefixes for EG's special listener detections. Previously, the Gateway objects created in "envoy-gateway-*" namespaces were skipped because we used very large "envoy-gateway-" prefix. **Related Issues/PRs (if applicable)** Fixes #1708 Signed-off-by: Takeshi Yoneda <[email protected]>
Fixes #1016
Signed-off-by: Kunal Gandhi [email protected]