Expand description
A server’s id: its name for app passkeys, apart from its key.
The endpoint key is what a client pins and proves on every connect, and it may be replaced (a lost state directory, a rotated key). A passkey is made for a relying party and synced with it to the user’s other devices, so the server needs a name that outlives its key: the server id. It is made once, from 80 random bits, and kept in the state directory beside the key.
It is written as lowercase RFC 4648 base32: 16 characters of a-z
and 2-7, with no padding (80 bits are 16 characters exactly), a DNS
label as it is. It is short because a password manager shows it in
the passkey’s domain, and it says nothing about the server: it goes
wherever its passkeys go.
Structs§
- Invalid
Server Id - Why a string is not a server id.
- Server
Id - A server’s id, as
ServerId::parsechecked it.
Constants§
- APP_
RP_ DOMAIN - The domain every server’s app passkeys are made under: a server’s
relying party is
<server id>.spoolframe.app(PX-14). Kept here, the crate every client and the admin API share, so all of them name the same one. - SERVER_
ID_ BYTES - Random bytes in a server id.
- SERVER_
ID_ LEN - Characters in a server id: 80 bits in 5-bit characters.