ratelimit.proto

Package: ratelimit.options.gloo.solo.io

Types:

Source File: github.com/solo-io/gloo/projects/gloo/api/v1/enterprise/options/ratelimit/ratelimit.proto

IngressRateLimit

Basic rate-limiting API

"authorizedLimits": .ratelimit.api.solo.io.RateLimit
"anonymousLimits": .ratelimit.api.solo.io.RateLimit

Field Type Description Default
authorizedLimits .ratelimit.api.solo.io.RateLimit
anonymousLimits .ratelimit.api.solo.io.RateLimit

Settings

"ratelimitServerRef": .core.solo.io.ResourceRef
"requestTimeout": .google.protobuf.Duration
"denyOnFail": bool
"rateLimitBeforeAuth": bool

Field Type Description Default
ratelimitServerRef .core.solo.io.ResourceRef
requestTimeout .google.protobuf.Duration
denyOnFail bool
rateLimitBeforeAuth bool Set this is set to true if you would like to rate limit traffic before applying external auth to it. Note: When this is true, you will lose some features like being able to rate limit a request based on its auth state.

ServiceSettings

API based on Envoy’s rate-limit service API. (reference here: https://github.com/lyft/ratelimit#configuration) Sample configuration below:

descriptors:

"descriptors": []ratelimit.api.solo.io.Descriptor

Field Type Description Default
descriptors []ratelimit.api.solo.io.Descriptor

RateLimitConfigRefs

A list of references to RateLimitConfig resources. Each resource represents a rate limit policy that will be independently enforced.

"refs": []ratelimit.options.gloo.solo.io.RateLimitConfigRef

Field Type Description Default
refs []ratelimit.options.gloo.solo.io.RateLimitConfigRef

RateLimitConfigRef

A reference to a RateLimitConfig resource.

"name": string
"namespace": string

Field Type Description Default
name string
namespace string

RateLimitVhostExtension

Use this field if you want to inline the Envoy rate limits for this VirtualHost. Note that this does not configure the rate limit server. If you are running Gloo Enterprise, you need to specify the server configuration via the appropriate field in the Gloo Settings resource. If you are running a custom rate limit server you need to configure it yourself.

"rateLimits": []ratelimit.api.solo.io.RateLimitActions

Field Type Description Default
rateLimits []ratelimit.api.solo.io.RateLimitActions Define individual rate limits here. Each rate limit will be evaluated, if any rate limit would be throttled, the entire request returns a 429 (gets throttled).

RateLimitRouteExtension

Use this field if you want to inline the Envoy rate limits for this Route. Note that this does not configure the rate limit server. If you are running Gloo Enterprise, you need to specify the server configuration via the appropriate field in the Gloo Settings resource. If you are running a custom rate limit server you need to configure it yourself.

"includeVhRateLimits": bool
"rateLimits": []ratelimit.api.solo.io.RateLimitActions

Field Type Description Default
includeVhRateLimits bool Whether or not to include rate limits as defined on the VirtualHost in addition to rate limits on the Route.
rateLimits []ratelimit.api.solo.io.RateLimitActions Define individual rate limits here. Each rate limit will be evaluated, if any rate limit would be throttled, the entire request returns a 429 (gets throttled).