Archived
The fleet front guarded its admin routes with the loopback socket alone. The socket is the one leg that forges: a DNS-rebinding page is same-origin with its victim's browser and dials through loopback, and a localhost proxy delivers remote clients on loopback sockets carrying the public Host. With CORS open by default, a web page in the operator's browser could unload and park any model, reload the fleet, and read the topology -- disk paths in the body -- from outside the machine. The three-leg rule (loopback socket, no foreign Origin, a Host that names this box) was Server::local_operator's, locked inside Server. Hoist it to server::local_operator(request, bind_host, local_hosts) beside the request whose fields it reads, keep the member as the delegate it now is, and let the fleet's guard call the very same predicate with its own config's host and --allow-host names. One rule, two callers, no forked wording.