diff --git a/envoy/service/ratelimit/v2/rls.proto b/envoy/service/ratelimit/v2/rls.proto index ce52826a..352c397a 100644 --- a/envoy/service/ratelimit/v2/rls.proto +++ b/envoy/service/ratelimit/v2/rls.proto @@ -101,6 +101,9 @@ message RateLimitResponse { // descriptors failed and/or what the currently configured limits are for all of them. repeated DescriptorStatus statuses = 2; - // A list of headers to add to the response + // [#next-major-version: rename to response_headers_to_add] repeated api.v2.core.HeaderValue headers = 3; + + // A list of headers to add to the request when forwarded + repeated api.v2.core.HeaderValue request_headers_to_add = 4; } diff --git a/envoy/service/ratelimit/v3alpha/rls.proto b/envoy/service/ratelimit/v3alpha/rls.proto index 910b24c3..144c34d9 100644 --- a/envoy/service/ratelimit/v3alpha/rls.proto +++ b/envoy/service/ratelimit/v3alpha/rls.proto @@ -101,6 +101,9 @@ message RateLimitResponse { // descriptors failed and/or what the currently configured limits are for all of them. repeated DescriptorStatus statuses = 2; - // A list of headers to add to the response + // [#next-major-version: rename to response_headers_to_add] repeated api.v3alpha.core.HeaderValue headers = 3; + + // A list of headers to add to the request when forwarded + repeated api.v3alpha.core.HeaderValue request_headers_to_add = 4; }