42wim / matterbridge

bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API (mattermost not required!)
Apache License 2.0
6.59k stars 613 forks source link

Matrix: Support for encrypted chatrooms #1187

Open BenWiederhake opened 4 years ago

BenWiederhake commented 4 years ago

The bridge currently doesn't support encryption, because gomatrix doesn't support it, and doesn't plan to support it anytime soon: https://github.com/matrix-org/gomatrix/issues/31#issuecomment-565988610

By now, Rooms on Matrix are encrypted by default, which is why I "reopen" the old issue (#170).

Maybe it's a good idea to switch to mautrix-go, because it supports E2EE, and it's based on gomatrix (so hopefully migration will be easy).

I could try to migrate it myself, but before I put any effort into that I'd first like to hear what @42wim thinks about this.

In case anyone is interested, this is the current situation:

qaisjp commented 4 years ago

Have you tried setting this up? https://github.com/matrix-org/pantalaimon

Not convenient that it uses Python, though.

TheHolyRoger commented 4 years ago

@BenWiederhake have you done any work on this yet? would be happy to move to mautrix-go since gomatrix aren't puling their finger out

BenWiederhake commented 4 years ago

I haven't, because I haven't heard anything from go-matrix. I'd be very happy if you can do this.

TheHolyRoger commented 4 years ago

I had a look last night and it really doesn't look too difficult, and I'm a GO noob... @42wim any thoughts on this? I'd be happy to help out, I learn quick :)

42wim commented 4 years ago

@TheHolyRoger i'm open for PR's to fix this, I don't mind going to mautrix-go but it should also support the extra stuff I've added to matrix-go. I don't have the time at the moment to do this myself.

Mikaela commented 4 years ago

If I understand this blog post correctly, Matrix-org itself isn't using go-matrix anymore having switched to mautrix-go.

BenWiederhake commented 4 years ago

Excellent! Even more reason to switch to mautrix-go.

unode commented 1 year ago

Keeping an eye on this as we would be interested in having support for encrypted rooms. Thanks to everyone making it possible.

BenWiederhake commented 7 months ago

As a workaround, you can use pantalaimon: https://github.com/42wim/matterbridge/wiki/Section-Matrix-%28basic%29#example-with-pantalaimon