[fuzz] Added validations for WeightedCluster and AdaptiveConcurrency (#13048)

Signed-off-by: Zach <zasweq@google.com>

Mirrored from https://github.com/envoyproxy/envoy @ 5d95032baa803f853e9120048b56c8be3dab4b0d
master-ci-test
data-plane-api(CircleCI) 4 years ago
parent 4acd1c86a1
commit e9001a39ce
  1. 8
      envoy/config/route/v3/route_components.proto
  2. 8
      envoy/config/route/v4alpha/route_components.proto
  3. 5
      envoy/extensions/filters/http/adaptive_concurrency/v3/adaptive_concurrency.proto

@ -338,7 +338,9 @@ message WeightedCluster {
// Specifies a list of HTTP headers that should be removed from each request when
// this cluster is selected through the enclosing :ref:`envoy_api_msg_config.route.v3.RouteAction`.
repeated string request_headers_to_remove = 9;
repeated string request_headers_to_remove = 9 [(validate.rules).repeated = {
items {string {well_known_regex: HTTP_HEADER_NAME strict: false}}
}];
// Specifies a list of headers to be added to responses when this cluster is selected
// through the enclosing :ref:`envoy_api_msg_config.route.v3.RouteAction`.
@ -352,7 +354,9 @@ message WeightedCluster {
// Specifies a list of headers to be removed from responses when this cluster is selected
// through the enclosing :ref:`envoy_api_msg_config.route.v3.RouteAction`.
repeated string response_headers_to_remove = 6;
repeated string response_headers_to_remove = 6 [(validate.rules).repeated = {
items {string {well_known_regex: HTTP_HEADER_NAME strict: false}}
}];
// The per_filter_config field can be used to provide weighted cluster-specific
// configurations for filters. The key should match the filter name, such as

@ -338,7 +338,9 @@ message WeightedCluster {
// Specifies a list of HTTP headers that should be removed from each request when
// this cluster is selected through the enclosing :ref:`envoy_api_msg_config.route.v4alpha.RouteAction`.
repeated string request_headers_to_remove = 9;
repeated string request_headers_to_remove = 9 [(validate.rules).repeated = {
items {string {well_known_regex: HTTP_HEADER_NAME strict: false}}
}];
// Specifies a list of headers to be added to responses when this cluster is selected
// through the enclosing :ref:`envoy_api_msg_config.route.v4alpha.RouteAction`.
@ -352,7 +354,9 @@ message WeightedCluster {
// Specifies a list of headers to be removed from responses when this cluster is selected
// through the enclosing :ref:`envoy_api_msg_config.route.v4alpha.RouteAction`.
repeated string response_headers_to_remove = 6;
repeated string response_headers_to_remove = 6 [(validate.rules).repeated = {
items {string {well_known_regex: HTTP_HEADER_NAME strict: false}}
}];
// The per_filter_config field can be used to provide weighted cluster-specific
// configurations for filters. The key should match the filter name, such as

@ -51,10 +51,11 @@ message GradientControllerConfig {
"envoy.config.filter.http.adaptive_concurrency.v2alpha.GradientControllerConfig."
"MinimumRTTCalculationParams";
// The time interval between recalculating the minimum request round-trip time.
// The time interval between recalculating the minimum request round-trip time. Has to be
// positive.
google.protobuf.Duration interval = 1 [(validate.rules).duration = {
required: true
gt {}
gte {nanos: 1000000}
}];
// The number of requests to aggregate/sample during the minRTT recalculation window before

Loading…
Cancel
Save