envoyproxy / envoyproxy/gateway

How to log triggered ratelimit rule

Open
#7,003 2 comments 0 reactions 0 assignees View on GitHub
stale triage
Dominant language
Go
Stars
3k
Forks
864
Avg merge
2d 2h
Merged PRs (30d)
140

Description

*Description*:

Is there a simple way to log which ratelimit rule was triggered?
As I understand it, the ratelimit service does not pass this information back to Envoy.
I would like to find some way to populate this in my access log.

I did see the RLS Proto supports adding headers in the response with "response_headers_to_add" (https://www.envoyproxy.io/docs/envoy/latest/api-v3/service/ratelimit/v3/rls.proto#service-ratelimit-v3-ratelimitresponse). So I was thinking about hosting my own RLS deployment and using a configuration file instead of xDS to force this for each rule. If the descriptor was added as a header, I could add it to the access log format.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.