[GH-ISSUE #8791] enforce declared route rate limits and reclaim the stranded pnpm 10 store #8501

Closed
opened 2026-11-07 16:43:22 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8791

Originally assigned to: @SpicyMarinara on GitHub.

Found by the 2026-11-03 release-prep bug sweep of Marinara Engine. Each finding was confirmed by two independent verifiers.

This fixes two release-prep audit findings.

(1) Routes added this release declare rate limits that were never enforced. The rate-limit hook only matched the raw URL against its own table, so /api/access/*, /api/notices, the utility sidecar, game rulesets, Beholder state and sprite rename all fell into the 600/min default. An absolute-form request line (POST http://host/api/generate) also skipped every specific wall: generate, updates/apply, admin/restart and connection tests got 600/min, and /login was not throttled at all.

(2) The switch to pnpm 12 leaves every existing checkout with a dead 2-3 GB .pnpm-store/v10 that pnpm store prune cannot see. On Termux, the first pnpm 12 install can hit ENOSPC while both stores are on disk, and each later start then retries into the same full disk.

There is no linked issue for either finding; one should be opened before the PR is submitted.

🤖 Generated with Claude Code

Originally created by @SpicyMarinara on GitHub (Nov 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8791 Originally assigned to: @SpicyMarinara on GitHub. Found by the 2026-11-03 release-prep bug sweep of Marinara Engine. Each finding was confirmed by two independent verifiers. This fixes two release-prep audit findings. (1) Routes added this release declare rate limits that were never enforced. The rate-limit hook only matched the raw URL against its own table, so /api/access/*, /api/notices, the utility sidecar, game rulesets, Beholder state and sprite rename all fell into the 600/min default. An absolute-form request line (`POST http://host/api/generate`) also skipped every specific wall: generate, updates/apply, admin/restart and connection tests got 600/min, and /login was not throttled at all. (2) The switch to pnpm 12 leaves every existing checkout with a dead 2-3 GB .pnpm-store/v10 that `pnpm store prune` cannot see. On Termux, the first pnpm 12 install can hit ENOSPC while both stores are on disk, and each later start then retries into the same full disk. There is no linked issue for either finding; one should be opened before the PR is submitted. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bsakaguchi 2026-11-07 16:43:22 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8501
No description provided.