mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2059] [Issue]: hostable remote runtime lacks legacy API abuse/body/cache controls #1006
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#1006
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/2059
Originally assigned to: @cha1latte on GitHub.
Summary
The hostable Rust Remote Runtime does not visibly preserve the legacy server's API abuse, body-size, and no-store cache controls for API paths.
Expected behavior
Remote Runtime HTTP paths should preserve legacy-equivalent controls for hot or privileged API traffic:
429withRetry-After.Cache-Control: no-storeor equivalent no-cache policy for JSON API responses where legacy applied it.Actual behavior
Target 3 static parity tracing found the remote client can consume
Retry-Aftermetadata if a server sends it, but no hostable Rust source for legacy-equivalent rate limits, body-size limits, or default no-store JSON API policy was found in this slice.Legacy evidence:
packages/server/src/middleware/rate-limit.tsdefined global and route-specific API limits, including haptic/sidecar-sensitive paths.packages/server/src/app.tsconfigured body/upload size policy and applied no-store behavior for API JSON responses.Refactor evidence:
src/shared/api/remote-runtime.tspreserves retry metadata fromRetry-After.src-tauri/src/http_server.rsand shared remote client code did not find a Rust rate-limit/429 source or the same default body/cache policy.Steps to reproduce
/api/invoke/ dedicated API requests.mainserver API rate-limit/body/cache policy.Impact area
Environment
refactor, Target 3 rescan on 2026-06-04Logs, screenshots, or video
No live abuse/body repro attached. This is static parity evidence from Target 3.
Regression notes
Legacy
mainhad explicit API rate-limit/body/cache controls. Refactor Remote Runtime may still be safe through other deployment limits, but the legacy-equivalent app-owned controls were not found.Additional context
Related tracker: #1904 target 3 and #2050. This should be split or repaired before Target 3 moves to
on_par.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: