068. A member can speak for a named LAN host, never for a LAN

Status: accepted 2026-10-21 by the owner; built the same day (internal/cred LanGrant, internal/lanhost, internal/lanproxy, shrooms admin lan). Amended the same day after the auditor's review (08-adr-068-review.md in the audit folder) and the owner's answers to it: normal cages stay network-open, and services become local-only when LAN hosts ship. Amended again the same day after the auditor's implementation audit (09-adr-068-implementation.md): the sentences below now say what the code enforces, and members gained LAN aliases for the printer's passive FTPS. Its re-check (10-adr-068-fix-review.md) closed those findings and its own F-39 to F-46 are folded in below. Narrows the "subnet routing" in docs/an-exit-node-for-the-mesh.md, and doesn't change ADR-030's "no exit nodes".

Context

Václav wants to print from home to a Bambu Lab printer in the office, in LAN mode, without the cloud (2026-10-21). The printer can't run shrooms; neither can most cameras, NAS boxes and other appliances he would want reachable. A Bambu client needs:

So one forwarded port per service (ADR-023) isn't enough.

The general answer elsewhere is a subnet router: one member advertises 192.168.10.0/24 and the whole mesh reaches the LAN. That was rejected here, for what it would expose:

Devices that can run shrooms stay members: each has its own keys, can be revoked on its own, and is reached end to end with no gateway in the middle. This is only for devices that can't.

What the grant can and cannot contain

The review's first finding sets the honest frame:

So the grant is not a containment boundary. The gateway is trusted for its own LAN. What this design adds is:

Decision

A member can offer named LAN hosts, one at a time: each with its own mesh name and address, its own list of ports, and a grant signed by the mesh admin. Every member can reach them; sealed cages can't. This is the one way a LAN device reaches the mesh: services become this machine's own ports only.

The host

Names and addresses

The grant

The gateway

Who can reach a host

LAN aliases (added after the audit)

Some applications use the address a device reports, not the one they were given. Bambu Studio is told the printer's mesh address, then opens the camera and the FTPS data connection to the printer's LAN address, which it reads from the printer. From another LAN that address is either nobody, or whatever local device has it (audit F-29; seen 2026-10-21: control worked from home, the camera didn't).

A gateway's lan_hosts it cannot use do not stop the daemon (2026-11-04). They did: a line it refused, or a LAN stack that would not start, failed the mesh, and the daemon exited with every mesh down. On k11 one edited line, made to move Home Assistant from a service to a LAN host, took the machine off the mesh it was being reached over. Now the mesh comes up without LAN hosts, the log says why at error level, and shrooms status gives the reason for each host granted to this gateway. The same rule services and LAN aliases already follow: nothing optional stands between a machine and its own mesh.

Consequences