From 3b4c64a087a635ea2f27618564acff771bdd9f21 Mon Sep 17 00:00:00 2001 From: Mandar U Jog Date: Sun, 28 Jan 2018 15:54:15 -0800 Subject: [PATCH 1/3] Add *_header_to_add to `ClusterWeight` Add request_headers_to_add and response_headers_to_add to ClusterWeight. Signed-off-by: Mandar U Jog --- envoy/api/v2/route/route.proto | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/envoy/api/v2/route/route.proto b/envoy/api/v2/route/route.proto index d9dafff27..4d2b67cac 100644 --- a/envoy/api/v2/route/route.proto +++ b/envoy/api/v2/route/route.proto @@ -208,6 +208,26 @@ message WeightedCluster { // cluster with metadata matching that set in metadata_match will be // considered. The filter name should be specified as *envoy.lb*. Metadata metadata_match = 3; + + // Specifies a list of headers to be added to requests when this cluster is selected + // through the enclosing :ref:`envoy_api_msg_route.RouteAction`. + // Headers specified at this level are applied before headers from the enclosing + // :ref:`envoy_api_msg_route.RouteAction`, + // :ref:`envoy_api_msg_route.VirtualHost`, and + // :ref:`envoy_api_msg_route.RouteConfiguration`. For more information, including details on + // header value syntax, see the documentation on :ref:`custom request headers + // `. + repeated HeaderValueOption request_headers_to_add = 4; + + // Specifies a list of headers to be added to responses when this cluster is selected + // through the enclosing :ref:`envoy_api_msg_route.RouteAction`. + // Headers specified at this level are applied before headers from the enclosing + // :ref:`envoy_api_msg_route.RouteAction`, + // :ref:`envoy_api_msg_route.VirtualHost`, and + // :ref:`envoy_api_msg_route.RouteConfiguration`. For more information, including details on + // header value syntax, see the documentation on :ref:`custom request headers + // `. + repeated HeaderValueOption response_headers_to_add = 5; } // Specifies one or more upstream clusters associated with the route. From 7d2e4bf675c3a0e031e4a34aee4652a45d58cdb4 Mon Sep 17 00:00:00 2001 From: Mandar U Jog Date: Mon, 29 Jan 2018 10:26:02 -0800 Subject: [PATCH 2/3] Add not-implemented-hide on new options Signed-off-by: Mandar U Jog --- envoy/api/v2/route/route.proto | 2 ++ 1 file changed, 2 insertions(+) diff --git a/envoy/api/v2/route/route.proto b/envoy/api/v2/route/route.proto index 4d2b67cac..046e9bd45 100644 --- a/envoy/api/v2/route/route.proto +++ b/envoy/api/v2/route/route.proto @@ -209,6 +209,7 @@ message WeightedCluster { // considered. The filter name should be specified as *envoy.lb*. Metadata metadata_match = 3; + // [#not-implemented-hide:] // Specifies a list of headers to be added to requests when this cluster is selected // through the enclosing :ref:`envoy_api_msg_route.RouteAction`. // Headers specified at this level are applied before headers from the enclosing @@ -219,6 +220,7 @@ message WeightedCluster { // `. repeated HeaderValueOption request_headers_to_add = 4; + // [#not-implemented-hide:] // Specifies a list of headers to be added to responses when this cluster is selected // through the enclosing :ref:`envoy_api_msg_route.RouteAction`. // Headers specified at this level are applied before headers from the enclosing From fe2dae9b69f03ba2ab157c68498882aeb1db3306 Mon Sep 17 00:00:00 2001 From: Mandar U Jog Date: Mon, 29 Jan 2018 17:06:27 -0800 Subject: [PATCH 3/3] Add response_headers_to_remove Signed-off-by: Mandar U Jog --- envoy/api/v2/route/route.proto | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/envoy/api/v2/route/route.proto b/envoy/api/v2/route/route.proto index 046e9bd45..45cf61319 100644 --- a/envoy/api/v2/route/route.proto +++ b/envoy/api/v2/route/route.proto @@ -230,6 +230,11 @@ message WeightedCluster { // header value syntax, see the documentation on :ref:`custom request headers // `. repeated HeaderValueOption response_headers_to_add = 5; + + // [#not-implemented-hide:] + // Specifies a list of headers to be removed from responses when this cluster is selected + // through the enclosing :ref:`envoy_api_msg_route.RouteAction`. + repeated string response_headers_to_remove = 6; } // Specifies one or more upstream clusters associated with the route.