The password-reset and e-mail confirmation endpoints are rate limited like sign-in #285

Closed
opened 2026-11-05 04:42:53 -05:00 by claude · 0 comments
Owner
  • Priority: low
  • Agent: coder
  • Depends on: #66
  • Decisions: none

Why

The anonymous token endpoints POST /api/auth/reset-password and POST /api/auth/confirm-email-change (#66) have no rate-limit policy. The tokens are long and unguessable, so this is defence in depth, not an open hole. Sign-in and the other anonymous endpoints are rate limited; these two should be as well.

What changes

  • Apply the rate-limit policy the other anonymous auth endpoints use (check which policy login uses) to both actions.
  • A request over the limit gets 429.

Acceptance

  • Web.Tests: past the limit, both endpoints answer 429.
  • dotnet test src/dotnet/tests/Ninlil.Web.Tests passes.

Source

Found while implementing #66.

- **Priority:** low - **Agent:** coder - **Depends on:** #66 - **Decisions:** none ### Why The anonymous token endpoints `POST /api/auth/reset-password` and `POST /api/auth/confirm-email-change` (#66) have no rate-limit policy. The tokens are long and unguessable, so this is defence in depth, not an open hole. Sign-in and the other anonymous endpoints are rate limited; these two should be as well. ### What changes - Apply the rate-limit policy the other anonymous auth endpoints use (check which policy `login` uses) to both actions. - A request over the limit gets 429. ### Acceptance - [ ] Web.Tests: past the limit, both endpoints answer 429. - [ ] `dotnet test src/dotnet/tests/Ninlil.Web.Tests` passes. ### Source Found while implementing #66.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#285
No description provided.