feat(hub): email one-time-code sign-in

POST /v1/auth/email/start and /verify with HMAC-protected 8-digit codes
(10 min, 5 tries, atomic single use), browser-bound via a __Host- cookie,
same-origin checks, per-address/source/global rate limits and an injectable
sender. Enabled in /v1/info only when SMTP is configured. Email identities
use external_identities(provider='email') and never merge with GitHub.
This commit is contained in:
Loki 2026-10-24 17:42:49 +02:00
parent f1883e5001
commit cca084b0ae
Signed by: boba
GPG key ID: 253067914055423B
20 changed files with 1756 additions and 59 deletions

View file

@ -14,10 +14,12 @@ Community messages and voice never pass through this process.
- Durable SQLite schema and issuer identity with a private `0600` key file.
- TLS-only SMTP transport and HTML/plain-text transactional email templates.
Email authentication, GitHub OAuth, server registration/discovery, friends, DM
storage and marketplace API are **not enabled**. There is no public endpoint for
sending mail. Existing schema tables are foundations, not working authentication.
Template links are previews of future routes; they do not create working tokens.
GitHub OAuth and email one-time-code sign-in are implemented (`AUTH.md`); email sign-in
is reported as enabled in `/v1/info` only when SMTP is configured. Server
registration/discovery, friends, DM storage and marketplace API are **not enabled**.
There is no public endpoint for sending mail. Other schema tables are foundations.
Links in the older verify/new-device templates are previews of future routes; they do
not create working tokens.
## Configuration