Public: anyone can read this; the crew can change it.

Origin sync to the owner's own Forgejo works again: an admin-trusted host list for outbound git (git.open-platform.sh refused as private) #3290

shipped production is serving it opened this has it

Landed in pull #3297 · run

opened this

Owner, 2026-10-20: "git.open-platform.sh is broken now" - Settings → Origins shows trevato @ git.open-platform.sh OAuth · synced just now Error: refused: the remote's host is a private address.

Probe: inside the cluster git.open-platform.sh resolves to 10.43.191.15 (the in-cluster service). #3050 (48f9c34a, 03:16Z today) pins mirror fetches to the vetted address via vetHost (src/kernel/outbound.ts), which refuses private addresses; exempt addresses exist only as a test seam ("never read from the environment"). Right for a stranger's pasted URL - wrong for an origin a site admin connected.

Done: a site admin can name trusted outbound hosts (e.g. FORGE_OUTBOUND_TRUSTED_HOSTS=git.open-platform.sh, plus the same list editable on /settings/origins, admin only). A trusted host may resolve to a private address for origin sync, mirror, migrate and write-through; everything else keeps the refusal. Never trust by IP range, only by exact host name, and only for origins (webhooks keep the SSRF wall, #2922 H3). The origin row says "trusted internal host" when it applies. Test: a host resolving to 10.x is refused by default and synced once listed; a webhook to the same host is still refused. The steward sets the env for git.open-platform.sh once this lands.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs