Rate limiting for sign-in, password reset, and public endpoints #38
Labels
No labels
bug
dependencies
documentation
feature
phase-summary
security
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
vmanne-poc/Postak#38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Today: nothing limits repeated requests, except the per-account reset-email throttle. Sign-in can be brute-forced, and the public form submit and tracking endpoints can be flooded.
Plan
@nestjs/throttlerwith a pinned version.POST /auth/login,/auth/register,/auth/forgot-password,/auth/reset-password, and/public/forms/*/submit.X-Forwarded-Foronly from a configured trusted proxy (the nginx container).Retry-After. The web app shows a friendly message.Done when