mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
Meteor answers more than 30 refreshes of the HttpOnly login cookie per 10 seconds from one client address with 429, and every page load is one. The whole browser suite comes from localhost, so a quick run signed its own test users out: 18-rtl-layout "list pages" landed on the sign-in page on its third full navigation in one of two runs with two workers. TODO Later recorded this on 2026-10-05. ACCOUNTS_COOKIE_REFRESH_RATE_LIMIT now sets the allowance per 10 seconds; anything but a positive whole number keeps Meteor's default, and the limiter is never switched off. The browser test server sets it to 100000. It also helps an install where many users reach WeKan through a proxy that is not trusted for the client address and so share one address; documented beside the login settings. loginWithToken additionally waits out a 429 on the cookie refresh and resumes once, and only for that. tests/cookieRefreshRateLimit.test.cjs runs the parser with valid and invalid values and pins the server, build.sh, docs and helper wiring. Thanks to xet7 !