[PR #5170] [MERGED] test(security): keep backup throttle regression aligned #6656

Closed
opened 2026-10-23 04:12:29 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5170
Author: @SpicyMarinara
Created: 8/17/2026
Status: ✅ Merged
Merged: 8/17/2026
Merged by: @SpicyMarinara

Base: staging ← Head: security/quality-audit-20260817


📝 Commits (1)

  • 81bbc33 test(security): follow live backup rate limit

📊 Changes

1 file changed (+7 additions, -3 deletions)

View changed files

📝 scripts/regressions/request-host-security.regression.ts (+7 -3)

📄 Description

Why

A security and quality audit requested by @SpicyMarinara found that the request-host regression still assumed the former 30/minute backup limit. The live policy intentionally permits 60/minute so Safari-safe backup status polling remains usable, so the stale assertion failed while the limiter itself remained active.

What changed

  • Read the exported backup rate-limit policy in the regression.
  • Exercise every permitted request and require the next request to return HTTP 429.
  • Keep the production limit and all frontend behavior unchanged.

No linked public issue: this is a direct maintainer security-audit follow-up.

Validation

  • Run pnpm check
  • Run the request-host security regression
  • Confirm CodeQL and Security audit checks pass
  • Confirm CodeRabbit review completes

Summary by CodeRabbit

  • Tests
    • Updated regression coverage to validate backup request limits based on the configured maximum.
    • Improved rejection messages to display the applicable request limit dynamically.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/5170 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/17/2026 **Status:** ✅ Merged **Merged:** 8/17/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `security/quality-audit-20260817` --- ### 📝 Commits (1) - [`81bbc33`](https://github.com/Pasta-Devs/Marinara-Engine/commit/81bbc33b409c3d7498ad17ff8631c1dead8a46ab) test(security): follow live backup rate limit ### 📊 Changes **1 file changed** (+7 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `scripts/regressions/request-host-security.regression.ts` (+7 -3) </details> ### 📄 Description ## Why A security and quality audit requested by @SpicyMarinara found that the request-host regression still assumed the former 30/minute backup limit. The live policy intentionally permits 60/minute so Safari-safe backup status polling remains usable, so the stale assertion failed while the limiter itself remained active. ## What changed - Read the exported backup rate-limit policy in the regression. - Exercise every permitted request and require the next request to return HTTP 429. - Keep the production limit and all frontend behavior unchanged. No linked public issue: this is a direct maintainer security-audit follow-up. ## Validation - [ ] Run pnpm check - [ ] Run the request-host security regression - [ ] Confirm CodeQL and Security audit checks pass - [ ] Confirm CodeRabbit review completes <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Updated regression coverage to validate backup request limits based on the configured maximum. * Improved rejection messages to display the applicable request limit dynamically. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:12:29 +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#6656
No description provided.