Skip to main content

Module pins

Module pins 

Source
Expand description

pins.list / pins.forget / pins.adopt: the keys and installs this machine has pinned to the names of agents that speak to it from elsewhere (the LAN name pin, and the WAN install pin), and the way to move one.

A pin decides who may speak as an agent, so changing one needs proof. The operator’s own window, proven by the host, may change any of them. An agent’s connection may list the pins (fingerprints only) and adopt a refused LAN key, but only when srv itself finds the key vouched for by the install that hosts the agent (lan_continuity, SPEC_LAN_KEY_CONTINUITY_2026_10_29.md): the caller’s word counts for nothing. forget stays with the window: forgetting a pin makes the next key shown for the name first-seen, which is exactly how an impostor would get in, and it has no proof to ask for. Every change is logged to logs/pin-changes.log, with who made it. forget drops a pin so the next key or install shown for the name is pinned; adopt pins the key or install that was last refused for it.

Enums§

Change 🔒

Functions§

agent_adopt 🔒
An agent’s adopt of a refused LAN key: done only if the install that hosts the agent vouches for it and this machine trusts that install, found by srv now. The exception is a name with no pin yet: its first key can be accepted without a vouch (there is no pin to move), and the acceptance is logged as the agent that made it.
change 🔒
Changes one pin. by is the agent that asked and that the person allowed on a card (pin_ask), and None when the person’s own window makes the change: the log says which, and for an agent’s change it says the person confirmed it.
change_lan 🔒
change_wan 🔒
confirm_shown 🔒
An adoption is of what the screen showed: shown must be the refused key or install srv holds now, or something else was refused in between.
label 🔒
list 🔒
operator 🔒
register

Type Aliases§

Moved 🔒
What a change moved: the pin before and after, as screen labels.