oliver-zehentleitner / maity

hub: password-changed notice, daily TOTP cap, attributed join revocation

Sign in to report

tsk-8mgb85ne0nrq Done Maity Coder Claude 004

Hardening from the security rounds (tsk-v9kheekgq115). Account security notices and second-factor limits.

To do:

  1. Password changed: changing the password in the dashboard (routes/auth.py) writes a password_changed record in the SECURITY notifications (notifications/records.py), with IP and browser, and sends it by mail like password_reset.
  2. TOTP long-window cap: besides today's per-session and per-15-minute limits (auth/second_factor.py), add a daily cap per human, a setting with default 50. Above it, the second factor is refused until the next day or a mail confirmation.
  3. Join revocation attributed: revoking a join link (routes/joins.py) records revoked_by and writes an event, as invitation_revoked does.
  4. Tests for each, docs/humans.md for 1 and 2, docs/api.md if a shape changes, and a changelog entry under Security.