mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1345] [Issue]: Refactor hostable server is missing legacy remote access security gates #670
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#670
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 @ghost on GitHub (May 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1345
Originally assigned to: @cha1latte on GitHub.
Summary
The Rust hostable runtime does not appear to enforce the legacy remote-access security pipeline: CORS allowlist, Basic Auth, IP allowlist, CSRF/origin checks, security headers, or privileged remote gates.
Classification: Security-sensitive parity regression / fully missing server-side gates
Expected behavior
Remote/hostable access should preserve the legacy Fastify security controls or make an explicit replacement decision before exposing privileged commands.
Actual behavior
Current
marinara-serverexposes permissive CORS and no equivalent server-side auth/CSRF/IP gate. Client-side Basic Auth support exists for remote URLs, but the server does not enforce it.Steps to reproduce
.tmp/refactor-audit-v161/packages/server/src/middleware/*and route gates.src-tauri/src/http_server.rs,src-tauri/src/bin/marinara-server.rs, andsrc-tauri/crates/security/src/lib.rs.Impact area
Environment
07af6d8b)Logs, screenshots, or video
No runtime logs or screenshots. Finding comes from raw-codebase parity inspection.
Regression notes
Legacy behavior/source exists in
origin/staging / v1.6.1 raw codebaseand is tracked indocs/refactor-staging-1.6-feature-gap-audit.md. Current refactor source did not show equivalent behavior at the paths named below.Additional context
Relevant current files:
src-tauri/src/http_server.rs,src-tauri/src/bin/marinara-server.rs,src-tauri/crates/security/src/lib.rs. Legacy evidence:packages/server/src/middleware/basic-auth.ts,csrf-protection.ts,ip-allowlist.ts,privileged-gate.ts,security-headers.ts.Audit report:
docs/refactor-staging-1.6-feature-gap-audit.md.Template check