Skip to content

fix: board review fixes for password reset and the landing page - #158

Merged
kymanirjarrett merged 5 commits into
mainfrom
chore/157-board-review-v1
Nov 30, 2026
Merged

kymanirjarrett merged 5 commits into
mainfrom
chore/157-board-review-v1

Conversation

@kymanirjarrett

Copy link
Copy Markdown
Owner

Closes #157

Fixes from a five-seat board review of everything merged since v1.0.0 (course/ excluded).

Password reset

  • The request thread now only checks the per-address cap and hands off. Account lookup, token storage, commit, and the email all run on the mail thread, so neither the response nor its timing reveals whether an account exists (Security, Senior Engineer).
  • A full mail queue is caught and still returns 202 instead of a 500 that only registered addresses could trigger.
  • The email is sent only after the token is committed.
  • Single use is now an atomic conditional delete: two requests racing with one link get exactly one 204 and one 400.
  • Requesting a new link no longer invalidates earlier unexpired ones, so someone requesting links for your address can't cancel yours. A successful reset still revokes them all.
  • The token moves to the URL fragment (#token=), which browsers never send to a server, and the page strips it with Location.replaceState.
  • Limits: separate per-IP budgets for forgot (10/h) and reset (10/15m), 5 emails per address per hour, and a global cap of 200 reset emails a day to protect the Brevo quota.
  • Startup fails on a missing MAIL_FROM, MAIL_USERNAME, or MAIL_PASSWORD, or a non-https APP_URL. The logging sender runs only in the local profile. The mail pool waits for queued emails on shutdown. The unused usedAt and createdAt fields are gone from the entity; the columns stay.

Landing

  • The facts marquee gets a visible Pause/Play button (WCAG 2.2.2). With reduced motion the facts wrap instead of being clipped.
  • The nav tone uses an IntersectionObserver instead of reading layout on every scroll. Every listener, observer, timer, and animation frame is released on destroy, and printed pages show the finished cards.

Also: comments that cited the removed CLAUDE.md now point at ADRs.

Tests: new PasswordChangeValidatorTest, plus reset isolation between users, the concurrency race, identical responses for known and unknown emails, the per-address email cap, and frontend reset sign-out and landing observers. Mutations that previously survived (removing the per-address cap, dropping the user filter on revocation) now fail tests.

Checked: backend mvnw verify (94% coverage), frontend 72/72 and a clean build.

@kymanirjarrett
kymanirjarrett merged commit ba9092b into main Nov 30, 2026
6 checks passed
@kymanirjarrett
kymanirjarrett deleted the chore/157-board-review-v1 branch November 30, 2026 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Board review of changes since v1.0.0

1 participant