mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6691] [Feature]: Reviewed server fixes, part 1: routes, middleware, storage recovery, importers, sidecars and SSRF #3746
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#3746
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 @SirAdoni on GitHub (Sep 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6691
Originally assigned to: @SpicyMarinara on GitHub.
Part of the contribution roadmap in #6624 (package D).
What problem does this solve?
A read-through of the server routes and middleware turned up a set of small bugs. None is large on its own, but a few lose data or weaken a safety check, so they seemed worth fixing together:
.pre-shardbackup.config.rateLimitwas not read, and reserved address ranges could be reached throughTRUSTED_PRIVATE_NETWORKSor a cross-origin redirect that kept provider keys..envreload warned about a restart on every save, some chat and conversation routes overwrote fields they did not own, the/rawroute kept running after a disconnect, and the conversation summary ignored its abort and timeout.Proposed solution
Targeted fixes to the existing code, keeping its APIs, names and structure as they are. Every fix has its own regression (
server-hunt-b<N>), so each one can be reviewed, kept or dropped on its own.packages/server/src/routes: backgrounds, backup, capability packages, chat presets, chats, connections, conversation, custom emojis and stickers, fonts, gallery, generate, import, sprites, utility sidecarpackages/server/src/routes/generate: raw route, dry run, agent retry, conversation history and connected context, Lorebook Keeper and expression agent helperspackages/server/src/middleware: IP allowlist, rate limitpackages/server/src/services: sidecar download and process, utility sidecar, SillyTavern importers, auto summary, translation, textual tool-call parser, chats and custom tools storagepackages/server/src/db(file-backed store, background seed),config/runtime-config.ts,utils/security.tsuse-custom-tools.ts),CHANGELOG.md, and a short section in the foundations overview docAlternatives considered
Additional context
staginghas already reworked that code (the joined-select pre-filter and the branch creation rollback).Template check
@SpicyMarinara commented on GitHub (Sep 26, 2026):
Awaiting PR.