matching: initial support for match tree validation (#15709)

Adds some basic structure for validating match tree constructions, only
with support for validating the data input. Updates the HTTP filter
factory to be able to specify data input requirements and wires it up.

Signed-off-by: Snow Pettersen <snowp@lyft.com>

Mirrored from https://github.com/envoyproxy/envoy @ afb751344c93f6eb02ea1bd1630a282c55c7aef2
pull/624/head
data-plane-api(Azure Pipelines) 4 years ago
parent f9029e67f7
commit 656e45488c
  1. 15
      envoy/extensions/filters/common/dependency/v3/dependency.proto

@ -42,3 +42,18 @@ message FilterDependencies {
// A list of dependencies provided on the encode path.
repeated Dependency encode_provided = 4;
}
// Matching requirements for a filter. For a match tree to be used with a filter, the match
// requirements must be satisfied.
//
// This protobuf is provided by the filter implementation as a way to communicate the matching
// requirements to the filter factories, allowing for config rejection if the requirements are
// not satisfied.
message MatchingRequirements {
message DataInputAllowList {
// An explicit list of data inputs that are allowed to be used with this filter.
repeated string type_url = 1;
}
DataInputAllowList data_input_allow_list = 1;
}

Loading…
Cancel
Save