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#8668
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/8553
Author: @Gunterlie
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @Gunterlie
Base:
staging← Head:feat/docker-trust-warning-8512📝 Commits (4)
d3a816ffeat(server): warn when Docker gateway trust admits devices without a login (#8512)5afa561fix(server): scope the Docker trust warning to gateway-rewriting runtimes (#8512)b6f902bfix(server): do not advise a login when BYPASS_AUTH_DOCKER=true forces the trust (#8512)13ce53bfix(server): ask for a login too when removing BYPASS_AUTH_DOCKER=true is not enough (#8512)📊 Changes
5 files changed (+35 additions, -2 deletions)
View changed files
📝
docs/REMOTE_ACCESS.md(+2 -0)📝
docs/installation/containers.md(+2 -0)📝
packages/server/src/index.ts(+3 -1)📝
packages/server/src/middleware/ip-allowlist.ts(+14 -0)📝
scripts/regressions/access-status.regression.ts(+14 -1)📄 Description
Linked issue
Closes #8512
Why this change
Split from #7914. Inside Docker, Marinara trusts the container gateway while no login is set. The default Compose file publishes on
127.0.0.1:7860, so only the host can reach it. On Docker Desktop, OrbStack and rootless Docker, a port published on all interfaces (-p 7860:7860) makes every LAN device arrive from that gateway, so they get in without a login. The server cannot see the host port mapping. Maintainer decision on #8512: keep the trust, warn louder. Who gets in does not change.What changed
packages/server/src/middleware/ip-allowlist.ts:dockerTrustWarning(peers), built on the existinggetPasswordlessPeers, so it follows the real policy (off once a login,IP_ALLOWLISTorTRUSTED_AUTH_PROXYis set, when Docker bypass is off, or when the server binds to loopback).packages/server/src/index.ts: logs it once at startup withlogger.warn, next to the existing "These visitors get in without a password" line. No request path calls the new code.docs/REMOTE_ACCESS.md(Tailscale and Docker bypass) anddocs/installation/containers.md(Exposing Marinara to your LAN): one short paragraph each.scripts/regressions/access-status.regression.ts: the warning appears with Docker trust and no login, and isnullwith a login.Warning text:
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent runs:
pnpm checkexit 0 (first commit);node ./scripts/run-regressions.mjs --filter access-status1/1 passed; servertsc --noEmitexit 0 after the wording fix. Bite test: withdockerTrustWarningreturningnull, the regression fails. An Opus review found the first wording too broad (rootful Linux Docker keeps the LAN source IP, so those clients get 403); the second commit scopes it.Manual verification notes
docker compose upprints the new warning once at startup and that it disappears after setting a login.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Not applicable (server log and docs).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.