feat: refine OAuth proxy controls and quota UI (#433)

* feat: refine oauth management proxy controls

* fix: preserve oauth refresh state and tighten oauth rate limiting

* fix: satisfy codeql oauth rate limiting

* fix: address oauth review comments

* fix: move oauth sensitive limits into prehandlers

* fix: cap oauth quota refresh batch size
This commit is contained in:
Cita
2026-04-06 08:50:19 +08:00
committed by GitHub
parent 287c5aafd6
commit 3edeb6e245
26 changed files with 5407 additions and 694 deletions
@@ -54,7 +54,6 @@ export function resetRequestRateLimitStore(): void {
export function createRateLimitGuard(options: RateLimitOptions) {
const message = options.message || DEFAULT_MESSAGE;
return async function rateLimitGuard(request: FastifyRequest, reply: FastifyReply) {
const nowMs = Date.now();
pruneExpiredEntries(nowMs);