Skip to content

fix: stop swallowing store-unavailable errors in API-key and TOTP-log… - #1414

Merged
perber merged 1 commit into
mainfrom
fix/apikey-totp-store-unavailable-swallowing
Aug 9, 2026
Merged

fix: stop swallowing store-unavailable errors in API-key and TOTP-log…#1414
perber merged 1 commit into
mainfrom
fix/apikey-totp-store-unavailable-swallowing

Conversation

@perber

@perber perber commented Aug 9, 2026

Copy link
Copy Markdown
Owner

…in paths

APIKeyService.Resolve and AuthService.CompleteTOTPLogin collapsed a live restore's "store suspended" error into generic not-found/invalid errors, mirroring an earlier UserService bug. Fixed by propagating the distinct LocalizedError instead, plus extending the Bearer-auth middleware (which was otherwise silently discarding the fix) to return 503 without counting the attempt against its rate limiter, and correcting the TOTP-verification metric's bucketing for the same case.

…in paths

APIKeyService.Resolve and AuthService.CompleteTOTPLogin collapsed a live
restore's "store suspended" error into generic not-found/invalid errors,
mirroring an earlier UserService bug. Fixed by propagating the distinct
LocalizedError instead, plus extending the Bearer-auth middleware (which
was otherwise silently discarding the fix) to return 503 without counting
the attempt against its rate limiter, and correcting the TOTP-verification
metric's bucketing for the same case.
@perber
perber merged commit b5f69d5 into main Aug 9, 2026
9 checks passed
@perber
perber deleted the fix/apikey-totp-store-unavailable-swallowing branch August 9, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant