LAN backend beside the mesh: MACULA_LAN_ENTRY, LAN-first mesh_call, mesh_watch over both (#11) #12
Loading…
Reference in a new issue
No description provided.
Delete branch "neptunus/p6-lan-backend"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs #11 (mcl-lan P6). The LAN backend beside the mesh, never in place of it.
DECIDED 2026-12-02 "we won't loose the mesh! I just don't want to pitch Martha as "mesh-only"" (Raf)
src/reach_the_lan/lan_entry.ts: theMACULA_LAN_ENTRYcheck (plain http, no user info, origin only, every resolved address private, link-local or loopback). Requests are pinned to the checked address, and a redirect is refused.lan_token.ts: challenge, then a signature over"mcl-lan token request v1" 0x00 ‖ node_id ‖ nonceonly (a nonce that is not 32 bytes is never signed), then the token. It is held in memory and renewed 60 s before expiry and once on a 401.lan_client.ts:call(POST /lan/v1/call with Bearer;$bytesbase64url turned into the tool's standard base64) andhear(SSE).mesh_call: a plain call goes to the LAN first (via: "lan",means: in the clear). Onno_lan_providerit goes to the mesh (via: "mesh"). realm, ucan, prove_ownership, confidential "required" and bytes in args stay on the mesh.mesh_watch(no realm): LAN + mesh together, each event with itsvia. The first copy of (publisher, topic, payload hash) withinDEDUP_WINDOW_MSis kept (Supervisor ruling 2026-12-02). If one path cannot be opened, the other is still heard, undernot_heard.Tests: a local stand-in entry point on 127.0.0.1 that verifies with
NodeKey.verify. Nothing reaches outside, and the DNS lookup is a seam. Mutants: 24/24 killed on the guards.