Repository navigation
fix(FOUR-34195): fail fast and cache invalid API Bearer tokens before… - #9116
rodriquelca wants to merge 4 commits into
Conversation
PR SummaryMedium Risk Overview
Reviewed by Cursor Bugbot for commit 2ff8477. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4f8f268. Configure here.
|





Issue & Reproduction Steps
Invalid Bearer on auth:api routes (e.g. FAKE_JWT, load tests) runs Passport on every hit, saturating Octane (504/slow health) while clients only get 401.
Repro: Octane up → ./scripts/reproduce-invalid-bearer-load.sh or curl -H "Authorization: Bearer FAKE_JWT" /api/1.0/tasks?per_page=1. No DB fixtures.
Solution
How to Test
Related Tickets & Packages
Code Review Checklist