Add USB pairing and restore flow for desktop backup - #79
Merged
Merged
Conversation
`installRestoredKeybundle` verifies the original vault password via GCM before writing storage and arms a one-shot re-wrap. `setPendingCredential` now performs that re-wrap with the new device credential.
Replace `adb forward` with `adb reverse` for USB pairing. Add `POST /usb-hello` loopback handshake and `/api/pair/allow` for tap-to-approve. Mark P6.3 and P6.4 complete; P6.5 deferred.
Add /api/pair/allow endpoint for desktop owner to approve or deny tap-to-approve USB requests. Include usbApproved and usbPending in pair status.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds USB pairing for the desktop backup companion, a full desktop restore flow (pairing mode, controller, restore setup screen, keybundle install/rewrap), and a tap-to-approve USB handshake.
Changes
USB Pairing
UsbLinkservice for USB desktop pairing/api/pair/allow) withusbApproved/usbPendingstatusadb forwardwithadb reversefor USB pairingPOST /usb-helloloopback handshakeRestore Flow
SettingsDialogPairInfofields and settings glyphOther
SettingsDialogandDialogcomponentssetPendingCredentialand rename vault helpers