envoyproxy / envoyproxy/envoy

Fix inconsistency in rate limit filter names

Đang mở
#8,799 6 bình luận 0 reaction 1 người được giao Được @arvpo nhận Xem trên GitHub
area/ratelimit beginner help wanted tech debt
Ngôn ngữ chính
C++
Star
28.9k
Fork
5.6k
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
430

Mô tả

Minor cleanup related to PR #8796, for HTTP filters we have [`envoy.rate_limit`](https://github.com/envoyproxy/envoy/blob/master/source/extensions/filters/http/well_known_names.h#L39) but for networking filters we have [`envoy.ratelimit`](https://github.com/envoyproxy/envoy/blob/master/source/extensions/filters/network/well_known_names.h#L27). We should update the network filter to match HTTP/Thrift. In order to avoid naming collisions, the network filter should be updated to the new style of `envoy.filters.network.rate_limit`. This would involve
1. [Register a second definition](https://github.com/envoyproxy/envoy/blob/master/source/extensions/filters/network/ratelimit/config.cc#L44) of the rate limit filter's [config factory](https://github.com/envoyproxy/envoy/blob/master/source/extensions/filters/network/ratelimit/config.h#L18) with the [new name](https://github.com/envoyproxy/envoy/blob/master/source/extensions/filters/network/ratelimit/config.h#L21).
2. Deprecation period for the old config factory
3. Removal of the old config factory

(while here, we could extend this to updating all the networking filter names to the new format, this one just stood out as a potential nuisance)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.