Skip to content
SprecherEast
Issue 292

Decide the site-wide limits on sign-up and forgot password (lock-out trade-off)

Back to our plan
Done
authprocesspriority: low

Problem

Since #288 and #291, sign-up and forgot password each have a site-wide hourly cap, counted on requests that pass the robot check:

  • 20 for sign-up (SIGN_UP_LIMITS);
  • 30 for forgot password (RESET_REQUEST_LIMITS).

The caps bound how many emails the site sends (the Mailgun quota). The trade-off: anyone who gets past Turnstile that many times in an hour blocks the form for every resident until the hour is up. Without Turnstile keys, anyone can do it.

Decision 0007 accepted this for sign-up. Nothing records it for forgot password, and docs/guidelines/security.md doesn't describe either cap. Writing it down there is a policy change.

Also from the #291 review: ADMIN_FORGOT_PATH in src/proxy.ts hardcodes Payload's default admin routes. If admin.routes is ever customised, the redirect stops working.

Question for the owner

Keep the caps as they are (A, recommended: they protect the email quota, and Turnstile makes the lock-out hard to cause) and record them in security.md? Or B: drop the site-wide cap on forgot password and keep only the per-connection limit?

Acceptance criteria

  • The chosen limits are recorded where the policy lives.
  • The admin redirect follows admin.routes or has a test that fails if they change.

Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab