docs(repo): count sign-in failures per email and IP, in an ADR superseding 0041 #549
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
spec
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amaurycoudr/chess-project!549
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs/439-adr-0041-email-and-ip"
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?
Summary
ADR 0041 said every counter is keyed by IP and by lowercased email; since !546, sign-in failures are keyed by email and IP together. The ADR format says a partly overturned ADR is superseded, so ADR 0045 restates 0041 with the new key, and 0041 only changes its Status.
What 0045 adds to 0041:
The "per-email limits" comments in
deploy/compose.preview.yamlandscripts/assign-dev-rate-limits.shnow say "the limits keyed by email" (alone or with the IP) and cite ADR 0045. 0045's Governs row adds those two files to 0041's paths.GLOSSARY.mdhas no rate-limit term, so it is unchanged.A second commit moves the ten code comments in
apps/api,apps/frontandpackages/contractsthat said "see ADR 0041" to "see ADR 0045", as4c3398c3did when 0042 superseded 0034. Only the citations change.Evidence
After: the ADR matches
auth.controller.ts(signInFailuresPerEmailAndIpkeyed"email ip",signInFailuresPerIpkeyedip). 0045 is 299 words (cap 300).pnpm lint(includinglint:adr: "45 ADRs, each numbered once and indexed"),typecheck,test,buildandformat:checkare green.grep -rn RATE_LIMIT_SIGN_IN_FAILURES_PER_EMAILover the repo finds only the new..._PER_EMAIL_AND_IPname, so nothing in the repo sets the old variable.Merge Danger
Door: two-way
Docs and comments only; revert restores 0041.
Blast Radius: docs
Owner step: check that no deployed environment (production's
.env, GitLab CI/CD variables, VPS stack files) still setsRATE_LIMIT_SIGN_IN_FAILURES_PER_EMAIL. If one does, it is ignored and the default of 5 applies, so rename it toRATE_LIMIT_SIGN_IN_FAILURES_PER_EMAIL_AND_IPor drop it.Closes #439
changed the description
added 1 commit
Compare with previous version
changed the description
added 3 commits
87f541fd- 1 commit from branchmain56cc57af- docs(repo): count sign-in failures per email and IP, in an ADR superseding 0041697b60f8- docs(repo): point what ADR 0041 decided and 0045 keeps at ADR 0045Compare with previous version
Screenshots
Before is production, after is this merge request's review app at
697b60f.Desktop
Mobile