envoyproxy/envoy

Envoy to pass hits_addend to RateLimitService

Open

#12,969 建立於 2020年9月3日

在 GitHub 查看
 (27 留言) (3 反應) (0 負責人)C++ (5,373 fork)batch import
area/ratelimithelp wanted

倉庫指標

Star
 (27,997 star)
PR 合併指標
 (平均合併 8天) (30 天內合併 378 個 PR)

描述

Description

The RLS v3 api describes the RateLimitService as able to injest a hits_addend field to determine number of tokens to use for the rate limiting request. Envoy should provide a method for extracting a value from a request header (or some other method) to populate this method on a per request basis. If hits_addend is only static, then it is effectively the same as modifying the ratelimit.

Use case

In the HTTP Rate Limit Filter allow for a configuration of a request header containing an integer hits_addend value to send with the rate limit request, allowing for greater configurability of rate limiting capabilities.

貢獻者指南