mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #495] [MERGED] Fix .local provider endpoint validation #4642
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#4642
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/495
Author: @cha1latte
Created: 5/6/2026
Status: ✅ Merged
Merged: 5/7/2026
Merged by: @cha1latte
Base:
main← Head:fix/issue-492-local-hostname📝 Commits (6)
7558245Allow .local provider endpoints6642984Record PR metadata for issue 492 proof2ee9b4dGuard empty mDNS resolution results9df97a1Improve live mDNS visual proof564d803Fix proof page failure stylinge71a96aMerge upstream main into .local provider endpoint fix📊 Changes
4 files changed (+73 additions, -1 deletions)
View changed files
📝
packages/server/src/routes/connections.routes.ts(+3 -0)📝
packages/server/src/services/llm/base-provider.ts(+1 -0)📝
packages/server/src/utils/security.ts(+23 -1)📝
packages/server/test/security-utils.test.ts(+46 -0)📄 Description
Linked issue
Closes #492
Why this change
.localmDNS names, such ashttp://name.local:5001/v1, were rejected withOutbound URL hostname is local or reservedbefore Marinara could reach the local provider..localhostnames on macOS and LAN setups.What changed
allowMdnsoutbound URL policy for.localhostnames..localremains rejected unless the caller opts into mDNS provider behavior..localhostnames to avoid Windows resolving IPv6 link-local addresses first when an IPv4 local service is reachable.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Machine verification performed by Codex:
pnpm --dir packages/server exec tsx ../../scratch/issue-492-local-hostname-repro.ts.local.http://name.local:5001/v1.pnpm --dir packages/server exec tsx ../../scratch/issue-492-real-mdns-provider-check.ts/v1/modelsmock endpoint.VENGEANCE.local, through the OS resolver.http://VENGEANCE.local:<port>/v1/modelsthrough Marinara's realsafeFetchpath and received HTTP 200 with model JSON.pnpm --dir packages/server exec tsx --test test/security-utils.test.tspassed, 14/14 tests.pnpm checkpassed.Visual proof:
scratch/issue-492-live-mdns-proof-page.pngis a real browser screenshot of the livehttp://VENGEANCE.local:<port>/proofpage. The page displays its own.localURL, fetcheshttp://VENGEANCE.local:<port>/v1/models, showsHTTP 200 OK, and renders the raw model JSON returned by the throwaway provider server.No manual-only blocker remains for the core claim; the
.localbehavior was tested locally with an actual OS-resolved.localhostname and a real HTTP response.Docs and release impact
Docs/release notes:
UI evidence (if applicable)
Backend/provider URL fix; no app UI changed.
Visual proof is committed at
scratch/issue-492-live-mdns-proof-page.pngand shows the proof page URL, fetched.localmodels endpoint, HTTP 200 result, and raw model JSON from the live.localprovider verification.Summary by CodeRabbit
New Features
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.