[GH-ISSUE #1750] [Issue]: Docker Compose remote runtime fails from host browser without Docker bridge auth bypass #854

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

Originally created by @cha1latte on GitHub (May 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1750

Originally assigned to: @cha1latte on GitHub.

Summary

When marinara-server runs through docker compose up, a browser on the same host can fail to use the Remote Runtime URL because the request reaches the container from the Docker bridge gateway IP instead of loopback.

Expected behavior

A same-machine browser pointed at http://127.0.0.1:8787 should be able to reach the Docker Compose remote runtime without requiring users to configure LAN-style remote auth for the local Docker bridge path.

Actual behavior

The runtime treats the Docker bridge gateway client IP, commonly 172.17.0.1, as non-loopback remote access. The security middleware rejects the request before the CORS layer adds browser-readable headers, so the browser surfaces the failure as a CORS error instead of a clear auth/configuration problem.

Steps to reproduce

  1. Start the remote runtime with docker compose up --build.
  2. Start the web client with pnpm dev.
  3. Set the app Remote Runtime URL to http://127.0.0.1:8787.
  4. Exercise a remote runtime request from the browser client.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: refactor / Docker Compose remote runtime
  • Run mode: Docker runtime plus browser/web client
  • OS + version: Windows host observed; likely any Docker Desktop host using bridge gateway routing
  • Node + pnpm versions: not specific to the client toolchain
  • Rust version, if relevant: not specific to a Rust compiler version
  • Remote Runtime URL configured? yes, http://127.0.0.1:8787
  • Provider, model, or integration, if relevant: not relevant

Logs, screenshots, or video

Browser reports a CORS-style failure. Runtime-side behavior is an auth rejection before CORS headers are added for the browser response.

Regression notes

This is a Docker Compose remote-runtime configuration gap on the refactor branch.

Additional context

The fix should preserve same-machine Docker browser access while avoiding broad unauthenticated exposure on all host interfaces. Compose can enable the Docker bridge auth bypass while binding the published host port to 127.0.0.1.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @cha1latte on GitHub (May 31, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1750 Originally assigned to: @cha1latte on GitHub. ## Summary When `marinara-server` runs through `docker compose up`, a browser on the same host can fail to use the Remote Runtime URL because the request reaches the container from the Docker bridge gateway IP instead of loopback. ## Expected behavior A same-machine browser pointed at `http://127.0.0.1:8787` should be able to reach the Docker Compose remote runtime without requiring users to configure LAN-style remote auth for the local Docker bridge path. ## Actual behavior The runtime treats the Docker bridge gateway client IP, commonly `172.17.0.1`, as non-loopback remote access. The security middleware rejects the request before the CORS layer adds browser-readable headers, so the browser surfaces the failure as a CORS error instead of a clear auth/configuration problem. ## Steps to reproduce 1. Start the remote runtime with `docker compose up --build`. 2. Start the web client with `pnpm dev`. 3. Set the app Remote Runtime URL to `http://127.0.0.1:8787`. 4. Exercise a remote runtime request from the browser client. ## Impact area - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [ ] Chat mode - [ ] Roleplay mode - [ ] Game mode - [ ] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [x] Shared API wrapper or remote runtime routing - [x] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [x] Docs, contributor workflow, or templates ## Environment - Branch or commit: refactor / Docker Compose remote runtime - Run mode: Docker runtime plus browser/web client - OS + version: Windows host observed; likely any Docker Desktop host using bridge gateway routing - Node + pnpm versions: not specific to the client toolchain - Rust version, if relevant: not specific to a Rust compiler version - Remote Runtime URL configured? yes, `http://127.0.0.1:8787` - Provider, model, or integration, if relevant: not relevant ## Logs, screenshots, or video Browser reports a CORS-style failure. Runtime-side behavior is an auth rejection before CORS headers are added for the browser response. ## Regression notes This is a Docker Compose remote-runtime configuration gap on the refactor branch. ## Additional context The fix should preserve same-machine Docker browser access while avoiding broad unauthenticated exposure on all host interfaces. Compose can enable the Docker bridge auth bypass while binding the published host port to `127.0.0.1`. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
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#854
No description provided.