Repository navigation
fix(account): scope the email sign-in limit to the project and address - #15023
Conversation
The email password sign-in limit keyed its bucket on the raw submitted email without the project, while sign in matches the lowercased email within one project. Case variants of an address each got their own budget, and a successful sign in to the same address in another project reset it. The key now includes the project and email params are lowercased when building abuse keys.
|
Review complete. No issues found — approved ✅. This PR hardens sign-in abuse limiting by scoping the per-email failure counter to the project making the request, so failed attempts in one project no longer reset or consume another project's budget on shared hosts. The email value used in the abuse key is lowercased so
Reviewed commit: 12d42b1 |
🟢 Tier S · Ready to mergeEmail/password sign-in abuse buckets now include the project ID, and abuse-key email parameters are lowercased. An E2E test covers email case variants and verifies a successful sign-in in one project does not reset another project's limit.
Note Not approving while a bug finding is open: Scope email case folding to case-insensitive handlers 📂 Walkthrough · 3
Reviewed |
Security rulesNo new WARNING or ERROR findings from security rules. 6 existing findings tracked in
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
The email password sign-in limit keyed its bucket on the raw submitted email without the project, while sign in matches the lowercased email within one project. Case variants of an address each got their own budget, and a successful sign in to the same address in another project reset it. The key now includes the project and email params are lowercased when building abuse keys.
Lint, PHPStan and the touched unit tests passed locally before rebasing on main; e2e runs in CI.
Related: appwrite-labs/cloud#6666