[PR #447] [MERGED] docs: add Remote Access guide for Basic Auth and IP Allowlist setup #4622

Closed
opened 2026-10-22 04:09:15 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/447
Author: @cha1latte
Created: 5/5/2026
Status: ✅ Merged
Merged: 5/5/2026
Merged by: @LukaTheHero

Base: main ← Head: claude/hungry-jemison-c3cb1e


📝 Commits (1)

  • 40476da docs: add Remote Access guide for Basic Auth and IP Allowlist setup

📊 Changes

3 files changed (+159 additions, -1 deletions)

View changed files

📝 docs/CONFIGURATION.md (+2 -0)
📝 docs/FAQ.md (+1 -1)
➕ docs/REMOTE_ACCESS.md (+156 -0)

📄 Description

Summary

  • New docs/REMOTE_ACCESS.md — step-by-step walkthrough for getting past
    the safe-by-default 403 lockdown when accessing Marinara from Docker,
    Tailscale, a LAN, or any non-loopback client. Decision table up front,
    then walk-throughs for Basic Auth, IP Allowlist, and the
    ALLOW_UNAUTHENTICATED_PRIVATE_NETWORK bypass — in that order of
    recommendation.
  • One-line cross-references added to docs/CONFIGURATION.md (top of
    Access Control section) and docs/FAQ.md (existing "access from another
    device" entry) so the new guide is discoverable from both reference and
    FAQ entry points.

Why

Recurring user reports of confusion around the 403 when running behind
Docker / Tailscale. The existing CONFIGURATION.md § Access Control
section is dense reference material — accurate but not a walkthrough. This
is a sibling user-guide doc sized for someone who just wants to log in
from their phone and hit the wrong wall. The four ways out of the lockdown
are already implemented in packages/server/src/middleware/{basic-auth,ip-allowlist}.ts;
this PR documents them in walkthrough form, no code changes.

Coordination note

A separate incoming PR from Luka will replace the raw 403 JSON
response with a friendlier error page that links directly to this file.
This doc PR should land first (or alongside) that PR so the deep link
isn't broken on day one. Once wired, the file path
docs/REMOTE_ACCESS.md becomes load-bearing — please don't rename
without coordinating.

Manual verification

  • Open docs/REMOTE_ACCESS.md on the GitHub PR diff view; confirm the
    TL;DR block renders as a blockquote, the decision table renders as
    a table, and all internal anchors (#option-1-basic-auth-recommended,
    #option-2-ip-allowlist, #option-3-private-network-bypass-no-password,
    #serving-over-https) resolve.
  • Click each cross-link in the rendered doc: links to
    CONFIGURATION.md#access-control,
    CONFIGURATION.md#customising-the-private-network-list,
    FAQ.md#how-do-i-access-marinara-engine-from-my-phone-or-another-device,
    TROUBLESHOOTING.md, and installation/containers.md should all
    resolve to the right anchors on main after merge.
  • Open the modified docs/CONFIGURATION.md and docs/FAQ.md files
    on the diff view; confirm the new "see Remote Access" pointer
    lines render and link to the new doc.
  • Skim docs/REMOTE_ACCESS.md end-to-end as a user who has just hit
    a 403; confirm the TL;DR + decision table funnel them to the right
    option within ~30 seconds.

No code changes. pnpm check not required for docs-only edits.

Summary by CodeRabbit

  • Documentation
    • Added comprehensive remote access configuration guide covering three access methods: Basic Auth, IP Allowlist, and private-network bypass, including environment variable setup and troubleshooting.
    • Updated configuration and FAQ documentation with links to the new remote access guide and clarification on access control settings.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/447 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/5/2026 **Status:** ✅ Merged **Merged:** 5/5/2026 **Merged by:** [@LukaTheHero](https://github.com/LukaTheHero) **Base:** `main` ← **Head:** `claude/hungry-jemison-c3cb1e` --- ### 📝 Commits (1) - [`40476da`](https://github.com/Pasta-Devs/Marinara-Engine/commit/40476da72d43d353adae6ae816cbd4e8fab8f678) docs: add Remote Access guide for Basic Auth and IP Allowlist setup ### 📊 Changes **3 files changed** (+159 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/CONFIGURATION.md` (+2 -0) 📝 `docs/FAQ.md` (+1 -1) ➕ `docs/REMOTE_ACCESS.md` (+156 -0) </details> ### 📄 Description ## Summary - New `docs/REMOTE_ACCESS.md` — step-by-step walkthrough for getting past the safe-by-default 403 lockdown when accessing Marinara from Docker, Tailscale, a LAN, or any non-loopback client. Decision table up front, then walk-throughs for Basic Auth, IP Allowlist, and the `ALLOW_UNAUTHENTICATED_PRIVATE_NETWORK` bypass — in that order of recommendation. - One-line cross-references added to `docs/CONFIGURATION.md` (top of Access Control section) and `docs/FAQ.md` (existing "access from another device" entry) so the new guide is discoverable from both reference and FAQ entry points. ## Why Recurring user reports of confusion around the 403 when running behind Docker / Tailscale. The existing `CONFIGURATION.md § Access Control` section is dense reference material — accurate but not a walkthrough. This is a sibling user-guide doc sized for someone who just wants to log in from their phone and hit the wrong wall. The four ways out of the lockdown are already implemented in `packages/server/src/middleware/{basic-auth,ip-allowlist}.ts`; this PR documents them in walkthrough form, no code changes. ## Coordination note A separate incoming PR from Luka will replace the raw 403 JSON response with a friendlier error page that links directly to this file. This doc PR should land first (or alongside) that PR so the deep link isn't broken on day one. Once wired, the file path `docs/REMOTE_ACCESS.md` becomes load-bearing — please don't rename without coordinating. ## Manual verification - [x] Open `docs/REMOTE_ACCESS.md` on the GitHub PR diff view; confirm the TL;DR block renders as a blockquote, the decision table renders as a table, and all internal anchors (`#option-1-basic-auth-recommended`, `#option-2-ip-allowlist`, `#option-3-private-network-bypass-no-password`, `#serving-over-https`) resolve. - [x] Click each cross-link in the rendered doc: links to `CONFIGURATION.md#access-control`, `CONFIGURATION.md#customising-the-private-network-list`, `FAQ.md#how-do-i-access-marinara-engine-from-my-phone-or-another-device`, `TROUBLESHOOTING.md`, and `installation/containers.md` should all resolve to the right anchors on `main` after merge. - [x] Open the modified `docs/CONFIGURATION.md` and `docs/FAQ.md` files on the diff view; confirm the new "see Remote Access" pointer lines render and link to the new doc. - [x] Skim `docs/REMOTE_ACCESS.md` end-to-end as a user who has just hit a 403; confirm the TL;DR + decision table funnel them to the right option within ~30 seconds. No code changes. `pnpm check` not required for docs-only edits. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Added comprehensive remote access configuration guide covering three access methods: Basic Auth, IP Allowlist, and private-network bypass, including environment variable setup and troubleshooting. * Updated configuration and FAQ documentation with links to the new remote access guide and clarification on access control settings. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:09:15 +07:00
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#4622
No description provided.