ratelimit-test: sign-in limits with several replicas (K-W3) #23

Merged
jcoffey-dev merged 1 commits from feat/ratelimit-test into main 2026-11-19 03:00:42 +00:00
Owner

lab/chart/ratelimit-test.sh, after frontends-test.sh:

  1. The webmail's own limit counts per replica: replica A refuses one client at attempt 201, and replica B still starts its sign-in.
  2. The webmail counts the browser its proxy names, not the proxy: replica A still starts a second client's sign-in.
  3. The server counts failed sign-ins across its pods: 110 wrong passwords alternating between two front pods are banned at 101.
  4. Through a proxy, the server counts each client: 110 failures for 110 clients ban nobody.

probe.js runs from a pod in data, paced under the server's 100-a-minute anonymous limit. blocked-ips.py lists and lifts bans as admin, and the test lifts any it causes. Each run uses its own account names, since the server's counts last a day.

Passes on kind with the webmail and server branches. On the rc.31 server, step 4 fails (the proxy is banned), which is the bug the server and chart PRs fix.

`lab/chart/ratelimit-test.sh`, after `frontends-test.sh`: 1. The webmail's own limit counts per replica: replica A refuses one client at attempt 201, and replica B still starts its sign-in. 2. The webmail counts the browser its proxy names, not the proxy: replica A still starts a second client's sign-in. 3. The server counts failed sign-ins across its pods: 110 wrong passwords alternating between two front pods are banned at 101. 4. Through a proxy, the server counts each client: 110 failures for 110 clients ban nobody. `probe.js` runs from a pod in `data`, paced under the server's 100-a-minute anonymous limit. `blocked-ips.py` lists and lifts bans as admin, and the test lifts any it causes. Each run uses its own account names, since the server's counts last a day. Passes on kind with the webmail and server branches. On the rc.31 server, step 4 fails (the proxy is banned), which is the bug the server and chart PRs fix.
jcoffey-dev added 1 commit 2026-11-19 02:47:00 +00:00
The webmail's own limit counts per replica and per browser its proxy names;
the server counts failed sign-ins across its pods and bans after about 100;
through a proxy, each client counts, not the proxy. Bans the test causes are
lifted at the end (blocked-ips.py).
jcoffey-dev merged commit 7cd999e9b0 into main 2026-11-19 03:00:42 +00:00
jcoffey-dev deleted branch feat/ratelimit-test 2026-11-19 03:00:43 +00:00
Sign in to join this conversation.