[GH-ISSUE #7911] [Feature]: Owner-only access status and unsafe-setting warnings #4344

Closed
opened 2026-10-22 04:05:52 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Gunterlie on GitHub (Oct 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7911

Originally assigned to: @Gunterlie on GitHub.

Parent: #7909 (step 1)

What problem does this solve?

The owner cannot see which requests can enter without authentication. An unsafe setting stays invisible until someone else finds the installation.

Proposed solution

  • Add an owner-only access status in Settings and a startup log summary. Show the bind address, whether authentication is configured, active allowlists, trusted-interface bypasses and unsafe overrides. Never return passwords, tokens or other secrets.
  • Calculate the status with the same policy function that the request middleware uses, so the status cannot drift from enforcement.
  • Show the warning through the shared top banner (today CsrfOriginWarningBanner.tsx; see #7923), on every page for the owner, not only in Settings: owners who believe they are safe have no reason to open Settings.
  • Show a persistent warning when the configuration permits unauthenticated remote access or broad trust. Link to the setting and its safer replacement.
  • Show configuration facts separately from network reachability. 0.0.0.0 does not prove internet exposure. HTTPS, a domain name or forwarding headers do not prove that a proxy authenticates visitors. Show unknown external protection as unknown.

Acceptance

  • Access status matches the effective middleware policy (one shared function, covered by a regression).
  • The status never claims that an installation is internet-safe from local network information alone.
  • The status endpoint is owner-only and returns no secrets.
  • Unsafe overrides produce an owner-visible warning. A remote visitor cannot dismiss it or acknowledge a risk.
  • Localized UI copy (English catalog) for all new labels and warnings.
Originally created by @Gunterlie on GitHub (Oct 20, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7911 Originally assigned to: @Gunterlie on GitHub. Parent: #7909 (step 1) ## What problem does this solve? The owner cannot see which requests can enter without authentication. An unsafe setting stays invisible until someone else finds the installation. ## Proposed solution - Add an owner-only access status in Settings and a startup log summary. Show the bind address, whether authentication is configured, active allowlists, trusted-interface bypasses and unsafe overrides. Never return passwords, tokens or other secrets. - Calculate the status with the same policy function that the request middleware uses, so the status cannot drift from enforcement. - Show the warning through the shared top banner (today `CsrfOriginWarningBanner.tsx`; see #7923), on every page for the owner, not only in Settings: owners who believe they are safe have no reason to open Settings. - Show a persistent warning when the configuration permits unauthenticated remote access or broad trust. Link to the setting and its safer replacement. - Show configuration facts separately from network reachability. `0.0.0.0` does not prove internet exposure. HTTPS, a domain name or forwarding headers do not prove that a proxy authenticates visitors. Show unknown external protection as unknown. ## Acceptance - [ ] Access status matches the effective middleware policy (one shared function, covered by a regression). - [ ] The status never claims that an installation is internet-safe from local network information alone. - [ ] The status endpoint is owner-only and returns no secrets. - [ ] Unsafe overrides produce an owner-visible warning. A remote visitor cannot dismiss it or acknowledge a risk. - [ ] Localized UI copy (English catalog) for all new labels and warnings.
Author
Owner

@Gunterlie commented on GitHub (Oct 21, 2026):

@Gunterlie is taking this, with agents. Plan: first one shared access-policy function on the server (the access middleware and this status use the same calculation, no behavior change), plus a shared top banner (see #7923). Then this issue: owner-only status in Settings and the unsafe-access warning on every page.

<!-- gh-comment-id:6310508733 --> @Gunterlie commented on GitHub (Oct 21, 2026): @Gunterlie is taking this, with agents. Plan: first one shared access-policy function on the server (the access middleware and this status use the same calculation, no behavior change), plus a shared top banner (see #7923). Then this issue: owner-only status in Settings and the unsafe-access warning on every page.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4344
No description provided.