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#8101
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/8102
Author: @Gunterlie
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @Gunterlie
Base:
staging← Head:feat/7912-remote-login📝 Commits (10+)
15c1128feat(server): stored login, setup code and /login page (#7912)366be8astyle: format remote login changes3196b94feat(server): server-side remote login sessions and review fixes (#7912)201f0b0fix(server): show an error when /login cannot start a sessione06c415fix(server): count wrong passwords per browser behind a local proxy6d12c1ftest(server): wrong passwords on health checks count toward the lockout4901db8fix(server): remote login gate-review fixes (#7912)e3d4d0dfix(server): retry an unreadable login file at the normal interval4ade0dcMerge pull request #8016 from Pasta-Devs/feat/remote-login-7912ed9d67cfeat(server): trust a forward-auth proxy by socket address (#7912)📊 Changes
49 files changed (+3534 additions, -417 deletions)
View changed files
📝
.env.example(+8 -1)📝
Dockerfile(+2 -0)📝
Dockerfile.lite(+2 -0)📝
README.md(+1 -1)📝
docs/CONFIGURATION.md(+6 -3)📝
docs/FAQ.md(+3 -3)📝
docs/REMOTE_ACCESS.md(+84 -74)📝
docs/TROUBLESHOOTING.md(+4 -3)📝
docs/UPGRADING.md(+2 -2)📝
docs/appearance/custom-css-themes.md(+1 -1)📝
docs/data/backup-and-restore.md(+1 -1)📝
docs/game/game-assets.md(+1 -1)📝
docs/home/professor-mari.md(+1 -1)📝
docs/installation/containers.md(+5 -7)📝
docs/installation/ios-pwa.md(+1 -1)📝
docs/installation/macos-linux.md(+2 -2)📝
docs/integrations/haptic-feedback.md(+1 -1)📝
docs/media/music.md(+2 -2)📝
package.json(+1 -0)📝
packages/client/src/App.tsx(+21 -2)...and 29 more files
📄 Description
Linked issue
Closes #7912 (part of #7909)
Why this change
Today the only way to protect a Marinara install that other devices can reach is to put
BASIC_AUTH_USER/BASIC_AUTH_PASSinto.envand restart. Many owners never do that, so their install stays open. The browser Basic Auth dialog also breaks iPhone home-screen apps, and Docker owners must edit files inside a container.This PR makes the safe path the easy one: you set a login once, from the browser, and every other device signs in on a real login page. Local use on the same computer stays passwordless.
What changed
.env: the login is stored hashed (scrypt) inDATA_DIR/.remote-login.json.BASIC_AUTH_*in.envstill wins when set.XXXX-XXXX-XXXX-XXXX) to its log (docker logsfor Docker). You type it on the lockdown page or in Settings to set the login./loginwith server-side sessions: one sign-in per device, a working "Sign out", and the session ends when the password changes. Scripts can still send the Basic Auth header.TRUSTED_AUTH_PROXY=<IP or CIDR>skips the Marinara login for requests from that proxy only. Broad and public ranges are refused.pnpm reset-login(also in the Docker image) removes the stored login and prints a new setup code. It works without a restart.docs/REMOTE_ACCESS.md,CONFIGURATION.md,FAQ.md,TROUBLESHOOTING.md,UPGRADING.mdand the install guides describe the new flow.Sub-PRs merged into the integration branch after local checks and an Opus review gate each: #8016, #8056, #8061, #8070, #8092, #8093.
Release note
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated: each sub-PR ran
pnpm check, server/clienttsc,pnpm localization:checkand the regressionsremote-login,lockdown-setup-security,access-status,access-policy,basic-auth-throttle-security,loopback-proxy-auth-security,route-rate-limitslocally. A Docker friction walk on a dev box found 1 blocker and 21 smaller items; #8092 and #8093 fix all of them.Manual verification notes
docker logssets the login; that device is then signed in./login.docker exec <container> pnpm reset-login: the login is gone at once and a new setup code shows in the log.TRUSTED_AUTH_PROXYset: no second Marinara login; without it, the Marinara login shows.localhost) needs no login.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)A docs-i18n mirror PR follows after this merges.
UI evidence
Screenshots of the login page, lockdown page, Settings → Access and the banner stack are in the sub-PRs (#8061, #8070, #8093).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.