mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #732] [Issue]: REQUIRE_AUTH_FOR_DOCKER_PROXY scope is unclear for non-172.16/12 deployments #346
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#346
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 @Romuromylus on GitHub (May 12, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/732
Summary
REQUIRE_AUTH_FOR_DOCKER_PROXY(added in #724) is internally keyed onisDockerIp(request.ip)which matches 172.16.0.0/12 only. On setups where the reverse-proxy container's IP is in a different RFC 1918 range — Docker Swarm overlays (10.0.0.0/8), docker-compose with customnetworks:blocks, Kubernetes pod IPs (10.x), or any IPAM override that doesn't use the legacy default bridge — the flag is a no-op. Current docs don't make that scope explicit, so operators on those setups may believe the flag protects them when it doesn't.Expected behavior
Docs for
REQUIRE_AUTH_FOR_DOCKER_PROXYmake the targeted CIDR explicit (172.16.0.0/12) and point operators on other proxy CIDRs at the existing alternatives that work for their setup (BASIC_AUTH_USER/PASS+ALLOW_UNAUTHENTICATED_PRIVATE_NETWORK=false, orIP_ALLOWLISTof the specific proxy IP).Actual behavior
Both
.env.exampleanddocs/CONFIGURATION.md/docs/REMOTE_ACCESS.mddescribe the flag in terms of "Docker reverse-proxy / tunnel container" without naming the underlying CIDR. The runtime check isisDockerIp(request.ip)inpackages/server/src/middleware/ip-allowlist.ts, which matches 172.16.0.0/12 only.Steps to reproduce
BASIC_AUTH_USER/BASIC_AUTH_PASSand setREQUIRE_AUTH_FOR_DOCKER_PROXY=true.isDockerProxyForwardedRequestreturnsfalsefor the proxy's 10.x IP, soisTrustedInterfaceRequestfalls straight through to the unchangedisTrustedInterfaceIppath.Confirmed empirically against me.romyromulus.com (EasyPanel Swarm), where the reverse-proxy IP presents as 10.11.0.4 to the Marinara container.
Environment
mainat7d75993)Logs, screenshots, or video
Not applicable — observable as missing behavior on a proxy IP outside 172.16/12.
Additional context
The PR's threat model in #723 was correctly scoped to the legacy Docker bridge, so this is not a regression. The fix is purely documentation: name the targeted CIDR explicitly so operators on other proxy ranges don't enable the flag expecting coverage it doesn't provide.
Template check