How to enforce rate limiting for an IP that received 403 errors repeatedly in a Security Policy in Google Cloud?

57 Views Asked by At

I want to enforce rate limiting (throttling) if an IP has repeatedly faced 403 errors, on the edge, using Google Cloud Armor.

I have been able to enforce rate-based limiting/throttling for any IP that crosses the benchmark using the enforceKey on IP as the key.

However, I want to also throttle, at a higher priority, any IP that faces 403 errors.

Is this doable in Google Cloud Armor?

1

There are 1 best solutions below

3
Dave On BEST ANSWER

This is not doable today as the 403 code is an origin response and Cloud Armor does not process outbound rules, just inbound.