Repository navigation
fix(users): require users.write to read MFA recovery codes - #14872
Conversation
|
Review complete. No blocking issues — approved ✅; 1 nitpick below. 🧹 Nitpicks (1) — 🟢 1 low
The change makes retrieving MFA recovery codes as privileged as regenerating them, matching
One low-severity follow-up on the usage metric label is included; the authorization change itself is coherent with siblings and the scope lock contract ( Reviewed commit: e8f9cd9 |
🟢 Tier S · Ready to merge
The MFA recovery-codes GET route now requires the
📂 Walkthrough · 2
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)
|
…s-scope fix(users): require users.write to read MFA recovery codes (cherry picked from commit a9f8ae1)
Changes the scope on
GET /v1/users/:userId/mfa/recovery-codesfromusers.readtousers.write, matching the create and update recovery-code endpoints. ExtendsUsersCustomServerTestto assert ausers.read-only key gets 401 on that route.Tested: e2e assertion added; vendor not installed in this worktree so lint/PHPStan will run in CI. Details are tracked internally.