mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#8049
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8003
Author: @Gunterlie
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @Gunterlie
Base:
staging← Head:fix/access-hardening-7914📝 Commits (6)
81f2145fix(server): harden Tailscale trust, health details and half-set Basic Auth (#7914)cfb516efix(server): match Tailscale interface per platform and follow the bind addresse606f7bfix(server): require Tailscale's IPv6 range on generic VPN interface namesd9a6371fix: type the short health reply and simplify Tailscale docs wordingae3bad4fix: recognise a protected Marinara in the launcher and pin the Tailscale platform in tests8f1658fchore: keep .env.example access notes as on staging📊 Changes
14 files changed (+152 additions, -47 deletions)
View changed files
📝
docs/CONFIGURATION.md(+1 -1)📝
docs/REMOTE_ACCESS.md(+2 -2)📝
packages/client/src/App.tsx(+6 -4)📝
packages/server/src/app.ts(+7 -8)📝
packages/server/src/config/runtime-config.ts(+1 -1)📝
packages/server/src/middleware/access-policy.ts(+1 -1)📝
packages/server/src/middleware/basic-auth.ts(+6 -0)📝
packages/server/src/middleware/ip-allowlist.ts(+32 -3)📝
scripts/check-port-available.mjs(+9 -10)📝
scripts/regressions/access-policy.regression.ts(+33 -5)📝
scripts/regressions/access-status.regression.ts(+2 -2)📝
scripts/regressions/docker-proxy-auth.regression.ts(+16 -2)📝
scripts/regressions/launcher/existing-server.regression.mjs(+14 -1)📝
scripts/regressions/robustness-runtime-diagnostics.regression.ts(+22 -7)📄 Description
Part of #7914 (parent #7909).
Why
Secure defaults should not depend on guesses. Three places were looser than they need to be:
/api/healthreturned version and runtime details to every caller, including ones that are not allowed in.BASIC_AUTH_USERwithoutBASIC_AUTH_PASS, or the reverse) was silently ignored, so you could believe a login was active when it was not.What changed
tailscaleon Linux/Windows; on macOS (utun*) and Android (tun*) the interface must also carry Tailscale's IPv6 range. The access status follows the same rule and the bound address.BYPASS_AUTH_TAILSCALE=true|falseworks as before. A custom Linux tun name now needs a login orBYPASS_AUTH_TAILSCALE=true(documented)./api/health: callers that are not allowed in get only{ "status": "ok" }(still HTTP 200, so uptime monitors keep working). The client's update check andHealthResponsehandle the short reply.check-port-available.mjstreats that exact short reply as "Marinara already runs (sign-in required)" and exits 2, so a protected install is not reported as "port in use". The script never sends credentials. This contract change was a maintainer decision during the gate review (another body still exits 1)./api/healthroute is tested withMARINARA_ANDROID_SECRET.REMOTE_ACCESS.mdandCONFIGURATION.mdupdated.Manual verification
/api/healthand confirm the reply is only{"status":"ok"}.HOST, start Marinara, runstart.shagain and confirm it says "already running (sign-in required)".BASIC_AUTH_USERand confirm the startup log warns about the missingBASIC_AUTH_PASS.Review
Opus gate review: ready after fixes; all fixed (launcher contract, platform-testable rule, tun-name docs, Android health test). Local CodeRabbit: 3 runs; findings fixed except one rejected: "do not identify a service by status alone" on
check-port-available.mjs— this is the maintainer-chosen contract above.Local checks: regressions
access-,docker-proxy,robustness-runtime,launcher/existing-server,basic-auth,health, andpnpm checkpass.Follow-up
docs-i18n:
REMOTE_ACCESS.mdandCONFIGURATION.mdneed the same change in the translated packs; I will open that PR after this one merges.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.