Skip to content

Remove the already-paired pairing entry - #192

Merged
balloob merged 1 commit into
Sendspin:mainfrom
balloobbot:remove-already-paired
Sep 1, 2026
Merged

Remove the already-paired pairing entry#192
balloob merged 1 commit into
Sendspin:mainfrom
balloobbot:remove-already-paired

Conversation

@balloobbot

Copy link
Copy Markdown
Contributor

Removes the already-paired entry into code-based pairing: a code-based pairing now runs over a Sentinel-keyed connection only, and the long-term PSK no longer admits the 'pairing' activity.

A server has no need to run a pairing round over an existing credential: to establish a fresh one it unpairs (server/unpair) and pairs again. The Pairing PSK flow is unaffected - it still enters from any open connection by re-handshaking to the pairing PSK first, since that is an operator-token-driven fresh pairing.

Device-presence verification rode exclusively on this entry and is removed with it. If demand appears, it can come back as its own feature.

Split out of #183 (see the pairing.md discussion) so it can be discussed on its own. Overlaps textually with #183; whichever merges second needs a rebase.

A code-based pairing runs over a Sentinel-keyed connection only. A server that wants a fresh credential unpairs and pairs again; the long-term PSK no longer admits the 'pairing' activity. Device-presence verification rode on this entry and goes with it; it can return if there is demand.

Co-Authored-By: Claude Fable 5 <[email protected]>

@maximmaxim345 maximmaxim345 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was thinking a bit more of whether we should keep or drop key rotations.
I think use of key rotations is more theoretical than practical:

  • If you know you have a compromised client, the best mitigation is not to rotate the key (since you can accidentally just rotate the key of the impostor) but unpairing it from the server, and probably also updating/factory resetting the client.
  • What I can see as a proper process is to regularly rotate keys, that will solve part of my first point and will in addition be probably even more secure. But that comes at a severe disadvantage for low cost clients: each rotated key means rewriting persistent storage, causing increased wear.

@balloob
balloob merged commit d0435e1 into Sendspin:main Sep 1, 2026
1 check passed
balloobbot pushed a commit to balloobbot/spec that referenced this pull request Sep 1, 2026
The keep-the-entry revert predates Sendspin#192; replaying it over a main that
merged Sendspin#192 resurrected the removed text.

Co-Authored-By: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants