Expand description
The server’s document at its web address: how a device that has
only the address a person typed (sf.example.org) learns the key to
dial.
Iroh dials by key, and a person cannot type 64 hex digits on a TV
remote. A server with admin.public_url set answers
GET https://<its host>/.well-known/spoolframe with
ServerDocument as JSON: what its invite links say of it before a
code is put in them (crate::invite::Invite), and no secret. A
server without public_url is not meant to be found from outside, and
answers 404.
The document is fetched over HTTPS only: the key in it is what the device then dials, and the user compares the fingerprint the QUIC handshake proves with the one the server’s web UI shows before they save it as verified. Over plain HTTP anyone on the path could name their own key.
Structs§
- Server
Document - What a server says of itself at
PATH.
Constants§
- MAX_
AGE_ SECS - How long a device or a proxy may keep the document, in seconds: its addresses change when the server’s network does.
- MAX_
DOCUMENT - The longest document a device reads, in bytes: one with
MAX_HINTSaddresses and relays is a few KiB. - PATH
- Where the document is, at the root of the server’s web origin.