generic proxy: add new request matcher to simplify route table (#27785)

A new custom matcher for generic proxy is added to simplify the route table. When simple AND semantic is used, the users needn't write complex configuration to combine different input/match.

Risk Level: low.
Testing: unit.

Signed-off-by: wbpcode <wangbaiping@corp.netease.com>

Mirrored from https://github.com/envoyproxy/envoy @ b8e112190ef14bced0509a0fb201b5ee49da46d7
main
update-envoy[bot] 1 year ago
parent 27e05542ee
commit dea64f75a9
  1. 2
      contrib/envoy/extensions/filters/network/generic_proxy/matcher/v3/matcher.proto

@ -52,7 +52,6 @@ message PropertyMatchInput {
message RequestMatchInput { message RequestMatchInput {
} }
// [#not-implemented-hide:]
// Used to match an arbitrary key-value pair for headers, trailers or properties. // Used to match an arbitrary key-value pair for headers, trailers or properties.
message KeyValueMatchEntry { message KeyValueMatchEntry {
// The key name to match on. // The key name to match on.
@ -62,7 +61,6 @@ message KeyValueMatchEntry {
type.matcher.v3.StringMatcher string_match = 2 [(validate.rules).message = {required: true}]; type.matcher.v3.StringMatcher string_match = 2 [(validate.rules).message = {required: true}];
} }
// [#not-implemented-hide:]
// Custom matcher to match on the generic downstream request. This is used to match // Custom matcher to match on the generic downstream request. This is used to match
// multiple fields of the downstream request and avoid complex combinations of // multiple fields of the downstream request and avoid complex combinations of
// HostMatchInput, PathMatchInput, MethodMatchInput and PropertyMatchInput. // HostMatchInput, PathMatchInput, MethodMatchInput and PropertyMatchInput.

Loading…
Cancel
Save