cluster: adding host rewrite (#17083)

Risk Level: low (config guarded addition)
Testing: new unit tests
Docs Changes: in API docs
Release Notes: inline
Fixes #16775

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>

Mirrored from https://github.com/envoyproxy/envoy @ 818f8ed4b965c82be297f76a4a8fe55dd23b8244
pull/624/head
data-plane-api(Azure Pipelines) 4 years ago
parent f833d0b489
commit efc1a59d1a
  1. 9
      envoy/config/route/v3/route_components.proto
  2. 9
      envoy/config/route/v4alpha/route_components.proto

@ -311,7 +311,7 @@ message Route {
message WeightedCluster {
option (udpa.annotations.versioning).previous_message_type = "envoy.api.v2.route.WeightedCluster";
// [#next-free-field: 11]
// [#next-free-field: 12]
message ClusterWeight {
option (udpa.annotations.versioning).previous_message_type =
"envoy.api.v2.route.WeightedCluster.ClusterWeight";
@ -378,6 +378,13 @@ message WeightedCluster {
// :ref:`FilterConfig<envoy_v3_api_msg_config.route.v3.FilterConfig>`
// message to specify additional options.]
map<string, google.protobuf.Any> typed_per_filter_config = 10;
oneof host_rewrite_specifier {
// Indicates that during forwarding, the host header will be swapped with
// this value.
string host_rewrite_literal = 11
[(validate.rules).string = {well_known_regex: HTTP_HEADER_VALUE strict: false}];
}
}
// Specifies one or more upstream clusters associated with the route.

@ -310,7 +310,7 @@ message WeightedCluster {
option (udpa.annotations.versioning).previous_message_type =
"envoy.config.route.v3.WeightedCluster";
// [#next-free-field: 11]
// [#next-free-field: 12]
message ClusterWeight {
option (udpa.annotations.versioning).previous_message_type =
"envoy.config.route.v3.WeightedCluster.ClusterWeight";
@ -377,6 +377,13 @@ message WeightedCluster {
// :ref:`FilterConfig<envoy_v3_api_msg_config.route.v3.FilterConfig>`
// message to specify additional options.]
map<string, google.protobuf.Any> typed_per_filter_config = 10;
oneof host_rewrite_specifier {
// Indicates that during forwarding, the host header will be swapped with
// this value.
string host_rewrite_literal = 11
[(validate.rules).string = {well_known_regex: HTTP_HEADER_VALUE strict: false}];
}
}
// Specifies one or more upstream clusters associated with the route.

Loading…
Cancel
Save