You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Relay pairing: pair a device or PC by typing a short code, with a fingerprint check #2811
Pairing a device through the Ovis relay needs the PC's QR code or its full pairing link: the link carries the PC's relay ID and public key, and the six-digit code alone is not enough. That works for a phone with a camera. It is awkward for a desktop or laptop (no camera pointed at the other screen), for a second PC, or for reading the code aloud to someone at the other machine: the long link has to be copied across some other channel first.
What we want
Pair by typing a short code shown on the other screen:
The PC shows a short code (about 8 characters, easy to read and type, no ambiguous characters) next to the QR code.
On the device being paired (desktop app, browser at app.ovis.sh, phone app, or another PC adding a relay PC), Pair with a code takes just that code.
Someone who sees the encrypted traffic, or the relay itself, cannot try codes offline: a wrong guess costs a live attempt, and the PC's existing limits (expiry, tries per code, pairings per window) still apply.
The relay cannot swap in another PC's key during the lookup: after pairing both screens show the same short fingerprint, and the device asks the user to confirm it matches before saving the PC.
Re-pairing with a PC whose key changed is refused unless the user confirms the change.
The QR code and link keep working as they do today.
Activity
feat(relay): pair a device by typing a short code (CPace) (devswha#2883)