mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1742] [MERGED] fix: enable BYPASS_AUTH_DOCKER in docker-compose for host browser access #5253
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5253
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1742
Author: @felorhik
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/docker-bypass-auth📝 Commits (2)
bab4c89fix: enable BYPASS_AUTH_DOCKER in docker-compose for host browser access3d194a7fix: bind docker runtime compose port to localhost📊 Changes
3 files changed (+16 additions, -2 deletions)
View changed files
📝
README.md(+7 -0)📝
docker-compose.yml(+2 -1)📝
docs/developer/run-build.html(+7 -1)📄 Description
Linked issue
Fixes #1750
Why this change
When running
marinara-serverviadocker compose up, requests from the host browser arrive at the container from the Docker gateway IP (172.17.0.1), not loopback. The security middleware treated this as a non-loopback remote access attempt and returned a 403 before the CORS layer could add browser-readable headers, so the browser surfaced the failure as a CORS error instead of an auth/configuration error.The fix should preserve same-machine Docker browser access without making unauthenticated remote runtime access broadly available on every host interface.
What changed
BYPASS_AUTH_DOCKER: "true"to the Compose service so host-browser requests that arrive through the Docker bridge can pass the runtime auth gate.127.0.0.1:8787:8787so the default Compose setup is same-machine only instead of host-wide.Refactor impact
Primary owner: remote runtime / Docker deployment
Impact areas reviewed:
docker-compose.ymlREADME.mddocs/developer/run-build.htmlBoundary notes:
Pressure points touched:
Validation
pnpm check:docs,pnpm check:architecture,cargo check --manifest-path src-tauri/Cargo.toml --workspace, and Docker remote-runtime smoke)pnpm checkpasses locally before PR push/handoff, including the unused-code checkpnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
docker compose configand confirmed the published port resolves tohost_ip: 127.0.0.1,published: "8787",target: 8787.docker compose build --progress plain; imagemarinara-engine-server:localbuilt successfully.docker compose up -d; containermarinara-engine-serverstarted successfully.GET http://127.0.0.1:8787/healthreturned{"ok":true,"runtime":"marinara-server","writable":true}with HTTP 200.POST http://127.0.0.1:8787/api/invokewithOrigin: http://localhost:1420,X-Marinara-CSRF: 1, and astorage_listpayload returned[]with HTTP 200.docker psshowed127.0.0.1:8787->8787/tcp, not0.0.0.0:8787->8787/tcp.docker compose downafter the smoke test to stop and remove the test container/network.node D:\dev\Marinara-Engine\.agents\automation\scripts\proof-health.mjs C:\tmp\marinara-pr-1742\scratch\pr-1742-docker-auth-ledger.json; proof health reported ready for risky auth/network work.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence (if applicable)
N/A — no visible UI changes. This is Docker remote-runtime network/auth behavior; runtime proof is captured in the manual verification notes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.