aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/tests/test_rate_limit_key.py
Commit message (Collapse)AuthorAgeFilesLines
* fix(hub): rate-limit per client, not per proxyChristophe Besson43 hours1-0/+48
Behind Caddy every request's TCP peer is loopback, and the limiter was keyed on that peer (slowapi's get_remote_address), so each limit was one bucket for the whole internet: ten node sign-ins a minute shared by every node. A node starting while others signed in got 429 and sat in waiting_for_hub, which the desktop app took for no node at all. Key it on client_ip, which already resolves X-Forwarded-For from a trusted proxy and was written for this. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>