You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the descriptor list is empty, rate limit service is not called.
Is this expected behaviour? Should we not call rate limiting service with two headers as descriptor entries which have values rather than completely skipping it?
Should we simply add a descriptor if it has atleast one entry?
The text was updated successfully, but these errors were encountered:
Resolves#10124 indirectly by adding an extra config flag to RequestHeaders through which it is possible for descriptors to be sent on a partial match.
Signed-off-by: Rohan Seth <[email protected]>
We have configured the rate limiting service with three request headers actions like
If in a request the
custom-header
does not have a value, Envoy skips calling the rate limiting service.Debugging it further, found that if any of the
populateDescriptor
call here returns false it skips adding the descriptorenvoy/source/common/router/router_ratelimit.cc
Line 121 in 5be15b3
and
populateDescriptor
implementation ofRequestHeadersAction
returns false if there is no valueenvoy/source/common/router/router_ratelimit.cc
Line 41 in 5be15b3
Since the descriptor list is empty, rate limit service is not called.
Is this expected behaviour? Should we not call rate limiting service with two headers as descriptor entries which have values rather than completely skipping it?
Should we simply add a descriptor if it has atleast one entry?
The text was updated successfully, but these errors were encountered: