mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #733] [MERGED] docs(auth): clarify REQUIRE_AUTH_FOR_DOCKER_PROXY scope is 172.16/12 only #4753
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#4753
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/733
Author: @Romuromylus
Created: 5/12/2026
Status: ✅ Merged
Merged: 5/12/2026
Merged by: @Romuromylus
Base:
main← Head:fix/document-proxy-auth-network-scope📝 Commits (1)
cd78658docs(auth): clarify REQUIRE_AUTH_FOR_DOCKER_PROXY scope is 172.16/12 only📊 Changes
3 files changed (+15 additions, -7 deletions)
View changed files
📝
.env.example(+12 -4)📝
docs/CONFIGURATION.md(+2 -2)📝
docs/REMOTE_ACCESS.md(+1 -1)📄 Description
Linked issue
Closes #732
Why this change
REQUIRE_AUTH_FOR_DOCKER_PROXY(added in #724) is internally keyed onisDockerIp(request.ip)which matches 172.16.0.0/12 only — the same CIDRBYPASS_AUTH_DOCKERcovers. On reverse-proxy deployments where the proxy container's IP is in a different RFC 1918 range — Docker Swarm overlays (10.0.0.0/8), Kubernetes pod networks, docker-compose with custom IPAM — the flag is a no-op becauseisDockerProxyForwardedRequestreturnsfalsefor those source IPs.The current docs describe the flag in terms of "Docker reverse proxy or tunnel container" without naming the underlying CIDR, so operators on the affected setups may believe the flag protects them when it doesn't.
This PR is docs-only. It clarifies the scope and points operators on other proxy CIDRs at the existing alternatives that actually work for them.
What changed
.env.example: expand theREQUIRE_AUTH_FOR_DOCKER_PROXYcomment to name172.16.0.0/12explicitly and list the alternatives for non-matching proxies.docs/CONFIGURATION.md: update both the env-var table entry and the prose mention in the "Trust Tailscale / Docker bypass" section with the same CIDR clarification and alternative pointers.docs/REMOTE_ACCESS.md: update the prose mention with the same clarification.No runtime change.
REQUIRE_AUTH_FOR_DOCKER_PROXYbehaves exactly as #724 shipped it.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Docs-only change — no runtime behavior is altered.
.env.example,docs/CONFIGURATION.md(both the env-var table and the prose in the Tailscale/Docker bypass section), anddocs/REMOTE_ACCESS.md.isDockerProxyForwardedRequestinpackages/server/src/middleware/ip-allowlist.tsandisDockerIp(matches172.16.0.0/12) — the docs' new CIDR matches the runtime check.The original finding was reproduced on an EasyPanel Swarm deployment where the reverse-proxy IP presented as
10.11.0.4to the Marinara container —REQUIRE_AUTH_FOR_DOCKER_PROXY=truedid not change request handling, whileALLOW_UNAUTHENTICATED_PRIVATE_NETWORK=false(the alternative the new docs point at) did gate proxy-forwarded traffic correctly.Docs and release impact
Updated:
.env.example,docs/CONFIGURATION.md,docs/REMOTE_ACCESS.md. No CHANGELOG entry — this is a documentation clarification, not a behavior change.UI evidence (if applicable)
No UI changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.