mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
Review follow-ups on the destination pinning:
- null and "" now mean "no assertion" (MCP clients commonly send null for
optional fields) instead of throwing; the destination still comes only
from server configuration, so this cannot widen anything.
- Operator configuration may name a plain-HTTP loopback service
(localhost, 127.0.0.1, [::1]) for a local or self-hosted gateway/LLM.
Public http:// and lookalike hosts (localhost.attacker.example,
127.0.0.1.nip.io, 10.0.0.1) stay rejected. An argument must still equal
the configured base exactly, so it can never select a loopback port the
operator did not.
- Note: this supersedes ADR-125's "tool argument beats env var" precedence
for RUFLO_X_GATEWAY_URL and SERAPHINA_METALLM_URL; arguments are now
assertions only.
Tests: mcp-service-url-security 37/37 (new: absent overrides, loopback
config and port mismatch, lookalike hosts; 0/false/{} still rejected),
x-federation-tools passes; CLI build clean; env-var precedence audit ok.
Co-Authored-By: RuFlo <ruv@ruv.net>