From 439450491771f7af6603a47c74f1068f505a508d Mon Sep 17 00:00:00 2001 From: achoo30 Date: Mon, 22 Jun 2026 17:06:38 -0400 Subject: [PATCH] update proto to support metadata Signed-off-by: achoo30 --- api/ratelimit/config/ratelimit/v3/rls_conf.proto | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/ratelimit/config/ratelimit/v3/rls_conf.proto b/api/ratelimit/config/ratelimit/v3/rls_conf.proto index 4b62e797..15a9f3b4 100644 --- a/api/ratelimit/config/ratelimit/v3/rls_conf.proto +++ b/api/ratelimit/config/ratelimit/v3/rls_conf.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package ratelimit.config.ratelimit.v3; +import "google/protobuf/struct.proto"; + option java_package = "io.envoyproxy.ratelimit.config.ratelimit.v3"; option java_outer_classname = "RlsConfigProto"; option java_multiple_files = true; @@ -49,6 +51,10 @@ message RateLimitDescriptor { // Mark the descriptor as quota mode. When quota_mode is true, the rate limit service will allow // requests until all quota descriptors are over the limit. bool quota_mode = 7; + + // Optional metadata associated with the descriptor. When a rate limit match occurs, + // this metadata is included in the rate limit response's DynamicMetadata field. + google.protobuf.Struct metadata = 8; } // Rate-limit policy.