[GH-ISSUE #7134] TypeSafe address should follow the same rules as any other Base URL #3985

Closed
opened 2026-10-21 06:09:18 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Follow-up to #7084. A TypeSafe connection with a custom address accepts plain http:// only for localhost or a loopback or private-network IP literal (isLocalAddressHostname). Local host names such as host.docker.internal, nas, *.local and *.internal are refused with needs_https. That blocks the normal Docker setup, where a server on the host machine is reached through host.docker.internal.

Expected:

  • Use the same local-address rule as the rest of Marinara (isLocalInferenceBaseUrl).
  • Keep the safety: when the key is sent over plain http to a host name, check that the name resolves only to loopback or private addresses, and pin the request to that address, so the TypeSafe key never goes unencrypted to a public server.
  • Reword the error to name local IPs (192.168.x.x, 10.x.x.x) and local names (host.docker.internal).

Reported on Discord by a user of #7084.

Originally created by @SpicyMarinara on GitHub (Oct 5, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7134 Originally assigned to: @SpicyMarinara on GitHub. Follow-up to #7084. A TypeSafe connection with a custom address accepts plain `http://` only for `localhost` or a loopback or private-network IP literal (`isLocalAddressHostname`). Local host names such as `host.docker.internal`, `nas`, `*.local` and `*.internal` are refused with `needs_https`. That blocks the normal Docker setup, where a server on the host machine is reached through `host.docker.internal`. Expected: - Use the same local-address rule as the rest of Marinara (`isLocalInferenceBaseUrl`). - Keep the safety: when the key is sent over plain http to a host *name*, check that the name resolves only to loopback or private addresses, and pin the request to that address, so the TypeSafe key never goes unencrypted to a public server. - Reword the error to name local IPs (192.168.x.x, 10.x.x.x) and local names (host.docker.internal). Reported on Discord by a user of #7084.
bsakaguchi 2026-10-21 06:09:18 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Author
Owner

@SpicyMarinara commented on GitHub (Oct 5, 2026):

Decision: instead of extending the TypeSafe-only https rule to local names, we're dropping it. Every other connection lets you point its Base URL anywhere, so the TypeSafe address now follows the same URL checks and local-network setting as those. See #7137.

<!-- gh-comment-id:6001445050 --> @SpicyMarinara commented on GitHub (Oct 5, 2026): Decision: instead of extending the TypeSafe-only https rule to local names, we're dropping it. Every other connection lets you point its Base URL anywhere, so the TypeSafe address now follows the same URL checks and local-network setting as those. See #7137.
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#3985
No description provided.