@ -73,7 +73,7 @@ message VirtualHost {
/ / Domains cannot contain control characters. This is validated by the well_known_regex HTTP_HEADER_VALUE.
repeated string domains = 2 [ ( validate.rules ) . repeated = {
min_items : 1
items { string { well_known_regex : HTTP_HEADER_VALUE } }
items { string { well_known_regex : HTTP_HEADER_VALUE strict : false } }
} ] ;
/ / The list of routes that will be matched , in order , for incoming requests.
@ -602,8 +602,9 @@ message RouteAction {
message Header {
/ / The name of the request header that will be used to obtain the hash
/ / key. If the request header is not present , no hash will be produced.
string header_name = 1
[ ( validate.rules ) . string = { min_bytes : 1 well_known_regex : HTTP_HEADER_NAME } ] ;
string header_name = 1 [
( validate.rules ) . string = { min_bytes : 1 well_known_regex : HTTP_HEADER_NAME strict : false }
] ;
}
/ / Envoy supports two types of cookie affinity :
@ -706,7 +707,8 @@ message RouteAction {
/ / The case - insensitive name of this upgrade , e.g. "websocket" .
/ / For each upgrade type present in upgrade_configs , requests with
/ / Upgrade : [ upgrade_type ] will be proxied upstream.
string upgrade_type = 1 [ ( validate.rules ) . string = { well_known_regex : HTTP_HEADER_VALUE } ] ;
string upgrade_type = 1
[ ( validate.rules ) . string = { well_known_regex : HTTP_HEADER_VALUE strict : false } ] ;
/ / Determines if upgrades are available on this route. Defaults to true .
google.protobuf.BoolValue enabled = 2 ;
@ -731,7 +733,7 @@ message RouteAction {
/ / Internally , Envoy always uses the HTTP / 2 * : authority * header to represent the HTTP / 1
/ / * Host * header. Thus , if attempting to match on * Host * , match on * : authority * instead.
string cluster_header = 2
[ ( validate.rules ) . string = { min_bytes : 1 well_known_regex : HTTP_HEADER_NAME } ] ;
[ ( validate.rules ) . string = { min_bytes : 1 well_known_regex : HTTP_HEADER_NAME strict : false } ] ;
/ / Multiple upstream clusters can be specified for a given route. The
/ / request is routed to one of the upstream clusters based on weights
@ -1323,8 +1325,9 @@ message RateLimit {
/ / The header name to be queried from the request headers. The header ’ s
/ / value is used to populate the value of the descriptor entry for the
/ / descriptor_key.
string header_name = 1
[ ( validate.rules ) . string = { min_bytes : 1 well_known_regex : HTTP_HEADER_NAME } ] ;
string header_name = 1 [
( validate.rules ) . string = { min_bytes : 1 well_known_regex : HTTP_HEADER_NAME strict : false }
] ;
/ / The key to use in the descriptor entry.
string descriptor_key = 2 [ ( validate.rules ) . string = { min_bytes : 1 } ] ;
@ -1445,7 +1448,8 @@ message HeaderMatcher {
reserved 2 , 3 ;
/ / Specifies the name of the header in the request.
string name = 1 [ ( validate.rules ) . string = { min_bytes : 1 well_known_regex : HTTP_HEADER_NAME } ] ;
string name = 1
[ ( validate.rules ) . string = { min_bytes : 1 well_known_regex : HTTP_HEADER_NAME strict : false } ] ;
/ / Specifies how the header match will be performed to route the request.
oneof header_match_specifier {