Skip to content

Implement the new per-descriptor level hits_addend #801

@mathetake

Description

@mathetake

Each RateLimit request has descriptors, and each descriptor now has a dedicated hits_addend introduced in envoyproxy/envoy@cac9b87

  // Optional hits_addend for the rate limit descriptor. If set the value will override the
  // request level hits_addend.
  google.protobuf.UInt64Value hits_addend = 3;

https://github.com/envoyproxy/envoy/blob/712b73658357f97bb7b53b33b497258b5a83b1ac/api/envoy/extensions/common/ratelimit/v3/ratelimit.proto#L127-L129

For the context, previously the hits_addend was (optionally) given per-Ratelimit request, not per-descriptor.

To make this projects as a "reference implementation", we need to add support for this APi.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions