mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3666] [MERGED] fix: restore Docker Desktop localhost access #6045
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#6045
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/3666
Author: @SpicyMarinara
Created: 7/16/2026
Status: ✅ Merged
Merged: 7/16/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/docker-desktop-localhost-access📝 Commits (2)
e2bb9fafix: restore Docker Desktop localhost accessd3fb73erefactor: preload Docker gateway detection📊 Changes
9 files changed (+107 additions, -31 deletions)
View changed files
📝
.env.example(+13 -13)📝
CHANGELOG.md(+1 -0)📝
README.md(+1 -1)📝
docs/CONFIGURATION.md(+2 -2)📝
docs/REMOTE_ACCESS.md(+5 -5)📝
docs/TROUBLESHOOTING.md(+1 -1)📝
packages/server/src/config/runtime-config.ts(+6 -6)📝
packages/server/src/middleware/ip-allowlist.ts(+67 -3)📝
scripts/regressions/open-issues.regression.ts(+11 -0)📄 Description
Why
The final v2.3.1 staging smoke test found that Docker Desktop for macOS exposes published localhost traffic to the container from its default gateway (
192.168.215.1in the reproduced environment). Marinara trusted only the conventional172.16.0.0/12Docker bridge range, so the healthy staging image returned403 Forbiddenfor/and prevented a documented default install/update path from opening.Fixes #3665.
What changed
/proc/net/routeonce during Docker module initialization.172.16.0.0/12range.BYPASS_AUTH_DOCKER=falseandREQUIRE_AUTH_FOR_DOCKER_PROXY=trueas explicit security controls.Validation performed
pnpm checkpnpm regression— 60 passed, 38 intentional project/viewport skipspnpm regression:issuesafter review refinementspnpm version:checkpnpm credits:checkpnpm guard:installer-artifactspnpm release:notes -- 2.3.1git diff --checkd3fb73e51./api/health200 with2.3.1+d3fb73e51,/200,/manifest.json200.BYPASS_AUTH_DOCKER=false:/api/health200,/403.REQUIRE_AUTH_FOR_DOCKER_PROXY=true: direct/200, forwarded request 403.Manual verification still requested
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.