mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
pg-boss does not deduplicate by payload, so each click on the manual "Backup now" button enqueues a fresh data-backup job. Without a rate-limit, an impatient admin (or compromised admin session via XSS or token theft) can stack dozens of identical fan-out-per-user jobs on the queue. Three runs per minute per admin is plenty for ad-hoc snapshots — the weekly cron in `reminder-worker` already carries the regular cadence. Closes H3 from .planning/phase-6-code-review-findings.md (also addresses M-1 from .planning/phase-6-security-findings.md). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>