Public self-registration
Let visitors create their own accounts. Today there is no signup flow: no /api/signup route and no SPA form — accounts are created by admins (the users type has an :email validation hook, so the field exists). Motivated by the blog direction: comments require registration, and a real blog cannot route every commenter through an admin.
Anti-spam shape settled 2026-10-24 (public-pages planning session): captcha at signup plus a rate limit on posting. Never a captcha per comment — friction would land exactly on the interaction a blog lives on.
- Captcha at signup: Cloudflare Turnstile (free, invisible, one SPA script + one backend verify call with a secret) is the pragmatic v1; Altcha (proof-of-work, fully self-hosted) is the no-external-service alternative. Either kills scripted signup at this scale.
- Rate limit: N comments/hour/account, enforced in the write path (
be-insert), not the frontend. - Email verification deferred: as pure spam control it doesn't pay for itself (outbound SMTP, deliverability/SPF/DKIM from the cluster, token flow, pending→active account states). Build it when reply notifications want mail infrastructure; spam control rides along.
- Moderation backstop falls out of RBAC for free: a held-for-review comment is a comment scoped away from the guest role, so it simply doesn't render on p pages (the public renderer walks as guest). No render-side machinery.
Not a public-render concern: public pages render on request (2026-11-06), so a write burst costs nothing on the public side; writers to public types are registered authors and commenters, single-digit concurrent at worst. See public-pages-plan.org.
- Slot
- 16700
- Status
- 10 Open
- Tags
- backend, frontend
- Contributors
- Donnie