Skip to content

Relay pairing: pair a device or PC by typing a short code, with a fingerprint check #2811

Closed

Description

@devswha

Problem

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

  1. added a commit that references this issue on Nov 5, 2026
    e9853cb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions