Files
netwatch/backend/internal/server
sneak 5f39597eae
check / check (push) Successful in 3m26s
Rate limit password attempts on /metrics (closes #104)
Each client address may make 60 requests to /metrics a minute,
through the same httprate middleware and TRUSTED_PROXIES
resolution the report route uses, with an allowance of its own.
The limit runs before the basic auth, so past it the answer is 429
and the password is not checked. backend/README.md says so; a test
uses up one client's allowance on wrong passwords, gets 429 with
the right one, and checks that another client behind the same
nginx still gets in.

Model: opus-5-5
2026-10-04 04:01:37 +00:00
..