fuzz test: Add header validation to api. (#21532)

Make sure a config option is a valid header name.

Signed-off-by: Andre Vehreschild <vehre@x41-dsec.de>

Mirrored from https://github.com/envoyproxy/envoy @ 2db5f021551b67cb37c49ca769bf1ab659897bc9
pull/626/head
data-plane-api(Azure Pipelines) 3 years ago
parent f8ba489294
commit 89983c5413
  1. 3
      envoy/config/route/v3/route_components.proto

@ -449,7 +449,8 @@ message WeightedCluster {
// If header is not present or invalid, Envoy will fall back to use the internally generated random value.
// This header is expected to be single-valued header as we only want to have one selected value throughout
// the process for the consistency. And the value is a unsigned number between 0 and UINT64_MAX.
string header_name = 4;
string header_name = 4
[(validate.rules).string = {well_known_regex: HTTP_HEADER_NAME strict: false}];
}
}

Loading…
Cancel
Save