mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2068] [Issue]: hostable remote runtime lacks legacy API rate limits #1014
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1014
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Promansis on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2068
Originally assigned to: @cha1latte on GitHub.
Summary
The hostable Rust Remote Runtime does not visibly preserve the legacy server's API rate-limit policy for hot or privileged HTTP paths.
Expected behavior
Hostable Remote Runtime API paths should have legacy-equivalent abuse throttling:
/api/*per-IP request limit.429responses with retry metadata when a client exceeds the limit.Actual behavior
Target 3 parityscan found no hostable Rust rate-limit source,
429source, orRetry-Afteremitter for Remote Runtime API routes. The remote client can consumeRetry-Afterif a server sends it, but this scan did not find a server-side source for that header in the refactor hostable runtime.Legacy evidence:
packages/server/src/middleware/rate-limit.tsdefined a default API rule of 600 requests/minute.RateLimit-Limit,RateLimit-Remaining,RateLimit-Reset, andRetry-After, and returned429after the limit.packages/server/src/app.tsregisteredrateLimitHookfor API requests.Refactor evidence:
src-tauri/src/http_server.rsmaps hostable routes and layers CORS plussecurity_middleware, but this scan found no rate-limit layer/source there.src/shared/api/remote-runtime.tsparsesRetry-AfterintoretryAfterMs, but that only helps if the runtime sends retry metadata.Steps to reproduce
/api/invokeor a dedicated API route from the same client IP.mainAPI routes that returned429withRetry-Afterafter configured route/default limits.Impact area
Environment
refactor/ Target 3 rescan on 2026-06-04; refactor trace at9bcfb164; legacymaintrace at77a30fa4Logs, screenshots, or video
No live repeated-request repro attached. This is static parity evidence from Target 3.
Focused adjacent proof run:
Result: passed, 11 tests. This does not prove rate-limit behavior.
Regression notes
Legacy
mainhad explicit API rate limits enabled by default and documented indocs/CONFIGURATION.md. Refactor Remote Runtime may still be safe behind external proxies, but the legacy-equivalent app-owned limit was not found.Additional context
Split from Target 3 PERF/body/cache parity row:
Acceptance criteria:
429plus retry metadata where expected.Retry-Afterparsing through the remote client error path.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@cha1latte commented on GitHub (Jun 3, 2026):
Fixed in #2073