-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Private messages #69
Private messages #69
Conversation
bdd30ec
to
3c788b9
Compare
dc82f21
to
0e00e78
Compare
@noffle I could pick this up if you can guide a bit. Only api for fetching pm's by users is remaining? |
How would this work if I have multiple devices (with different private keys). Will only a specific device have access to the private message feed? I guess this is the case and it is not ideal. |
@Gronis yes you are correct, that's basically the limitation depending on how we do it, we could support private messages among multiple identities which mitigates this somewhat. the limitation of this approach remains though |
Yea. Most p2p systems with a private key as authenticator have this problem. I have yet to see a good solution. Maybe the user identity and the device key should be separated somehow, and then, different device keys can be added or removed to the user identity by signing from a device which already is associated with the same user identity, while also providing a secret. It would be a p2p 2FA system kind of. Anyways, I'm kind of off topic here. Good discussion anyways. |
Delta chat accomplishes this by transferring private keys across devices with an Autocrypt Setup message |
Hey y'all. I reviewed this code and here are the next steps I see:
After the cabal-core implementation is done, we can figure out the API that will be exposed on cabal-client and implement it there, before threading it up into clients. I really like the idea of having an API that mirrors the existing messages API as much as possible, presenting PM convos as much like channels as makes sense. |
Awesome @noffle ! Very exciting! Re:
I think that on-disk encryption can be useful for some communities, but Cabal isn't billing itself a 'security-first' app to high-risk users. Since it's still very much a beta project I think that storing them as plaintext on the device is sufficient if it's easier to implement (also the better performance is a plus of course!) |
0e00e78
to
f559e07
Compare
I agree! |
Tests are green! I'll merge soon if there's no issues. Do either of you have spoons to review @cblgh @substack? |
@noffle :0 :0 :0 :0 AWESOME!!!!! i'll try to do a review pass rn! gonna get like a pot of chamomille lol |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Alexander Cobleigh <[email protected]>
Co-authored-by: Alexander Cobleigh <[email protected]>
Co-authored-by: Alexander Cobleigh <[email protected]>
Co-authored-by: Alexander Cobleigh <[email protected]>
Co-authored-by: Alexander Cobleigh <[email protected]>
Co-authored-by: Alexander Cobleigh <[email protected]>
Co-authored-by: Alexander Cobleigh <[email protected]>
WOOOOOOOOOOOOOOOO 🎉 🎉 🎉 |
This is a work-in-progress!
This PR adds private messages, that enable two individual users (feeds) to communicate with each other such that other participants in the cabal will sync their messages, but not be able to read them. The messages are encrypted using private-box, which uses chloride.
The cross-stack implementation is tracked by cabal-club/commons#8