package envoy.type.matcher

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message DoubleMatcher

number.proto:19

Specifies the way to match a double value.

Used in: ValueMatcher

message ListMatcher

value.proto:58

Specifies the way to match a list value.

Used in: ValueMatcher

message ListStringMatcher

string.proto:78

Specifies a list of ways to match a string.

Used in: config.filter.http.ext_authz.v2.AuthorizationRequest, config.filter.http.ext_authz.v2.AuthorizationResponse, config.metrics.v2.StatsMatcher

message MetadataMatcher

metadata.proto:78

[#next-major-version: MetadataMatcher should use StructMatcher]

Used in: config.rbac.v2.Permission, config.rbac.v2.Principal

message MetadataMatcher.PathSegment

metadata.proto:82

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.

Used in: MetadataMatcher

message NodeMatcher

node.proto:20

Specifies the way to match a Node. The match follows AND semantics.

Used in: service.status.v2.ClientStatusRequest

message PathMatcher

path.proto:19

Specifies the way to match a path on HTTP request.

Used in: config.rbac.v2.Permission, config.rbac.v2.Principal

message RegexMatchAndSubstitute

regex.proto:57

Describes how to match a string and then produce a new string using a regular expression and a substitution string.

Used in: api.v2.route.RouteAction

message RegexMatcher

regex.proto:19

A regex matcher designed for safety when used with untrusted input.

Used in: api.v2.route.HeaderMatcher, api.v2.route.RouteMatch, RegexMatchAndSubstitute, StringMatcher

message RegexMatcher.GoogleRE2

regex.proto:33

Google's `RE2 <https://github.com/google/re2>`_ regex engine. The regex string must adhere to the documented `syntax <https://github.com/google/re2/wiki/Syntax>`_. The engine is designed to complete execution in linear time as well as limit the amount of memory used. Envoy supports program size checking via runtime. The runtime keys ``re2.max_program_size.error_level`` and ``re2.max_program_size.warn_level`` can be set to integers as the maximum program size or complexity that a compiled regex can have before an exception is thrown or a warning is logged, respectively. ``re2.max_program_size.error_level`` defaults to 100, and ``re2.max_program_size.warn_level`` has no default if unset (will not check/log a warning). Envoy emits two stats for tracking the program size of regexes: the histogram `re2.program_size`, which records the program size, and the counter `re2.exceeded_warn_level`, which is incremented each time the program size exceeds the warn level threshold.

Used in: RegexMatcher

message StringMatcher

string.proto:21

Specifies the way to match a string. [#next-free-field: 7]

Used in: api.v2.auth.CertificateValidationContext, api.v2.core.HealthCheck.HttpHealthCheck, api.v2.route.CorsPolicy, api.v2.route.QueryParameterMatcher, config.filter.http.cache.v2alpha.CacheConfig, config.filter.http.csrf.v2.CsrfPolicy, config.filter.network.dubbo_proxy.v2alpha1.MethodMatch, config.rbac.v2.Permission, config.rbac.v2.Principal.Authenticated, data.dns.v2alpha.DnsTable, ListStringMatcher, NodeMatcher, PathMatcher, ValueMatcher

message StructMatcher

struct.proto:69

StructMatcher provides a general interface to check if a given value is matched in google.protobuf.Struct. It uses `path` to retrieve the value from the struct and then check if it's matched to the specified value. For example, for the following Struct: .. code-block:: yaml fields: a: struct_value: fields: b: struct_value: fields: c: string_value: pro t: list_value: values: - string_value: m - string_value: n 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. .. code-block:: yaml path: - key: a - key: b - key: c value: string_match: prefix: pr The following StructMatcher is matched as the code will match one of the string values in the list at the path [a, t]. .. code-block:: yaml path: - key: a - key: t value: list_match: one_of: string_match: exact: m An example use of StructMatcher is to match metadata in envoy.v*.core.Node.

Used in: NodeMatcher

message StructMatcher.PathSegment

struct.proto:71

Specifies the segment in a path to retrieve value from Struct.

Used in: StructMatcher

message ValueMatcher

value.proto:22

Specifies the way to match a ProtobufWkt::Value. Primitive values and ListValue are supported. StructValue is not supported and is always not matched. [#next-free-field: 7]

Used in: ListMatcher, MetadataMatcher, StructMatcher

message ValueMatcher.NullMatch

value.proto:24

NullMatch is an empty message to specify a null value.

Used in: ValueMatcher

(message has no fields)