[GH-ISSUE #3665] Docker Desktop localhost is blocked by the default IP allowlist #1978

Closed
opened 2026-10-21 05:44:19 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Jul 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3665

Originally assigned to: @SpicyMarinara on GitHub.

Problem

The v2.3.1 staging container is healthy, but opening it through the published localhost port on Docker Desktop for macOS returns 403 Forbidden for the app shell. Docker Desktop presents the host as the container's default gateway (192.168.215.1 in the reproduced environment), outside the conventional 172.16.0.0/12 bridge range trusted by BYPASS_AUTH_DOCKER=true.

This blocks the documented default Docker update/install path even though /api/health remains available.

Reproduction

  1. Run the staging container with the documented Compose environment.
  2. Open the published localhost port.
  3. Observe /api/health returns 200 while / returns 403.
  4. Inside the container, /proc/net/route identifies the requesting host address as the exact default gateway.

Acceptance criteria

  • Docker Desktop and custom-address-pool localhost traffic works by default.
  • Trust is limited to the exact detected gateway, not a broad private CIDR.
  • BYPASS_AUTH_DOCKER=false still disables the bypass.
  • REQUIRE_AUTH_FOR_DOCKER_PROXY=true still rejects forwarded clients without configured authentication.
  • User-facing access-control documentation matches the behavior.

Owner: @SpicyMarinara

Originally created by @SpicyMarinara on GitHub (Jul 16, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3665 Originally assigned to: @SpicyMarinara on GitHub. ## Problem The v2.3.1 staging container is healthy, but opening it through the published localhost port on Docker Desktop for macOS returns `403 Forbidden` for the app shell. Docker Desktop presents the host as the container's default gateway (`192.168.215.1` in the reproduced environment), outside the conventional `172.16.0.0/12` bridge range trusted by `BYPASS_AUTH_DOCKER=true`. This blocks the documented default Docker update/install path even though `/api/health` remains available. ## Reproduction 1. Run the staging container with the documented Compose environment. 2. Open the published localhost port. 3. Observe `/api/health` returns 200 while `/` returns 403. 4. Inside the container, `/proc/net/route` identifies the requesting host address as the exact default gateway. ## Acceptance criteria - Docker Desktop and custom-address-pool localhost traffic works by default. - Trust is limited to the exact detected gateway, not a broad private CIDR. - `BYPASS_AUTH_DOCKER=false` still disables the bypass. - `REQUIRE_AUTH_FOR_DOCKER_PROXY=true` still rejects forwarded clients without configured authentication. - User-facing access-control documentation matches the behavior. Owner: @SpicyMarinara
bsakaguchi 2026-10-21 05:44:19 +07:00
  • closed this issue
  • added the
    in-pr
    label
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#1978
No description provided.