Skip to content

Commit

Permalink
expose configuration for envoy's RateLimitedAsResourceExhausted (proj…
Browse files Browse the repository at this point in the history
…ectcontour#4971)

The Rate Limit filter in Envoy translates a 429 HTTP response code
to UNAVAILABLE as specified in the gRPC mapping document, but Google recommends
translating it to RESOURCE_EXHAUSTED
(see https://github.com/grpc/grpc/blob/master/doc/http-grpc-status-mapping.md)

This commit introduces a new setting to allow contour to forward the same parameter
introduced in envoyproxy/envoy#4879

The default value is disabled to retain the original behaviour of returning UNAVAILABLE,
as changing it would be a breaking change.

Closes projectcontour#4901.

Signed-off-by: Víctor Roldán Betancort <vroldanbet@authzed.com>
Signed-off-by: yy <yang.yang@daocloud.io>
  • Loading branch information
vroldanbet authored and yangyy93 committed Feb 16, 2023
1 parent 4057f56 commit f1b5c21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/4971-vroldanbet-small.md
@@ -0,0 +1 @@
expose configuration for envoy's RateLimitedAsResourceExhausted

0 comments on commit f1b5c21

Please sign in to comment.