Metadata matcher

    For example, for the following Metadata:

    The following MetadataMatcher is matched as the path [a, b, c] will retrieve a string value “pro” from the Metadata which is matched to the specified prefix match.

    The following MetadataMatcher is matched as the code will match one of the string values in the list at the path [a, t].

    An example use of MetadataMatcher is specifying additional metadata in envoy.filters.http.rbac to enforce access control based on dynamic metadata in a request. See Permission and .

    [type.matcher.v3.MetadataMatcher proto]

    (, REQUIRED) The filter name to retrieve the Struct from the Metadata.

    path

    (repeated type.matcher.v3.MetadataMatcher.PathSegment, REQUIRED) The path to retrieve the Value from the Struct.

    value

    (, REQUIRED) The MetadataMatcher is matched if the value retrieved by path is matched to this value.

    (bool) If true, the match result will be inverted.

    type.matcher.v3.MetadataMatcher.PathSegment

    [type.matcher.v3.MetadataMatcher.PathSegment proto]

    Specifies the segment in a path to retrieve value from Metadata. Note: Currently it’s not supported to retrieve a value from a list in Metadata. This means that if the segment key refers to a list, it has to be the last segment in a path.

    key

    (, REQUIRED) If specified, use the key to retrieve the value in a Struct.