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#8025
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/7955
Author: @Gunterlie
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @Gunterlie
Base:
staging← Head:feat/access-status-7911📝 Commits (10+)
fec0f8ffeat: owner-only access status and open-access warning (#7911)75e706bMerge remote-tracking branch 'origin/staging' into feat/access-status-7911c53af78fix: model remote devices in the access status (#7911)cce978efix: access status review follow-ups (#7911)3021371fix: bind-aware tailscale check and 403-only owner note (#7911)1cea979fix(server): rate-limit the access status route (#7911)4a0294efix: access status review fixes (#7911)3e548fbfix(client): refresh access status every 5 minutes (#7911)f8a31e9Merge remote-tracking branch 'origin/staging' into feat/access-status-79116c480c1Merge remote-tracking branch 'origin/staging' into feat/access-status-7911📊 Changes
11 files changed (+511 additions, -19 deletions)
View changed files
➕
packages/client/src/components/diagnostics/use-access-warning-banner.tsx(+68 -0)📝
packages/client/src/components/layout/AppBannerHost.tsx(+2 -1)📝
packages/client/src/components/panels/SettingsPanel.tsx(+3 -0)➕
packages/client/src/components/panels/settings/AccessStatusSettings.tsx(+104 -0)📝
packages/client/src/localization/locales/en.json(+37 -0)📝
packages/server/src/index.ts(+10 -0)📝
packages/server/src/middleware/ip-allowlist.ts(+86 -18)➕
packages/server/src/routes/access-status.routes.ts(+32 -0)📝
packages/server/src/routes/index.ts(+2 -0)📝
packages/shared/src/constants/settings-registry.ts(+8 -0)➕
scripts/regressions/access-status.regression.ts(+159 -0)📄 Description
Linked issue
Closes #7911 (parent #7909).
Why this change
Owners cannot see whether other devices reach their Marinara without a password. Installs that were open to the internet ran for weeks without anyone noticing, because nothing in the app said so. This adds one plain place in Settings that tells the owner who can get in without a password, and a banner when that list is not empty. Local use stays passwordless; the goal is that the safe setup is also the easy one to check.
What changed
GET /api/access/status(routes/access-status.routes.ts), owner-only throughrequirePrivilegedAccess. Returns the listen address, whether it is loopback-only, login / admin secret / allowlist state, whether this request came through a proxy, andpasswordlessPeers.passwordlessPeers(middleware/ip-allowlist.tsgetPasswordlessPeers) runs the sameevaluateAccessPolicythe request hooks use on one sample device per kind (internet,privateNetwork,tailscale,docker,proxy), so the summary cannot drift from enforcement. It uses the address the server really listens on (request.server.server.address()), notHOSTfrom.env.tailscaleis listed only when the server listens on all interfaces or on a Tailscale address.index.ts).AccessStatusSettings.tsx, registry entry insettings-registry.ts). Non-owners see "only the owner" on 403; other errors show a short load-failed line.AppBannerHost(use-access-warning-banner.tsx):criticalwheninternetis listed, elsewarning. The banner id follows the visible list, so a dismissed banner returns only when the message changes.en.jsonkeys undersettings.accessStatus.*and the banner.scripts/regressions/access-status.regression.ts: each peer kind on and off, real bind address vs a changedHOST, Tailscale with an injected interface, owner-only gate.Not in this PR: a warning for very broad allowlists such as
0.0.0.0/0(the section only says allowlisted devices get in without a password). Follow-up if wanted.Validation
pnpm checkandpnpm localization:checkpass locally;access-status,access-policy,loopback-proxy-auth-security,docker-gateway-auth-securityregressions pass.Opus adversarial review: findings fixed — real bind address instead of
HOST, Docker sample no longer marked as relayed (a default Docker install without a login now listsdocker), allowlist line, banner severity, real Tailscale test, typed default facts.Local CodeRabbit: round 1, 4 findings — 3 fixed (typed facts instead of a cast, banner id, plainer copy); amber classes kept. Round 2, 3 findings — 2 fixed (Tailscale on a fixed LAN bind, 403-only owner note). Rejected twice: replacing the amber classes with theme tokens — the merged
AppBanneruses the same amber classes on purpose because no--warningtoken exists.GitHub review round (CodeRabbit 4, Dottore 5): 7 fixed in
4a0294e01(status refresh every 5 minutes and on Settings open, startup log uses the real bind address,allowlistpeer kind,proxyonly for loopback/any-address binds, login advice only without a login, clearer 403 text); 2 rejected with reasons in the threads (non-dismissible banner; accent colour instead of amber).This PR and #7952 both add one candidate to
AppBannerHost; whichever merges second resolves a one-line conflict.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
127.0.0.1) shows "only this computer" in Settings → Access status and no banner.HOST=0.0.0.0with no login shows the LAN line and a warning banner, and that setting a login clears both.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)No files under
docs/change.UI evidence (if applicable)
Screenshots at 390 / 768 / 1440 px, light and dark (closed, open, critical, owner-only states) were taken locally. The CLI cannot attach images.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.