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#8012
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/7936
Author: @Gunterlie
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @Gunterlie
Base:
staging← Head:fix/lockdown-hints-7914📝 Commits (3)
602aa65fix(server): keep remote lockdown hints on the safe path (#7914)f030ccbfix(server): reword proxied lockdown lede for a single option79b7f5etest(server): assert proxied lockdown JSON has no allowlist advice📊 Changes
2 files changed (+37 additions, -38 deletions)
View changed files
📝
packages/server/src/middleware/basic-auth.ts(+22 -27)📝
scripts/regressions/loopback-proxy-auth-security.regression.ts(+15 -11)📄 Description
Linked issue
Part of #7914 (parent #7909).
Why this change
Every anonymous remote visitor to an install without a login sees the lockdown page. Today that page, the JSON error and the server log offer the bypass flags (
REQUIRE_AUTH_FOR_LOOPBACK_PROXY=false,ALLOW_UNAUTHENTICATED_PRIVATE_NETWORK=true,ALLOW_UNAUTHENTICATED_REMOTE) as fixes. An owner who just wants it to work will pick the shortest one, and that turns protection off. The safe path must be the easy path: these hints now name only setting a login (plus the IP allowlist for direct, non-proxied devices) and link to the docs for everything else.What changed
packages/server/src/middleware/basic-auth.ts:REQUIRE_AUTH_FOR_LOOPBACK_PROXY=false; the lede now says to set a login.ALLOW_UNAUTHENTICATED_PRIVATE_NETWORK=truenote; IP allowlist option stays.docs/REMOTE_ACCESS.md.BASIC_AUTH_USER/BASIC_AUTH_PASS(andIP_ALLOWLISTfor direct requests) plus the docs link. Log uses Pino format specifiers.scripts/regressions/loopback-proxy-auth-security.regression.ts: replaced asserts that required the bypass flags in the page; new asserts check page HTML and JSON contain no=falseand noALLOW_UNAUTHENTICATED, do containBASIC_AUTH_USER, and the proxied page does not offerIP_ALLOWLIST.The docs still explain the bypass flags with their warnings; doc wording is aligned in a separate #7914 PR.
Validation
pnpm checkpasses locally.loopback-proxy-auth-securitypasses; 26/27securityregressions pass.multiplayer-peer-server-securityfails locally withERR_TLS_CERT_ALTNAME_INVALIDin its own TLS client, the same on a clean tree on this machine (environment, unrelated).Local CodeRabbit could not run: the account hit its review limit. The diff was reviewed by hand instead; GitHub CodeRabbit must still pass before merge.
pnpm checkpasses locallyContainer (Docker / Podman) built and ran without issue
Ran the app, clicked through the changes manually
Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
Above manual verification completed (describe below)
Read and followed
CONTRIBUTING.mdManual verification notes
X-Forwarded-For, the page shows only the login steps.docs/REMOTE_ACCESS.md.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)
Server-rendered lockdown page text only; no client UI change.
Summary by CodeRabbit
Security
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.