Skip to content
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

Support for end-to-end encryption / olm library integration? #30

Open
tylerjl opened this issue Jul 16, 2022 · 7 comments
Open

Support for end-to-end encryption / olm library integration? #30

tylerjl opened this issue Jul 16, 2022 · 7 comments
Labels
enhancement New feature or request

Comments

@tylerjl
Copy link

tylerjl commented Jul 16, 2022

Hi! Thanks for this project, it's very useful.

Do you have any interest in using this Ruby olm library in order to implement e2e encryption? As it currently stands, I'm able to use this library pretty well, although the client shows up as unencrypted within encrypted rooms. The olm library is pretty old but seems to be explicitly focused on supporting Matrix's use of the algorithm.

@ananace ananace added the enhancement New feature or request label Jul 16, 2022
@ananace
Copy link
Owner

ananace commented Jul 16, 2022

I chatted with some people about maybe getting an up-to-date olm gem built for the crypto purposes, but that seems to not really have gone anywhere.

I've since started looking at maybe hacking together Ruby bindings for matrix-sdk-crypto, since that seems to be a modern and reasonable point to hook into for E2EE. They have FFI bindings as well, so a prototype using the ffi gem could definitely be done.

@tylerjl
Copy link
Author

tylerjl commented Jul 20, 2022

Ah, that seems like a better/more-maintained solution. I haven't done any Ruby/Rust FFI before but I can certainly pitch in with testing and/or light Ruby stuff. I assume there's some useful prior art to help implement the protocol in the current Python libraries.

@14mRh4X0r
Copy link
Contributor

I had started working on FFI bindings to libolm, but real life caught up, and progress has been mostly non-existent since then. The actual FFI declarations are automatically generated through a modified ffi_gen, but it's still missing a user-friendly API for the most part.

@pgiblock
Copy link

pgiblock commented Nov 2, 2023

Thanks for the project, it seemed quite useful until I hit this, and all of our rooms are E2E encrypted. Are there any possible workarounds at the moment?

@ananace
Copy link
Owner

ananace commented Nov 3, 2023

Unfortunately none that I can think of, I haven't personally had the time to dig deeper into matrix-sdk-crypto bindings - neither the magnus ones I started nor ffi.

@14mRh4X0r
Copy link
Contributor

Are there any possible workarounds at the moment?

You could use pantalaimon to handle the E2EE part

@hostingnuggets
Copy link

Hi @tylerjl and @ananace,

E2E encryption in this matrix Ruby SDK would be very useful indeed. Is there any status update on its progress?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants