[GH-ISSUE #8512] [Feature]: Decide Docker gateway trust when the port is published beyond loopback #8385

Closed
opened 2026-11-07 16:42:37 +07:00 by bsakaguchi · 3 comments
Owner

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

Originally assigned to: @Gunterlie on GitHub.

Split from #7914.

What problem does this solve?

Docker auto-trust treats requests from the container's gateway address as local while no login is set (packages/server/src/services/access-policy.ts, Docker trust branch). The default Compose file publishes on 127.0.0.1:7860, so only the host reaches the container and this is safe.

If an owner changes the mapping to all interfaces (-p 7860:7860) on Docker Desktop or OrbStack, LAN clients reach the container from the gateway address too. With no login set, they are trusted like the host. The server cannot see the host port mapping from inside the container.

Options

  • Keep trust, warn louder: clearer startup log and docs for non-loopback publishing.
  • Stop gateway trust without a login: a fresh Docker install then shows the setup-code page; the code is printed in docker logs. Safer, one extra first-run step.

Acceptance

  • Decide the option.
  • Regression case for the chosen behaviour.
  • Docs (docs/REMOTE_ACCESS.md, docs/CONFIGURATION.md, container docs) and docs-i18n follow-up.
Originally created by @Gunterlie on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8512 Originally assigned to: @Gunterlie on GitHub. Split from #7914. ## What problem does this solve? Docker auto-trust treats requests from the container's gateway address as local while no login is set (`packages/server/src/services/access-policy.ts`, Docker trust branch). The default Compose file publishes on `127.0.0.1:7860`, so only the host reaches the container and this is safe. If an owner changes the mapping to all interfaces (`-p 7860:7860`) on Docker Desktop or OrbStack, LAN clients reach the container from the gateway address too. With no login set, they are trusted like the host. The server cannot see the host port mapping from inside the container. ## Options - **Keep trust, warn louder:** clearer startup log and docs for non-loopback publishing. - **Stop gateway trust without a login:** a fresh Docker install then shows the setup-code page; the code is printed in `docker logs`. Safer, one extra first-run step. ## Acceptance - [ ] Decide the option. - [ ] Regression case for the chosen behaviour. - [ ] Docs (`docs/REMOTE_ACCESS.md`, `docs/CONFIGURATION.md`, container docs) and docs-i18n follow-up.
bsakaguchi 2026-11-07 16:42:37 +07:00
Author
Owner

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

Decision: keep the Docker gateway trust, warn louder. Nothing changes for current Docker users. Scope: a clear startup warning while Docker auto-trust is active and no login is set, plus docs for publishing the port beyond loopback (and a docs-i18n follow-up).

<!-- gh-comment-id:6525901929 --> @Gunterlie commented on GitHub (Oct 30, 2026): Decision: **keep the Docker gateway trust, warn louder.** Nothing changes for current Docker users. Scope: a clear startup warning while Docker auto-trust is active and no login is set, plus docs for publishing the port beyond loopback (and a docs-i18n follow-up).
Author
Owner

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

Done in #8553 (merged into staging).

<!-- gh-comment-id:6528775163 --> @Gunterlie commented on GitHub (Oct 30, 2026): Done in #8553 (merged into staging).
Author
Owner

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

Done in #8553 (merged into staging).

<!-- gh-comment-id:6529887172 --> @Gunterlie commented on GitHub (Oct 30, 2026): Done in #8553 (merged into staging).
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#8385
No description provided.