diff --git a/envoy/api/v2/route/route.proto b/envoy/api/v2/route/route.proto index 11c5f36a..6d09b982 100644 --- a/envoy/api/v2/route/route.proto +++ b/envoy/api/v2/route/route.proto @@ -9,6 +9,7 @@ import "envoy/api/v2/auth/auth.proto"; import "envoy/type/range.proto"; import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; import "google/protobuf/wrappers.proto"; import "validate/validate.proto"; @@ -99,6 +100,13 @@ message VirtualHost { // [#not-implemented-hide:] // Return a 401/403 when auth checks fail. auth.AuthAction auth = 9; + + // The per_filter_config field can be used to provide virtual host-specific + // configurations for filters. The key should match the filter name, such as + // *envoy.buffer* for the HTTP buffer filter. Use of this field is filter + // specific; see the :ref:`HTTP filter documentation ` + // for if and how it is utilized. + map per_filter_config = 12; } // A route is both a specification of how to match a request as well as an indication of what to do @@ -138,6 +146,13 @@ message Route { // [#not-implemented-hide:] // Return a 401/403 when auth checks fail. auth.AuthAction auth = 6; + + // The per_filter_config field can be used to provide route-specific + // configurations for filters. The key should match the filter name, such as + // *envoy.buffer* for the HTTP buffer filter. Use of this field is filter + // specific; see the :ref:`HTTP filter documentation ` for + // if and how it is utilized. + map per_filter_config = 8; } // Compared to the :ref:`cluster ` field that specifies a @@ -197,6 +212,13 @@ message WeightedCluster { // :ref:`cluster_metadata ` from the // enclosing :ref:`envoy_api_msg_route.RouteAction`. core.Metadata cluster_metadata = 7; + + // The per_filter_config field can be used to provide weighted cluster-specific + // configurations for filters. The key should match the filter name, such as + // *envoy.buffer* for the HTTP buffer filter. Use of this field is filter + // specific; see the :ref:`HTTP filter documentation ` + // for if and how it is utilized. + map per_filter_config = 8; } // Specifies one or more upstream clusters associated with the route.