matrix2051 icon indicating copy to clipboard operation
matrix2051 copied to clipboard

Support encrypted rooms

Open progval opened this issue 4 years ago • 20 comments

This will have to wait for libolm (or an alternative) to be documented; ideally with an Elixir/Erlang binding.

progval avatar Oct 23 '21 16:10 progval

This might be useful to allow access to attachements: https://github.com/seirl/matrix-decryptapp

Quoting weechat-matrix's README:

  • In the browser by using matrix-decryptapp. This is a static website which cannot see your data, all the decryption happens on the client side. You can either host it yourself or directly use the instance hosted on seirl.github.io. This weechat trigger will convert all your emxc:// URLs into clickable https links:

    /trigger addreplace emxc_decrypt modifier weechat_print "" ";($|[^\w/#:\[])(emxc://([^ ]+));${re:1}https://seirl.github.io/matrix-decryptapp/#${re:2};"
    

progval avatar Dec 05 '21 18:12 progval

May be very useful to avoid dealing with OLM directly: https://github.com/matrix-org/pantalaimon

progval avatar Feb 08 '22 18:02 progval

I started working on a branch to support Pantalaimon: https://github.com/progval/matrix2051/tree/pantalaimon

Unfortunately the version of Pantalaimon in Debian is unusable (because of https://github.com/matrix-org/pantalaimon/issues/109 ) so I am not interested in testing this further myself for the moment. Feedback is welcome, though.

progval avatar Nov 13 '22 12:11 progval

Oh thank you this was exactly what I'm looking for.

I even did already setup Pantalaimon, I just need to check that I change the port that matrix2051 with Pantalaimon.

I will get back in a few days.

Br,

Björn

Thaodan avatar Nov 13 '22 14:11 Thaodan

I started working on a branch to support Pantalaimon: https://github.com/progval/matrix2051/tree/pantalaimon

Unfortunately the version of Pantalaimon in Debian is unusable (because of matrix-org/pantalaimon#109 ) so I am not interested in testing this further myself for the moment. Feedback is welcome, though.

Can you rebase the branch?

Thaodan avatar Dec 18 '22 16:12 Thaodan

done

progval avatar Dec 18 '22 16:12 progval

What works:

  • Channel name
  • User name in channels

Warnings about:

channel, channel, channel commas are not allowed in channel names (ISUPPORT MAXTARGETS/TARGMAX not implemented?)

Thaodan avatar Dec 21 '22 18:12 Thaodan

the warning is unrelated, it happens when IRC clients send too many joins at once

progval avatar Dec 21 '22 19:12 progval

I noticed there still an unencrypted connection that is from time to time (at least it appears in the client list).

Thaodan avatar Dec 22 '22 05:12 Thaodan

I don't understand. Unencrypted connection from what to what?

progval avatar Dec 22 '22 08:12 progval

An unencrypted connection from Matrx2051 to the matrix server.

Thaodan avatar Dec 22 '22 09:12 Thaodan

oh you mean it's not going through Pantalaimon? Right, I'll try to look into it

progval avatar Dec 22 '22 09:12 progval

Val Lorentz @.***> writes:

oh you mean it's not going through Pantalaimon? Right, I'll try to look into it

It is but first there's an unencrypted that is opened I think.

Thaodan avatar Dec 22 '22 09:12 Thaodan

Val Lorentz @.***> writes: oh you mean it's not going through Pantalaimon? Right, I'll try to look into it It is but first there's an unencrypted that is opened I think.

Is this the issue that needs to be fixed before you can merge the proxy feature?

Thaodan avatar Feb 16 '23 21:02 Thaodan

Yes, and I'm also still unhappy with the realname hack. A CLI option might be better

progval avatar Feb 16 '23 21:02 progval

Val Lorentz @.***> writes:

Yes, and I'm also still unhappy with the realname hack. A CLI option might be better

The realname "hack" actually works quite good in my opinion as you can define it per connection, it fits to the design that the service itself is stateless until an option is passed to via the login parameters.

Maybe there's a better parameter to put the proxy option into.

Thaodan avatar Feb 16 '23 22:02 Thaodan

Any news on this issue? Maybe better to have a solution even if it isn't perfect.

Thaodan avatar Aug 08 '23 12:08 Thaodan

Actually I haven't got Pantalaimon setup yet (I ran into some unrelated issues). I'd appreciate if you could pinpoint specific issues you have with Pantalaimon along with a tcpdump

progval avatar Aug 08 '23 12:08 progval

Someone tells me Pantalaimon + Matrix2051 (pantalaimon branch, ea1f13473a6089c8b73837ea99e1a32932116a50) works for them. So it's probably just a matter of deciding the best way (GECOS vs PASS vs CLI argument vs ???) to tell M51 how to connect to a proxy.

progval avatar Feb 16 '24 20:02 progval

Yeah. For me that kind of setup is working fairly well.

Thaodan avatar Feb 23 '24 11:02 Thaodan