mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4290] [MERGED] Require auth for proxy-forwarded Docker traffic #6320
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#6320
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/4290
Author: @SpicyMarinara
Created: 7/30/2026
Status: ✅ Merged
Merged: 7/30/2026
Merged by: @SpicyMarinara
Base:
staging← Head:security/docker-proxy-auth-default📝 Commits (1)
7558b2csecurity: require auth for proxied Docker traffic📊 Changes
11 files changed (+198 additions, -18 deletions)
View changed files
📝
.env.example(+7 -5)📝
CHANGELOG.md(+4 -0)📝
README.md(+1 -1)📝
docs/CONFIGURATION.md(+1 -1)📝
docs/REMOTE_ACCESS.md(+5 -3)📝
docs/TROUBLESHOOTING.md(+1 -1)📝
package.json(+1 -1)📝
packages/server/src/config/runtime-config.ts(+3 -2)📝
packages/server/src/middleware/basic-auth.ts(+3 -3)📝
packages/server/src/middleware/ip-allowlist.ts(+1 -1)➕
scripts/regressions/docker-proxy-auth.regression.ts(+171 -0)📄 Description
Linked issue
Closes #4284
Why this change
Docker's direct-container convenience bypass should not silently extend to proxy-forwarded traffic. A forwarding header marks a request as crossing a trust boundary, so the safer behavior is to enforce configured authentication and authorization gates unless the operator explicitly selects the legacy compatibility mode.
What changed
REQUIRE_AUTH_FOR_DOCKER_PROXYdefault totruewhile preserving an explicitfalseopt-out.ForwardedandX-Forwarded-*/X-Real-IPheaders as proxied for Basic-auth, IP-allowlist, and privileged-route enforcement.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated proof completed before publication:
pnpm regression:request-securitypnpm checkpnpm version:checkgit diff --check staging...HEADManual verification notes
REQUIRE_AUTH_FOR_DOCKER_PROXY=falsecompatibility override.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)English documentation and
CHANGELOG.mdare updated. Translation follow-up: #4289.UI evidence (if applicable)
Not applicable; the behavior is server middleware and deployment configuration.
Summary by CodeRabbit
Security
Documentation
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.