-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
mautrix: declares dep on olm as optional but depends unconditionally #336052
Comments
fwiw mautrix-whatsapp and mautrix-signal are written in Go these days and I'm not sure about their state. That said, wouldn't that break the bridge's ability to work with encrypted rooms? If so, I'd like to see this as opt-out at best since I don't think that no encryption is really the better alternative here. Especially if that happens by flipping a switch which usually goes unnoticed by people not following upstream development closely. |
All of the main bridges are being rewritten in Go. https://mau.fi/blog/2024-h1-mautrix-updates/ The signal and WhatsApp bridges aren't yet ready for release. All of the go bridges will rely on libolm until we can figure out the issues with goolm. We should not disable encryption by default in mautrix. The general consensus in the matrix community is that the attacks soatok resurfaced have been known for a while and are not practically exploitable, thus most people are going to continue using libolm. Migrating to vodozemac is going continue to be fairly gradual. |
We could disable the tests that use libolm so that downstream packages that don’t already pull in |
As of NixOS 24.11, |
I think this issue was about That said, I think an Olm implementation is still required for
So the only alternative you have is |
Goolm is not stable. It should not be used. |
Describe the bug
Currently, on
nixpkgs-unstable
when pulling in the mautrix python package without the encryption option, users get the following error (due to #334638):I believe this happens due to the addition of the encryption deps to mautrix's nativeCheckInputs. A more nuanced approach might be necessary there to avoid opting users into having to allowlist olm in their system configs.
Steps To Reproduce
Steps to reproduce the behavior:
mautrix
with current nixpkgs. In my flake, that is doable withnixosConfigurations.gloria.pkgs.python313Packages.mautrix
Expected behavior
A bare "mautrix" python package without the crypto deps should be installable.
Additional context
I believe the mautrix upstream is currently pretty resistant to moving off libolm, but some mautrix dependents (e.g. heisenbridge) don't need the cryptography stuff. It would make sense to me to make encryption with mautrix fully opt-in.
Notify maintainers
@nyanloutre @Ma27 @sumnerevans @NickCao
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: