Skip to content

Build rate limit descriptors from cluster locality metadata#44359

Open
yanavlasov wants to merge 1 commit intoenvoyproxy:mainfrom
yanavlasov:cluster-localityy-rate-limit-descriptor
Open

Build rate limit descriptors from cluster locality metadata#44359
yanavlasov wants to merge 1 commit intoenvoyproxy:mainfrom
yanavlasov:cluster-localityy-rate-limit-descriptor

Conversation

@yanavlasov
Copy link
Copy Markdown
Contributor

Add option for creating rate limit descriptors from cluster locality metadata.

Risk Level: low (new config option)
Testing: unit tests
Docs Changes: yes
Release Notes: yes
Platform Specific Features: no

Signed-off-by: Yan Avlasov <yavlasov@google.com>
@yanavlasov
Copy link
Copy Markdown
Contributor Author

/gemini review

@repokitteh-read-only
Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @mattklein123
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #44359 was opened by yanavlasov.

see: more, trace.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for populating rate limit descriptors using cluster locality metadata via the new CLUSTER_LOCALITY_ENTRY source. The review identifies a critical issue in the implementation where the use of a non-standard method and raw pointers from temporary shared pointers could lead to a use-after-free. Furthermore, the feedback points out necessary corrections for the unit test mocks and the integration test configuration path to ensure the metadata is correctly accessed and assigned.

@envoyproxy envoyproxy deleted a comment from gemini-code-assist bot Apr 10, 2026
@envoyproxy envoyproxy deleted a comment from gemini-code-assist bot Apr 10, 2026
@envoyproxy envoyproxy deleted a comment from gemini-code-assist bot Apr 10, 2026
@phlax
Copy link
Copy Markdown
Member

phlax commented Apr 14, 2026

@yanavlasov needs main merge

@mattklein123 i think this is waiting on your review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants