opsdash-app/opsdash/tests
blade34242 ea2237e3fd security: rate limit /loadData to 5 req/10 s per user via ICacheFactory
Adds LoadRateLimiter with a two-layer check: 2-second minimum interval
between requests, and a burst cap of 5 per 10-second window. Uses the
distributed cache (Redis/APCu) so the limit applies across workers.
Fails open when cache is unavailable so a cold cache never blocks users.
Returns 429 Too Many Requests when throttled.

Also updates ICacheFactory stub and FakeCacheFactory implementations to
match the full interface (isAvailable, createDistributed, createInMemory).
2026-05-06 13:59:12 +07:00
..
e2e Polish editing UI, tests, and screenshot feed workflow 2026-05-06 08:01:37 +07:00
php security: rate limit /loadData to 5 req/10 s per user via ICacheFactory 2026-05-06 13:59:12 +07:00
phpunit.xml fix: normalize all-day event aggregation 2025-10-27 16:03:31 +07:00