feat(trust): add fileless device pairing - #45
Conversation
|
This PR is downgrading the version from 0.2.0, I'd appreciate if you could revert this change. The pairing listener can be blocked indefinitely by a client that connects and then never sends
|
|
Addressed in Changes:
Validation:
|
|
Thanks for the follow up. I found two remaining CLI behavior issues before merge:
Can you make JSON mode non-interactive/JSON-only, and make Also, there's a CI test failing. I fixed it in #44 , you can take a look and fix it in this PR as well. |
|
Thanks, those two commits should fix it : Changes:
|
Summary
Add an experimental fileless trust pairing flow.
Today, the first trust relationship between two devices usually has to be created as a side effect of a file or clipboard transfer. This PR adds a dedicated
yoop trust pairflow so devices can exchangetrusted identities without transferring user content.
This is intended as a proof of concept and needs more real-world testing before being considered fully polished.
What It Adds
yoop trust pair --listento wait for an incoming pairing request.yoop trust pair --host IP[:PORT]to pair directly with a known address.yoop trust pairto scan for pairing listeners on LAN and Tailscale.--deviceconnections.Notes
This is still a POC. The main flow works locally, but it should be tested more across:
Validation
cargo fmt --all -- --checkcargo check -p yoop-coreyoop trust pair --listenyoop trust pair --host