package envoy.extensions.common.ratelimit.v3

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

message LocalClusterRateLimit

ratelimit.proto:158

Configuration used to enable local cluster level rate limiting where the token buckets will be shared across all the Envoy instances in the local cluster. A share will be calculated based on the membership of the local cluster dynamically and the configuration. When the limiter refilling the token bucket, the share will be applied. By default, the token bucket will be shared evenly. See :ref:`local cluster name <envoy_v3_api_field_config.bootstrap.v3.ClusterManager.local_cluster_name>` for more context about local cluster.

Used in: filters.http.local_ratelimit.v3.LocalRateLimit

(message has no fields)

message LocalRateLimitDescriptor

ratelimit.proto:141

Configuration used to enable local rate limiting. .. note:: The ``LocalRateLimitDescriptor`` is used to configure a local rate limit rule with a token bucket algorithm. The ``RateLimitDescriptor`` is used to represent a list of symbols that are used to match against the rate limit rule.

Used in: filters.http.local_ratelimit.v3.LocalRateLimit

message RateLimitDescriptor

ratelimit.proto:95

A RateLimitDescriptor is a list of hierarchical entries that are used by the service to determine the final rate limit key and overall allowed limit. Here are some examples of how they might be used for the domain "envoy". .. code-block:: cpp ["authenticated": "false"], ["remote_address": "10.0.0.1"] What it does: Limits all unauthenticated traffic for the IP address 10.0.0.1. The configuration supplies a default limit for the *remote_address* key. If there is a desire to raise the limit for 10.0.0.1 or block it entirely it can be specified directly in the configuration. .. code-block:: cpp ["authenticated": "false"], ["path": "/foo/bar"] What it does: Limits all unauthenticated traffic globally for a specific path (or prefix if configured that way in the service). .. code-block:: cpp ["authenticated": "false"], ["path": "/foo/bar"], ["remote_address": "10.0.0.1"] What it does: Limits unauthenticated traffic to a specific path for a specific IP address. Like (1) we can raise/block specific IP addresses if we want with an override configuration. .. code-block:: cpp ["authenticated": "true"], ["client_id": "foo"] What it does: Limits all traffic for an authenticated client "foo" .. code-block:: cpp ["authenticated": "true"], ["client_id": "foo"], ["path": "/foo/bar"] What it does: Limits traffic to a specific path for an authenticated client "foo" The idea behind the API is that (1)/(2)/(3) and (4)/(5) can be sent in 1 request if desired. This enables building complex application scenarios with a generic backend. Optionally the descriptor can contain a limit override under a "limit" key, that specifies the number of requests per unit to use instead of the number configured in the rate limiting service.

Used in: filters.network.ratelimit.v3.RateLimit, service.ratelimit.v3.RateLimitRequest

message RateLimitDescriptor.Entry

ratelimit.proto:99

Used in: LocalRateLimitDescriptor, RateLimitDescriptor

message RateLimitDescriptor.RateLimitOverride

ratelimit.proto:115

Override rate limit to apply to this descriptor instead of the limit configured in the rate limit service. See :ref:`rate limit override <config_http_filters_rate_limit_rate_limit_override>` for more information.

Used in: RateLimitDescriptor

enum VhRateLimitsOptions

ratelimit.proto:39

Used in: filters.http.local_ratelimit.v3.LocalRateLimit

enum XRateLimitHeadersRFCVersion

ratelimit.proto:23

Defines the version of the standard to use for X-RateLimit headers.

Used in: filters.http.local_ratelimit.v3.LocalRateLimit