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#8096
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/8093
Author: @Gunterlie
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @Gunterlie
Base:
feat/7912-remote-login← Head:fix/7912-friction📝 Commits (7)
891db46fix(docker): ship reset-login in the image, drop the Docker bypass nudge (#7912)bfd7241fix(server): let signed-in browsers manage the login; readable setup code (#7912)f877f28fix(client): Settings login for signed-in devices, sign out here, stacked banners (#7912)dda9625fix(server): print a new setup code when saving the Settings login fails (#7912)526ee25fix(server): hide the setup code only for a trusted proxy; label direct LAN visitors (#7912)1ebf172fix(client): show app banners below the top bar so they leave the composer free (#7912)6ae4098fix(client): stack top toasts below the app banner (#7912)📊 Changes
22 files changed (+858 additions, -262 deletions)
View changed files
📝
Dockerfile(+2 -0)📝
packages/client/src/App.tsx(+15 -2)📝
packages/client/src/components/diagnostics/use-access-warning-banner.tsx(+4 -2)📝
packages/client/src/components/diagnostics/use-refused-device-banners.tsx(+2 -2)📝
packages/client/src/components/layout/AppBannerHost.tsx(+5 -5)📝
packages/client/src/components/panels/settings/AccessStatusSettings.tsx(+34 -12)📝
packages/client/src/components/panels/settings/RemoteLoginSettings.tsx(+156 -31)📝
packages/client/src/components/ui/AppBanner.tsx(+36 -6)📝
packages/client/src/hooks/use-remote-login.ts(+27 -3)📝
packages/client/src/lib/api-client.ts(+2 -1)📝
packages/client/src/localization/locales/en.json(+20 -3)📝
packages/server/src/config/login-credential.ts(+50 -14)📝
packages/server/src/middleware/basic-auth.ts(+234 -129)📝
packages/server/src/middleware/ip-allowlist.ts(+4 -3)📝
packages/server/src/middleware/privileged-gate.ts(+12 -1)📝
packages/server/src/middleware/rate-limit.ts(+4 -2)📝
packages/server/src/routes/access-status.routes.ts(+82 -28)📝
scripts/regressions/access-status.regression.ts(+8 -0)📝
scripts/regressions/lockdown-setup-security.regression.ts(+28 -6)📝
scripts/regressions/loopback-proxy-auth-security.regression.ts(+3 -0)...and 2 more files
📄 Description
Why
The #7912 friction walk found that the remote-login flow breaks for the most common self-hosted setup: Docker. The browser on the Docker host arrives from the Docker gateway, so it is not "this computer". It could not set, change or remove the login, could not manage devices and did not see the owner banners without
ADMIN_SECRET. The walk also found copy, layout and recovery gaps (setup code hard to find and type, lockdown page written for native installs,pnpm reset-loginmissing from the image, banners covering the top bar).This PR fixes the code side. Docs are fixed in a separate PR by another agent.
What changed
ADMIN_SECRETwork as before.GET /api/access/setup-codetells the client whether a code is waiting. This removes the "Only this computer or a signed-in device can add a device" dead end.XXXX-XXXX-XXXX-XXXXfrom an unambiguous alphabet (~79 bits), case-, space- and dash-tolerant, on its own log line and repeated in the refusal warning while no login exists. None whenTRUSTED_AUTH_PROXYtrusts a proxy (only entries the policy accepts count; a list of typos or public ranges still prints a code), where the "no login yet" banners stay hidden too.MARINARA_DOCKER:docker logs <container> 2>&1 | grep "setup code"hint, Option 2 via/app/data/.envor composeenvironment, no gateway address as "your address", no "loopback". Full-height background, wrapping code blocks, no extra footer padding. The setup form keeps the username after a wrong code./login: "Forgot the password?" hint (native, Docker or.envvariant), expired pairing codes get their own message under the field with focus on it, lockouts say "Try again in N minutes". 429 bodies carryretryAfter.pnpm reset-loginships in the Docker image and honoursDATA_DIR(docker exec <container> pnpm reset-login). The Docker log line no longer suggestsBYPASS_AUTH_DOCKER.POST /logout); banner grammar fixed.detail > 1.Base:
feat/7912-remote-login. Part of #7912.Checks
scripts/regressions/): remote-login, lockdown-setup-security, access-status, access-policy, basic-auth-throttle-security, loopback-proxy-auth-security, route-rate-limits — all pass. Form posts sendOriginandSec-Fetch-Site.pnpm localization:checkandpnpm checkpass.Manual verification
docker exec <container> pnpm reset-loginremoves the app login.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.