I want to apply rate-based throttling using Google Cloud Armor. In the configuration for rules, there is a match
parameter but that is for matching the IP ranges. I could not find a way to filter and then apply rate-based throttling for specific URL endpoints.
Via Pulumi documentation, I was able to find that we can leverage enforceOnKey
for the HTTP_PATH
but it takes only the first 128 bytes of the request.
I wonder if there are some examples I can use to apply rate-based throttling for specific URLs. Such as 1k QPS for /login
, 10k QPS for /insert
.
From the logs, I think the httpRequest.requestUrl
parameter, can be used to enforce this rule.