Skip to content

Accept HTTP model providers on loopback and private addresses - #868

Merged
SaladDay merged 4 commits into
mainfrom
accept-http-model-providers-on-private-addresses
Oct 25, 2026
Merged

SaladDay merged 4 commits into
mainfrom
accept-http-model-providers-on-private-addresses

Conversation

@SaladDay

@SaladDay SaladDay commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

A model provider base_url may now use HTTP when its host is a loopback or private IP address (127.0.0.0/8, ::1, 10/8, 172.16/12, 192.168/16, fc00::/7), so a local or LAN gateway works without a TLS terminator. A host name still needs HTTPS, because it can resolve to any address; link-local and public addresses still need HTTPS.

  • internal/modelprovider.SchemeAllowed is the one rule. Core admission and the Runtime's frozen-bundle check both use it (the Runtime previously allowed loopback only).
  • The client projection and the Web form accept both schemes and leave the address rule to Core's typed error.
  • The model execution guide notes that loopback is the machine the Harness runs on, which in a Core-managed sandbox is the sandbox itself.

Closes #416.

Checks: go test ./internal/modelprovider/ ./contracts/agents-api/v1/, go test ./internal/api/ -run ModelProvider (services/core), agents-client vitest (execution configuration, saved Agent defaults), Web typecheck and vitest (core errors, system).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@blacksmith-sh

This comment has been minimized.

@SaladDay
SaladDay force-pushed the accept-http-model-providers-on-private-addresses branch from 1fbe0f6 to 74d8c81 Compare October 25, 2026 06:34
A model provider base_url may now use HTTP when its host is a loopback or private IP address, so a local or LAN gateway works without a TLS terminator. A host name still needs HTTPS, because it can resolve to any address. Core admission and the Runtime's frozen-bundle check share the one rule in internal/modelprovider.

Closes #416.
@SaladDay
SaladDay merged commit a8ee0cc into main Oct 25, 2026
25 checks passed
@SaladDay
SaladDay deleted the accept-http-model-providers-on-private-addresses branch October 25, 2026 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow an HTTP base_url for model providers, like OAC_PUBLIC_URL already does

1 participant