r/privacy • Matrix.org project lead • Sep 27 '19

verified AMA I'm project lead for Matrix.org, the open protocol for decentralised secure communication - AMA!

Hi, I’m Matthew; the project lead for Matrix.org.

Matrix is an open protocol and open network for decentralised secure communication. The idea is to give everyone total control over their communication by letting them run or select their own server while still participating in a global network, rather than being locked in silos like Signal, WhatsApp, Telegram, Slack etc. Technically speaking, Matrix is an open end-to-end encrypted communication layer for the internet for instant messaging, file transfer, voice/video calls, or any other kind of data you might want to publish and share in realtime (we’ve done IOT telemetry, VR scenegraphs, animated emoji, MIDI…).

The unusual thing about Matrix is that no single server hosts or controls a given conversation - instead, as people talk to folks on other servers, the conversation gets replicated equally across the servers - meaning all the participants equally share ownership over the conversation and its history. There is never a central point of control or authority (unless everyone uses the same server).

Riot.im is probably the best known Matrix client out there, but there are quite a few other clients out there too - as well as decent bridges to IRC, XMPP, Slack, Telegram, Discord and others. Riot is made by New Vector, the company the core team founded in 2017 to help support Matrix development, which also runs the Modular Matrix hosting provider. Meanwhile Matrix itself is managed by the Matrix.org Foundation - a non-profit foundation set up in 2018 to publish and evolve the Matrix Specification as a neutral and independent open standard (and to isolate it from New Vector or other companies in the ecosystem).

We started work on Matrix in 2014, and (finally) exited beta in June 2019 after lots of work iterating on the protocol, how the decentralisation works, end-to-end encryption, and building decent clients like Riot.

Some of the main projects we’re working on right now are:

  • Improving privacy:

  • Turning on end-to-end encryption by default for private conversations.

    • This is hard in a decentralised environment, but we are incredibly close now. All the hardest bits (E2E search; E2E compatibility for older clients; Cross-signing E2E verification so you don’t have to keep manually verifying people; etc) are now done and work - we’re just plugging it all together in Riot, which means a full rework of the whole encryption UI/UX.
  • Making Riot suck less for newbies. Technically called ‘first time user experience’, we’re working through making the app way more intuitive on all platforms, and making it as polished as we possibly can.
  • RiotX: a full rewrite of Riot on Android using all the latest fun stuff, which is nearing completion.

Coming up next are:

  • Canonical DMs (i.e. enforcing One True Direct Message when you talk to someone)
  • Reworking Communities (i.e. groups of rooms)
  • Decentralised accounts (i.e. letting users migrate between or exist on multiple servers)
  • Lots of server performance and scalability improvements
  • Peer-to-peer Matrix and resistance to metadata analysis.

Hope this gives an idea of the sort of thing we’re up to. I’m here to answer any/all questions about Matrix, Riot, Modular (or whatever else floats your boat). Particularly happy to talk about the privacy-related work we’ve been doing recently. Privacy is critical to Matrix; there’s zero point in having an open comms platform if it compromises the privacy of its users, and we are determined for Matrix to be both the most open and most privacy-preserving comms system out there :)

(Heads up that as I type this I'm on a call with a Really Big messaging service who might want to join Matrix, and it looks like the call is overrunning - I should be back here and concentrating worst case in 30 mins, so please queue up some questions :D)

1.0k Upvotes

452 comments sorted by

68

u/an123sxAzYx- Sep 27 '19 edited Sep 27 '19

Hello! Thank you for doing this AMA.

I just have a few questions about Matrix. (I haven't actually used it yet, but I am planning to)

  • Are there any (feasible) attacks on Matrix (besides attacking the user; rubberhose cryptanalysis)
  • Are there any more improvements to privacy possible in Matrix?
  • What ciphers are used for the E2EE?
  • Do you plan adding telemetry or any other data mining algorithms to Matrix?
  • How is authenticity achieved in the E2EE?

That's all i could think of for now. Thanks! (sorry if some of these make no sense, but I just learned about matrix)

86

u/ara4n Matrix.org project lead Sep 27 '19

> Are there any (feasible) attacks on Matrix (besides attacking the user; rubberhose cryptanalysis)

Almost certainly :) No threat model is perfect. For instance, you could use a social engineering attack to impersonate someone while avoiding having your identity verified. Or you could tamper with a phone call being used to verify a user's encryption keys to make it seem like they were verified when they weren't.

Or you could ship a malicious fork of Riot in some dodgy appstore and put a backdoor in it.

Or a malicious/compromised server could reveal the metadata of who was talking to who and when (even though the data itself is encrypted).

Or a global passive adversary (GPA) could look at the traffic patterns to see who's talking to who.

We don't currently protect metadata (although we have plans to work on it in future, as part of P2P matrix), and we are not resistent to metadata attacks by a GPA.

There are probably other classes of attack too; will have a think.

> Are there any more improvements to privacy possible in Matrix?

Sure. there's a bunch on our radar still - see the list of "stuff still to do" in https://matrix.org/blog/2019/09/27/privacy-improvements-in-synapse-1-4-and-riot-1-4, or the live dashboard (takes 10s to load) for the issues which we haven't solved yet.

> What ciphers are used for the E2EE?

We use AES-256 in CBC mode with PKCS#7 padding for encryption and HMAC-SHA-256 (truncated to 64 bits) for authentication. The 256 bit AES key, 256 bit HMAC key, and 128 bit AES IV are derived from the message key using HKDF-SHA-256.

For key exchange we use Curve25519.

Full specs are at https://gitlab.matrix.org/matrix-org/olm/blob/master/docs/olm.md and https://gitlab.matrix.org/matrix-org/olm/blob/master/docs/megolm.md.

> Do you plan adding telemetry or any other data mining algorithms to Matrix?

Matrix as a protocol has no telemetry or data mining support and never will - just as HTTP doesn't, or SMTP.

In terms of Matrix implementations, Synapse and Riot do have strictly *opt in* telemetry which reports back to our stats servers, which we use a) to estimate how popular Matrix is, which is absolutely critical when it comes to persuading people to fund us to work on it, and b) tell us whether users are managing to use it successfully and stick around. We simply don't know which bits of Riot we should be improving if we can't see the point where we lose users, and this is the only reason we gather telemetry.

But, again, this is only if users explicitly opt in to help us make the implementations suck less.

16

u/an123sxAzYx- Sep 27 '19

Or a global passive adversary (GPA) could look at the traffic patterns to see who's talking to who.

This could certainly be a problem for anonymity (especially over Tor), so are there any plans to implement (or is there) an onion service for Matrix?

Besides that, how secure could Matrix be against a three letter agency? Are there any warrant canaries or transparency reports?

33

u/ara4n Matrix.org project lead Sep 27 '19

We're looking at alternative transports for Matrix which do better at protecting traffic patterns - e.g. https://github.com/matrix-org/libp2p-proxy layers matrix over libp2p (from the IPFS guys), and https://matrix.org/blog/2019/03/12/breaking-the-100-bps-barrier-with-matrix-meshsim-coap-proxy is another totally different transport (albeit for low bandwidth rather than privacy). So it's very doable. Meanwhile we keep a close eye on Vuvuzela & Kareoke & Loopix etc to see how they're going about metadata privacy.

In terms of security against nation scale attackers: if the server you (or your correspondents) are using is compromised, then the attacker can see the metadata of who is talking to who, and when. If you have e2e encryption turned on then the contents of the messages will be safe (even if the server becomes completely hostile). We're working on metadata privacy by shifting the metadata off the server onto the client by going p2p (hence the IPFS example). We don't have warrant canaries or transparency reports currently; our attitude is that if you care that much about privacy then you should be running your own Matrix server rather than using a free-for-all like the Matrix.org server, which has no choice but adhere to UK law, as the terms of use should make clear when you log into it.

6

u/an123sxAzYx- Sep 27 '19

Thanks for the response!

Do you still think that there will be an onion webservice for Matrix? Or will the metadata analysis mitigation stop at non-onion transport security?

17

u/ara4n Matrix.org project lead Sep 27 '19

I'm sure that there will be onion-style overlay transports in future, whether it's done by the core team or other people experimenting on top :)

49

u/[deleted] Sep 27 '19

I just wanted to say thank you for bieng honest and not claiming your product was perfect

→ More replies (4)

39

u/rahuldottech Sep 27 '19

I'm a huge fan of matrix, and my we use it primarily in my the tech circles that I'm in. Thank you for everything that you do!

That said, do you think the matrix/riot ecosystem will ever be able to compete with more mainstream applications (WhatsApp, Telegram, et al.)? The non-techincal person almost always wants something that Just Works, and can't be bothered to figure out what homeserver to use and stuff.

Additional question: this might already be possible and I might just be unaware, or maybe it's just not feasible, but is there any way to take a complete backup of all my chats that are on a homeserver, so that they can later be restored to a different homeserver if the one I'd been using went down? Even if they can't be restored on a different homeserver, is there at least a way to download all my chats? (Related issue on Github, that I see you've replied to)

53

u/ara4n Matrix.org project lead Sep 27 '19

So we wouldn't be working on Matrix if we didn't think it could compete with WhatsApp, Telegram, Slack etc. We absolutely want Riot to be something that Just Works for non-technical users who can't be bothered to figure out what HS to use etc (this is why we controversially default to the matrix.org server, for instance). However, UX is hard, particularly for FOSS, but in the last year we've hired professional UX designers to work on the project, and we're really starting to see the benefits now. We particularly have a project going on right now called FTUE (first time user experience), explicitly to make Riot less scary and sucky for newbies. You can see the first wave of work for this happening over at https://github.com/vector-im/riot-web/issues?utf8=✓&q=is%3Aissue+label%3Aproject%3Aftue+ and judge whether we're on the right track.

In terms of backing up chats: it's one of our most upvoted feature requests. You can use tools to do it today (e.g. matrix-recorder and pantalaimon), and we're looking at building it into Riot, given you effectively get it for free with E2E search (via seshat).

However, what I'd really like to do is finish off https://github.com/matrix-org/matrix-doc/issues/1228, which paves the way for decentralised accounts - i.e. the ability to host your account on multiple servers (e.g. i could define @matthew:example.com as a secondary home for @matthew:matrix.org). This then gives you portability & backups. We'll hopefully be able to start working on it soon :)

Thanks for being a fan of the project! :D

4

u/not_perfect_yet Sep 27 '19

Hi I have two questions, a follow up and a more technical one.

The follow up, hi, I'm the less technical minded person. I write code, but I don't really touch "hard stuff". So assuming you have a desktop/mobile/web app that works seemlessly, do you have any arguments I can bring to other people to switch besides "it's more private"? The way I see it, winning users over from other services is either hard, because people have built their network somewhere else (whatsapp) or impossible, because it's an integrated service, like steam chat.

The other question, as the scripting capable scrub that I am, how easy is it to reuse your hard work with, let's say, python? :)

20

u/ara4n Matrix.org project lead Sep 27 '19

The best way to win other people over is "it's not run by Facebook, or Google, or anyone else - instead you can use any provider you like, and still communicate with the rest of the open network. It's like the web, man!" or words to that effect.

There are several python SDKs - https://matrix.org/docs/guides/usage-of-matrix-nio is the most recent one. I suspect that https://github.com/turt2live/matrix-js-bot-sdk is also a fun way to start.

→ More replies (6)
→ More replies (4)

4

u/tapzoid Sep 27 '19

I think you should see if a collaboration with SimplySecure.org may be possible. They know a lot about privacy and UX. Keep up the good work Matthew!

11

u/ara4n Matrix.org project lead Sep 27 '19

Yup, we know SimplySecure - Georgia came to visit us a little while back, and we're figuring out ways to work together.

2

u/[deleted] Sep 28 '19

controversially default to the matrix.org server

Maybe you can take inspiration from the signup process of Fedilab, a Mastodon client. They let you select a homeserver amongst the most popular for your region, based on local geoip database (iirc). You could randomise it a little and have the full username be shown more popularly. Maybe just look at the app and tryit out :)

4

u/ara4n Matrix.org project lead Sep 28 '19

Yup, Fedilab's approach is cute. But it also assumes there are a wide range of well administered long-term public servers to sign up on. We'd rather not take that risk by default until decentralised accounts come along, otherwise it's a real pain for the user if they pick a random server that turns out to be unstable/dying/whatever.

→ More replies (2)
→ More replies (3)

23

u/gradinaruvasile Sep 27 '19

About Android client and the usage of FCM/GCM for notifications.

Are there plans to implement a non-brute force version of notification system (ie not polling the server every x seconds) that does not rely on Google at all (Telegram, Conversations have this working)?

I'd really like to keep my stuff on my own vpn/network without relying on other servers to rely my notifications.

24

u/ara4n Matrix.org project lead Sep 27 '19

Yes. There are several projects going on this area:

Personally, my preferred solution would be to take the CoAP transport, and use Matrix itself as a push transport, by using a filter to filter out everything but notification messages. That way you'd get E2E-encrypted push notifs for free, and you don't end up with a weird duality and redundancy between a protocol-for-push and a protocol-for-messaging when in practice they're pretty similar. You'd then run a background daemon like pantalaimon in your OS to handle all the push notifications for all your Matrix-capable apps... which could also handle E2E and FTS indexing other 'hard' stuff, and so your OS would provide you a nice Matrix API complete with push for all your apps' communication needs. But this is fairly scifi right now.

Hopefully we will find/fund someone to work on this in the fairly near future. We got as far as hiring the librepush.net guy as an intern this summer, but he didn't have much bandwidth to work on librepush itself (instead he ported the APNS/FCM daemon from Py2 to Py3!)

45

u/[deleted] Sep 27 '19

One thing I haven't been able to understand since the beginning is encryption. Matrix was touted to me (and probably others) as an alternative to Signal, but encryption seems to be an afterthought in Matrix. Chatrooms don't seem to be encrypted by default and you just said private messages are just beginning to be encrypted by default.

So my question is simple: is Matrix really an alternative to Signal? If not, what's missing?

87

u/ara4n Matrix.org project lead Sep 27 '19

Encryption really wasn't an afterthought - we designed the protocol from the outset to support E2E encryption. However, implementing it took *ages*. This is mainly because it's really hard to mix together E2E encryption and decentralisation. The core problem is that when you send a message in a decentralised room you don't necessarily know what devices (or even users) are present... so you don't know who to encrypt the message for. This is doubly true if you're creating a new encryption protocol (megolm), which we added to support medium/large chatrooms - whereas Olm (aka the Double Ratchet Algorithm) is only good for ~255 devices.

In practice, encryption simply doesn't make sense for some use cases. A big public chatroom which is guest accessible has zero value in encryption - it's *meant* to be public and on the record and indexed by Google etc.

So we started off being pragmatic and implementing Matrix without E2E encryption, and then started adding it in as needed. This had the problem that to turn it on everywhere we'd need the experience to be *IDENTICAL* to that of the unencrypted behaviour, otherwise people would rightfully get super upset that (e.g.) notifications don't work, or search doesn't work, or whatever feature. So this is why it's been ages getting to the point of turning it on by default.

Literally the only thing that stop us from turning it on for private rooms (not just DMs) by default at this point is implementing E2E cross-signing (so you only ever have to verify a user once, rather than every time they login), which has been months in the making but is now implemented; just needs Riot UI... and E2E search - which is happening as we speak over at https://github.com/matrix-org/seshat, and should be available in the next release of Riot/Desktop hopefully.

In terms of your actual question: Matrix is very different to Signal. Matrix gives you group chats; synchronised chat history; large rooms; decentralisation; way more functionality than Signal. I see Riot more as an encrypted alternative to Slack, or perhaps an alternative to Wire or Keybase. Meanwhile, Signal optimises for privacy over everything else - it optimises over openness (no 3rd party clients or APIs), and over decentralisation (you have to unilaterally trust the Signal servers). So whether you use Matrix or Signal depends on your use case, really. I use both.

22

u/[deleted] Sep 27 '19

Thank you very much for the response. I would like to continue, because like many others, I'm a Librem5 supporter and they opted for matrix. It seems like they want to push it over signal.

Do you have any thoughts on that?

And thanks for the work on matrix!

30

u/ara4n Matrix.org project lead Sep 27 '19

Matrix prioritises freedom over everything else: the freedom to run your own server; have your own clients; have an open API; have an open standard protcool; etc. We also do everything we can to maximise user privacy - but it's not like Signal, where privacy is the number one priority over everything (e.g. at the expense of being able to run your own server sensibly, or run your own client, or have an open API etc).

So it makes sense for Purism (which is more about autonomy & freedom, aiui) to support Matrix over Signal.

However, it's worth noting that Purism haven't exactly invested in ensuring that Matrix works well on the Librem5 (it looks like they hoped the community would do it spontaneously), so I'm a bit concerned as to what the experience will be once the Librem5 ships.

0

u/[deleted] Sep 27 '19

[deleted] — view deleted comment

23

u/ara4n Matrix.org project lead Sep 27 '19

As far as I know, chatty is a libpurple client - and unless they've been hacking on https://github.com/matrix-org/purple-matrix without us spotting, purple-matrix was written as a proof of concept (as a way to onboard a new team member) about 2-3 years ago, and has never been made production grade. For instance it has no end-to-end encryption (other than very experimental read-only support). So I'm a bit worried about it being used in the Librem5. Meanwhile, Fractal is probably the best bet for a native linux client for the Librem5, and Purism /have/ sponsored some work on it. But it also needs a lot more investment to get it to be production ready.

→ More replies (14)

16

u/piotrex43 Sep 27 '19

Thank you /u/ara4n for this AMA!
For the purpose of my first question I'll assume the following scenario:

  • User 1 hosts their homeserver
  • User 1 started an encrypted direct chat with User 2 on the same homeserver they host
  • Both users use Riot.im application on both Desktop and Mobile.
  • There are also no integrations added to the direct chat between User 1 and User 2 nor there are any other users being added to the room.

In the following scenario, how much metadata leaks outside of the homeserver hosted by the User 1? The chat is between two people who have their accounts on the same homeserver, imo it shouldn't pass any data to other homeservers/3rd parties (other than the homeserver of User 1), but is it the case?

Second question: Currently the performance of Synapse is... Uhhh. Not great, I know the general philosophy is "Make it work first, make it fast later" which is alright I guess, however is there a specific timeframe we may expect optimizations to come? I know there is Dendrite which is very WIP and I hope that it will help performance wise. I just wish I could without major worries join bigger rooms on other homeservers with same feature-set as Synapse without worrying about killing the server. :)

25

u/ara4n Matrix.org project lead Sep 27 '19 edited Sep 29 '19

Great question :) Absolutely no metadata should leak outside two users sitting on the same server, as of the releases we pushed today for Riot 1.4 and Synapse 1.4 (with Riot Mobile following very shortly in the coming weeks). Previously, there was a problem that Riot defaulted to using identity & integration servers run by the Riot team, meaning that even if you use your own home server, unless you explicitly also configured different identity & integration servers you might end up sharing some metadata with them. This is now fixed though - https://matrix.org/blog/2019/09/27/privacy-improvements-in-synapse-1-4-and-riot-1-4 and https://medium.com/@RiotChat/new-privacy-controls-for-riot-dc3661888563 has all the details, but the TL;DR is that if Riot tries to connect to any 3rd party service (identity lookups; integration management; even STUN for firewall detection for VoIP calls) it now explicitly warns the user about it and gets them to opt in. This in turn makes it way more likely for server admins to correctly pick trusted identity & integration servers (or run their own) rather than use the defaults.

Practically speaking, your client may also leak DNS lookups to your DNS server whenever it talks to your homeserver (or TURN or identity or integration server), but this obviously isn't Matrix specific.

In terms of Synapse performance - since we shipped 1.0 back in June we've been constantly optimising, and things have improved significantly. For instance, switching from Py2 to Py3 reduced RAM by about 50%. Another good example is back in August when we reduced the average msg send time on the Matrix.org server from ~500ms to ~25ms (https://twitter.com/matrixdotorg/status/1158331230317940736). Another fun datapoint is that the test server we've spun up for Mozilla (~500 users; ~50 rooms) is only using 200MB of RAM. Admittedly it's not federated, but it gives an idea of how good Synapse /can/ be.

There are many things we are doing to improve it more; some of the top ones are:

* Avoiding room extremities from building up. If your server is in a room where not many local users speak, then it's possible for the room to get 'fragmented' and unperformant. We shipped a solution to this a few months ago, and are currently turning it on by default - but it historically caused many performance problems - see https://github.com/matrix-org/synapse/issues/1760

* Prioritising which servers we send messages to. Currently when your server sends a message, it concurrently tries to talk to all the others in the room. If there's a large number of servers, and some of them are slow, you get a massive explosion as it tries to do 1000 simultaneous (slow) HTTPS requests. We're in the middle of a project right now to prioritise the healthier servers and so improve performance (while slightly slowing things down for servers which were unhealthy anyway)

* Optimising state resolution - i.e. the core algorithm used to merge together your server's copy of a room with all the other servers participating in a room. This is currently pretty dumb, and considers *all* the state in the room from scratch, every time it has to merge things together. Instead, we can consider only the state which changed, which would be much much lighter. We call this incremental state res; we designed it last year, but haven't had a chance to implement it yet.

* Chunked rooms - currently rooms are considered as a single blob of messages (other than when they get upgraded between protocol versions). This is a problem if your server is intermittently online, as the rooms get fragmented, which causes performance problems. Chunking lets you model each section of room separately rather than trying to mix together the fragments, which helps perf a lot. Again, we designed (and implemented) it last year, but need to migrate it to the current day.

The plan is basically to make Synapse as good as possible (given there are tens of thousands of them out there now), and instead use Dendrite as an R&D project - particularly around p2p matrix and funky routing experiments. There is certainly a world where Synapse goes away because the clients start shipping with a homeserver clientside ;P

16

u/ara4n Matrix.org project lead Sep 27 '19

update: looks like the performance fix for room extremities is now enabled by default in Synapse 1.4! https://github.com/matrix-org/synapse/blob/release-v1.4.0/synapse/config/server.py#L366

5

u/Bdnim Sep 27 '19

Practically speaking, your client may also leak DNS lookups to your DNS server whenever it talks to your homeserver (or TURN or identity or integration server), but this obviously isn't Matrix specific.

I mean speaking practically, you've got all the other normal metadata leaks from communicating over a network. I'd assume it shouldn't be too hard for an attacker to identify which http messages are sync and which are sending messages, so there's also a leak of when you're online and when you're sending messages. How effective is Olm at concealing the length of messages sent?

13

u/ara4n Matrix.org project lead Sep 27 '19

Olm doesn't try to conceal the length of messages particularly, so yes - you're vulnerable to traffic shape analysis. We've been looking at solving this in p2p matrix (by creating cover traffic, and using dead-drops to exchange messages), but this is all quite scifi at this stage. Loopix, Karaoke and Vuvuzela are good r&d projects to look at if you're interested in resistance to traffic pattern analysis.

→ More replies (1)
→ More replies (2)

16

u/Kaligule Sep 27 '19

Is the Matrix Foundation financially stable?

20

u/ara4n Matrix.org project lead Sep 27 '19 edited Sep 28 '19

Yes. The Foundation itself is a vehicle for ensuring the protocol evolves in a neutral and independent manner, gathering donations (which pay for things like hosting the matrix.org website & homeserver) and being the custodian for the project's core code. The code itself however is contributed by all sorts of contributors, albeit with much coming from New Vector, the company set up by the core team to fund their dev on Matrix.

So a related question would be whether New Vector is financially stable, and the answer to that is also yes, thanks to paid work providing Matrix services like Modular.im and the French Government deployment.

15

u/janjko Sep 27 '19

What do you think of fully decentralized, serverless chat and voice clients like Tox and Jami? Do you think Matrix can achieve the same level of privacy with the federated server approach?

21

u/ara4n Matrix.org project lead Sep 27 '19

The plan with Matrix (well, my plan at least, hopefully I can persuade the rest of the team of it) is for Matrix to be hybrid Client-Server and P2P in future. You can already run Dendrite as a lightweight Matrix server clientside, and if you combine that with a p2p transport, you can then have best of both worlds: a secure server for backup if you lose your devices if you want it, or alternatively have your conversations stored only on your devices.

https://github.com/matrix-org/libp2p-proxy is a p2p experiment that uses libp2p (from the IPFS guys) as a P2P transport to connect together clientside servers, in order to give you p2p matrix :)

→ More replies (6)
→ More replies (5)

11

u/[deleted] Sep 27 '19

Is your vision for matrix to have multiple independent server implementations or do you think that the community should stick to synapse? Do you have any plans for improvements to the non GCM notifications?

23

u/ara4n Matrix.org project lead Sep 27 '19

We are absolutely counting on there being multiple independent server implementations. An open standard is only a standard if there are independent interoperable implementations - and we want Matrix to be as open as the web, or email, or whatever your favourite open standard is :)

The problem is that we only exited beta for the Server<->Server API back in June, and before that point it was pretty miserable to implement servers given the API wasn't locked down or fully specced.

Since then, the Ruma project has returned (modulo Rust async support), and meanwhile Construct exists as an indie implementation that apparently works (although its author unfortunately really doesn't like the Matrix core team)

Meanwhile we also have Dendrite as an alt implementation albeit written by the core team, which we're using for R&D experimentation for lightweight homeservers currently.

For now, you have little choice but to stick with Synapse unless you are a developer or quite experimental, but the plan for Synapse has *always* been for it to be a bit like Apache httpd (for the web) or Sendmail (for email) - one of the early, not-very-efficient, common servers which everyone got started with... but then replaced with nginx / lighttpd / postfix / exim or whatever.

In terms of better notifs, see https://www.reddit.com/r/privacy/comments/da219t/im_project_lead_for_matrixorg_the_open_protocol/f1mussa/

6

u/Pandastic4 Sep 27 '19

(although its author unfortunately really doesn't like the Matrix core team)

Why?

20

u/ara4n Matrix.org project lead Sep 27 '19 edited Sep 28 '19

Probably lots of factors. One of them is probably because he has invested loads of time into writing Construct, which must have been a pretty frustrating experience when Matrix was pre-1.0. He would find flaws in the protocol, get frustrated when we didn't fix them fast enough, and then get angry at us for being incompetent, and then go and exploit them. https://news.ycombinator.com/item?id=19422064 (and the surrounding thread) has more context.

→ More replies (4)

7

u/zoglesby Sep 27 '19

This Week in Matrix posts statues about other server implementations all the time. Aaron and others at have also been very helpful talking to people about the spec to support other implementations.

→ More replies (3)

11

u/SpecialType Sep 27 '19

I'm curious on the backstory of how the idea of Matrix came about. Did something motivate you personally to go after this full-time, or was it just an extension of your work and one thing led into another?

15

u/ara4n Matrix.org project lead Sep 27 '19

Personally I've been obsessed with building an open comms network since i was a kid - I just really like the idea of the internet as a common fabric to easily bring people together and let them communicate as efficiently as possible. I hacked on an instant messaging system at school called iNFERNO ][ (it was very 'leet) which was built on Filemaker Pro on classic MacOS. At university we built a thing called Foxtrot which was a centralised messenger which worked by serialising Java over encrypted sockets (ugh). Around the same time I did a project called siliconarchive which was a usenet search archive (this was between dejanews going bust and Google Groups emerging), because I was a bit obsessed about usenet as an open comms network. I also had an idea called UCA (Universal Communication Architecture) which never got further than some notes, but in retrospect was very very similar to Matrix.

Subsequently I ended up working on VoIP stacks in a startup in London, which eventually got acquired by Amdocs (a big telco services company), where the team eventually became a Unified Communications division, selling messaging apps to Telcos. However, after doing this for a few years, we realised that creating yet more proprietary silo'd communication apps wasn't really helping anyone (and besides, who wants to install a silo'd communication app from their telco when all their mates are on WhatsApp).

So, as a team, we put our heads together to imagine how you would actually come up with an open communication protocol that would actually be successful like HTTP and SMTP had been (in comparison to SIP or XMPP, which never exactly went mainstream). The result was Matrix, which we switched over to working on fulltime within Amdocs from 2014-2017, and then span out to create New Vector to hire the team and the Matrix.org Foundation to support the protocol, in order that the project was funded and could grow properly. And so here we are today :)

→ More replies (6)

9

u/SpecialType Sep 27 '19

Who are your main competitors?

25

u/ara4n Matrix.org project lead Sep 27 '19

As an open protocol, you could say that Matrix operates in a similar space to XMPP, IRCv3, ActivityPub, SMTP, IMAP, NNTP, SIP, PSYC and SS7 depending on how you look at it.

As an open source chat/comms/tool, Riot operates in a similar space to MatterMost, Rocket.Chat and Wire

As an e2e-encrypted messenger, Riot operates in a similar space to Signal and Wire and WhatsApp.

As a general purpose collaboration tool, Riot operates in a similar space to Slack, Discord, Teams, Webex, etc :)

In general we don't think in terms of competition but cooperation/collaboration. Matrix's mission is to just provide a ubiquitous open network like the Web, but for realtime communication - and we'd love all and any of the above to hook into Matrix to break down the walls that otherwise create closed silos and walled gardens. For instance, Rocket.Chat has been working on Matrix support; I spoke to the MatterMost guys a few weeks ago about whether we could help them; we're working a bit with Wire on MLS (next-gen e2e encryption); and I try to sync with Moxie from Signal whenever I'm in SF.

7

u/SpecialType Sep 27 '19

Thanks! That's cool you focus on cooperation/collaboration.

Have you found a really strong fit with any specific industry? Or x type of user?

18

u/ara4n Matrix.org project lead Sep 27 '19

The main users today are:

  • Open source enthusiasts & companies
  • Cryptocurrency enthusiasts & projects
  • Activists or other privacy enthusiasts
  • Governments(!) - turns out that governments really like encrypted decentralised interoperable communication (when it's for them O:-)

3

u/UserLB Sep 28 '19

Interesting. You keep referring to Matrix as a communication protocol and a standard. Any plans to standardize it as an RFC or under the IEEE body? What are plans for that standardization process?

7

u/ara4n Matrix.org project lead Sep 28 '19

So we standardise it today under the spec process run by the Matrix.org foundation (see https://matrix.org/docs/spec/proposals for details), but in the longer term once the standard is mature we'd love to see it formalised by IETF or W3C or whichever standards body is most appropriate.

9

u/the_magic_ian Sep 27 '19 edited Sep 27 '19

Hi Matthew,

Thank you to you & your team for all their work.

  1. One of the advantages of social networks like Facebook, is a consistent identity when the user changes their email username/domain, phone number/provider. The Zot protocol has solved this problem using a solution they've named Nomadic Identity. Will Matrix have something similar to this to allow multiple dynamic usernames associated with a single identity?
  2. For consumer encryption, Signal seems to be the gold standard right now, and have pushed a lot of features many messaging/calling services don't have, like double ratchet encryption, sealed sender, private contact discovery. Is the goal to meet/exceed features like these in an easy to use way, but just in a decentralized manner? Will we ever be able to delete rooms, and do other commond chat functions, or are there some specific tradeoffs that come with decentralized encrypted chat/call services?
  3. I see matrix as the first likely potential progression from email/phone (which are ancient, but have survived due to their decentralization & reliability), but there is a monumental amount of work to get it there. Dial in numbers/conference bridging, emergency services, a potential hardware replacement for office/home phones (eg video calling capable with some way to dial and HKS's), adoption of productivity & chat software like Nextcloud Talk/Microsoft Teams/Slack/Google Hangouts Meet/Steam Chat/Discord, easy to use clients, app integrations (like slack is famous for). What do you see as some of the biggest challenges for adoption, and which ones are the most important to focus on first once the spec and clients have reached maturity?
  4. What are some of the potential IoT applications you see for matrix? For example, people can answer "calls" from their doorbells, but ideally this would be done through an encrypted matrix call. There are also chat bots that might tie in to devices that answer questions, or do you see matrix being used to send commands or interact in a different way with devices and services?

7

u/ara4n Matrix.org project lead Sep 27 '19
  1. Nomadic identity is on the cards as a side effect of MSC1228: https://github.com/matrix-org/matrix-doc/issues/1228. We'll hopefully be able to work on it later this year.
  2. Matrix uses a very similar Double Ratchet Encryption implementation to Signal, but goes further in that we support larger groups via Megolm. We're looking at metadata resistance (sealed sender) currently. Private contact discovery is Hard and we're not keen on how Signal implemented it, but we implemented a fairly naive solution in Riot 1.4 (https://github.com/matrix-org/matrix-doc/blob/hs/hash-identity/proposals/2134-identity-hash-lookup.md has the gory details).
  3. Our plan for wider adoption is to first build more bridges to the existing systems, and then get more of the existing systems to just adopt Matrix natively. For instance, I'm sure telcos would love the idea to sell a better service than the PSTN (or the Google-driven RCS stuff). Governments empirically already like using Matrix. Even the Microsofts and Ciscos of this world could benefit from Matrix as it grows - opening up their offerings to the wild world of open communication. Let's see how it goes :)
  4. Gathering telemetry from heterogenous fleets of things things like cars, drones, spaceships etc is fun for IoT. Matrix could be great for building applications on top of IoT - dashboards; analytics; etc where different devices publish streams of data from different vendors & silos. It could also be great for smart city style use cases - basically wherever you have lots of devices from different vendors and you want to gather and manipulate their data in a coherent manner.
  5. Yes, Matrix could definitely end up being used for social networking. We're looking at adding extensible profile rooms (and by extension profile 'walls') in the near future, although the emphasis would be more on a Facebook-style UX than a Twitter/Mastodon/ActivityPub style one.
→ More replies (6)

5

u/the_magic_ian Sep 27 '19

One follow up question. Do you think Matrix should (or could) evolve to be the basis of a social networking, or rather part of a suite of protocols used in a decentralized social network (like how email uses multiple protocols to function). ActivityPub/Zot don't do calls and don't really do messaging well, but all these features together are part of competing services like Facebook.

→ More replies (2)

9

u/neverworksout Sep 27 '19 edited Sep 27 '19

Hi, and thanks for hosting this. Firstly, how's development going in GO? I've been hosting an unfederated server for a long time now and I love it - but my god it loves ram with python.

Second, how do you stand legally in the UK (you are British I think??). I'm not in the tech field, I'm in legal - and I'm curious what would happen given the push here recently for developers to be forced to add another party to the conversation secretly. Have you been approached at all? And if you were ever forced to add something, would it be safer to assume that compiling from the source on github may be a safer option? Don't mean to be all tin-foil-tim, but figure I can ask the question given the subreddit.

Edit: Also, is any of your funding dedicated to helping out with bridges? What you've achieved so far is admirable, but I do think a push towards bridging more reliably with WhatsApp etc may help with uptake.

14

u/ara4n Matrix.org project lead Sep 27 '19

The Go server (dendrite) is progressing, but more as an R&D project. We're instead putting a lot of focus on making Synapse not suck, mainly because there are a lot of Synapses out there now and splitting our effort over two projects is hard. RAM usage should have gone down by 3x or so in the last year; and there's more work on the horizon, as per https://www.reddit.com/r/privacy/comments/da219t/im_project_lead_for_matrixorg_the_open_protocol/f1mtiu1/

We haven't been approached to add backdoors into Matrix, and we'd rather leave the UK than get compelled into that sort of thing (given less than half the team is British, this isn't so hard to imagine). But even if we did somehow, everything is open source and so hopefully someone would spot bad stuff happening sooner or later. Honestly I'm not sure that compiling from source would help much, given the 'smart' way to add a backdoor would be to put it into the source.

Right now we have one person working fulltime on bridging (thanks Half-Shot!). It's hard to work out how much to focus on bridges versus core Matrix though; in some ways bridges are always a placeholder - but an important one. We might be able to fix this in future, but in some ways bridging is like pushing a rock up a hill. In other ways, it's really useful. Tricky.

6

u/parentis_shotgun Sep 27 '19

A good idea also would be to start thinking about, or have a contingency plan for, migrating the main instance out of five eyes countries, in case anything should happen.

11

u/ara4n Matrix.org project lead Sep 28 '19

Our plan there would be to prioritise decentralised accounts (so that people can port off) and then shut down the main server. We already keep a hot-spare of matrix.org in Germany (Frankfurt, iirc) too in case of drama there, but the question is more one of the jurisdiction of the legal entity than physical datacenter location. In our instance we could flip control to our French legal entity if ever needed, but it's not obvious that France is much better than 5 eyes countries.

→ More replies (1)

8

u/parentis_shotgun Sep 27 '19 edited Sep 27 '19

I want to thank you for all the work you all do, matrix is the most exciting project I know of, and for me its the future of communication: decentralized, e2ee, expandable, and an open spec.

My main question is regarding communities and roles. Many people have chosen discord as their primary group chat, mainly because of how easy it is to maintain collections of rooms, with shared roles, nicknames, etc.

I realize that matrix rooms and communities currently are many-to-many, IE one room can be a part of many communities (unlike discord). But this also makes adding one person to a collection of rooms (which might be under your control) very difficult.

Have yall thought of coupling rooms to communities, or maybe adding an additional term like "room group", that would function like discord? This would help adoption immensely, as people would be able to re-create their discord servers, with all the rooms and roles, into matrix.

Edit: a second point you don't have to answer, but I agree with the others on the performance of synapse being less than ideal. In a similar way to how development on riot for android shifted to riotX, I think it'd be a wonderful thing to focus on the rust implementation of the matrix homeserver.

8

u/ara4n Matrix.org project lead Sep 27 '19 edited Sep 27 '19

Communities in Matrix today have some major shortcomings - we're shortly going to work on fixing them in a manner very similar to that which you suggest. https://github.com/matrix-org/matrix-doc/blob/matthew/msc1772/proposals/1772-groups-as-rooms.md has the details.

Dendrite is more likely to be the equivalent of RiotX to one day replace Synapse, but we just don't have the bandwidth in the core team to work solidly on both at the same time currently.

PS: thanks for the thanks :)

→ More replies (3)

7

u/yieldingTemporarily Sep 27 '19

How are you faring with securing Synapse? Same question with Riot.im

13

u/ara4n Matrix.org project lead Sep 27 '19

We did a massive push to fix all known significant security issues with Synapse back in June when we exited beta and released the 1.0. The release notes for Synapse 1.0 give an idea of what went into this - basically there were some thinkos from the early days of Matrix which we had to eliminate, but we got it done.

Subsequently there have been a few other security fixes - you can see our hall of fame over at https://matrix.org/security-disclosure-policy/, for instance https://matrix.org/blog/2019/07/26/critical-security-update-synapse-1-2-1-released was another security update we had post-1.0.

We are not aware of any serious security issues in Synapse (or Riot) right now though - please tell us at https://matrix.org/security-disclosure-policy if you know of any!

Riot in general has had a better security track record than Synapse (it's a younger project with less baggage) - from memory there have been 3 issues on Web (one a bug in Electron; one a URL sanitising bug; one that forcing-TURN didn't work) and two on Android (where we didn't lock down a content provider adequately, and where we accidentally sent the user's homeserver access token to their identity server(!)). Again, we're not aware of any security issues right now.

It's worth noting that the mess that we had back in April when the matrix.org server got pwned was absolutely nothing to do with the security of the implementations of Synapse or Riot or the Matrix protocol; it was a case of bad linux system administration in our old datacenter.

7

u/KarlKani44 Sep 27 '19

Hey, what a coincidence. I just recently learned about Matrix when I was searching for a self hosted alternative to Slack for our company. I've finished the setup yesterday and created accounts for all employees. The server is public so people can connect from home via the Riot app and i disabled user registration through the app. Now I was wondering about a good way to manage the accounts. Right now I can query the database to find all accounts and use register_new_matrix_user.py for creating new ones. But I really hoped to find a good admin interface for doing stuff like this. Also to reset forgotten passwords. Will something like that be supported at a later time? Any kind of management interface for self hosted instances? I really appreciate all the work you and your peers put into this and I'll make sure our company donates after we used it for some time

5

u/ara4n Matrix.org project lead Sep 27 '19

There's an admin interface being developed currently by the community (not yet released). There's also one over at modular.im but it's not FOSS. There will be others in future I'm sure - the admin API has been getting way better in the last few months (e.g. you can now see what users & rooms are on your server and how much resources they're using).

Thanks for using Matrix!

→ More replies (4)

7

u/joemaro Sep 27 '19

Question: Is anybody in your team a keyboard (power)user?

As much impressed as i am with riot, as much am i surprised that the mouse is absolutely necessary to use riot. One can't even switch channels with the keyboard, which is probably the most basic function when it comes to hotkeys.

9

u/ara4n Matrix.org project lead Sep 27 '19

they are, and we're fixing them currently. agreed that it's not great currently :(

→ More replies (3)
→ More replies (1)

7

u/theksepyro Sep 27 '19

Any chance that matrix could support group voice chats without using third party services? (Or even if using other services integrated in such a way that it's seamless)

I'm trying to convince my friends to stop using steam and discord for chatting during games and matrix so far is the best at everything else imo.

Thanks!

6

u/ara4n Matrix.org project lead Sep 28 '19

In general group voice chats always need a conferencing server of some kind to mix the audio together. By default Riot uses Jitsi currently, and you can run your own one via Dimension - so it doesn't have to be 3rd party. It's also quite well integrated, and there's work ongoing to enable native push-to-talk: https://github.com/vector-im/riot-web/issues/5993.

However, you could use other servers (e.g. FreeSWITCH, Janus), or try to run one on a clientside. Hopefully we can make the Jitsi experience work better for gaming use cases soon though.

→ More replies (10)

7

u/AndyCuccaro Sep 28 '19

Hi! Privacy-unrelated question: have you considered having a mascot for Matrix and/or Riot? It could be used in merch, stickers (digital or tangible stickers), or explanatory videos, etc. I thought maybe an octopus or a spider could match the "decentralization" concept. Or maybe some animal that works in swarms/hives? If you accept, I'm willing to make some artwork for free. ;)

PS: my portfolio, in case you are interested.

7

u/ara4n Matrix.org project lead Sep 28 '19

Good question :) I personally haven't thought much about it - i guess Web & Email don't really have a mascot, so why should Matrix? Conversely, Mastodon has their mascot, which is cute (but ActivityPub doesn't). We'll have a think. Personally i think the [matrix] logo is pretty recognisable and almost a mascot in its own right (but i'm probably biased given i made it).

The portfolio is cool - Blender?

→ More replies (1)
→ More replies (1)

5

u/pepehandsbilly Sep 27 '19

I've started using matrix(riot) just this week and so far i'm enjoying it, however I have couple of questions, not really about the project but rather about the experience itself.

  1. if you own 5 devices and your friend owns 5 devices do you actually have to verify each of those 5 devices of the other person and then the other one for you?
  2. is it possible to set only sound notifications on riot.im without the notification browser popup? I've tried only enabling the sound setting but that didn't work at all. Is it a bug?

+ please, just don't https://github.com/vector-im/riot-web/issues/3434

3) My friend is bugging me about the fb messenger "chat heads" interface since it's very easy to use on android - any plans for something similar on riotx?

10

u/ara4n Matrix.org project lead Sep 27 '19

> if you own 5 devices and your friend owns 5 devices do you actually have to verify each of those 5 devices of the other person and then the other one for you?

Yes, but this will change in the near future. We've been working on "cross-signing" device verification to fix it. https://github.com/matrix-org/matrix-doc/pull/1756 has the technical details, and https://scitech.video/videos/watch/d1ef04a8-397a-4570-a9a9-cef143ea637c is a demo of the implementation. We just need to glue it into Riot.

> is it possible to set only sound notifications on riot.im without the notification browser popup? I've tried only enabling the sound setting but that didn't work at all. Is it a bug?

Yes, at the protocol level, but I don't think Riot's UI lets you do it. We're currently rejigging notifications following feedback from Mozilla and I'll get this on the radar. I've filed a bug over at https://github.com/vector-im/riot-web/issues/10985 for it.

> chat heads?

I like chat heads too. It'd be awesome to have something similar on RiotX, although right now we need to get the app to parity with Riot/Android before we can think of doing anything more exotic. That said, it's all open source, so perhaps someone will contribute it? We'd gladly merge it :)

→ More replies (2)
→ More replies (2)

5

u/the_gnarts Sep 27 '19

Thanks a lot for doing this AMA! I’m happy to see Matrix steadily become the gold standard for instant messaging.

Question 1: I’ve seen it mentioned (in some comment on LWN) that you used ecap as the API for filtering plugins in your work for the French government. Having hacked on Squid in the past I can see how this is the obvious choice! So I would like to know the extent to which ecap has been integrated into the protocol itself: is it baked into the spec somewhere (haven’t finished reading) or is there a more agnostic interface that can be served by ecap plugins?

Decentralised accounts (i.e. letting users migrate between or exist on multiple servers)

Question 2: Not to sound pushy, but could we get an ETA on that? It’s the blocker that currently prevents me from switching to the matrix instance on my VPS.

7

u/ara4n Matrix.org project lead Sep 27 '19

So the french deployment uses ICAP, and the code for the integrating with it lives up at https://github.com/matrix-org/matrix-content-scanner. It's not yet been incorporated into the spec itself, as it's still a bit experimental and we haven't had the bandwidth. So instead it's an off-spec custom API as per that page.

ETA on MSC1228 is probably "by end of year".

→ More replies (6)

4

u/defaultxr Sep 27 '19 edited Sep 27 '19

(TL;DR at the bottom if you'd prefer that)

Not really related to privacy, but one of my concerns with Matrix is that since I am running my own homeserver on a VPS, the conversation history will eventually be taking up quite a bit of space, and paying for disk upgrades on VPSes usually isn't too cheap. Do you have any suggestions for how I might deal with that problem in the future? Or do you think for a non-public homeserver mostly for personal use that I shouldn't be worried about how much space conversation history will take up? I don't use Matrix a whole lot yet, but I'd like to use it more in the future instead of having my conversations spread out among 20 different protocols... So if I actually ended up routing all my conversation through it (which would be cool!) my worry is that eventually I'd have to either pay for more space on my VPS, start pruning old conversations (kind of defeats one of the main draws of using Matrix though..), or manage how much disk is used some other way.

Maybe my fear is unfounded here, but being as I don't use Matrix much yet, it's hard for me to gauge how much space conversations might take up in the future... i.e. I have no idea how it compares to IRC logs, for example--which of course are tiny and very easily compressible, being usually flat files instead of databases. I don't know how well Postgresql databases would compress (sadly I don't yet use a filesystem with transparent compression anyway..) but it's for this reason that I've been a bit more hesitant to idle in Matrix rooms the same way I idle in a lot of IRC channels. I have no idea how quickly conversation histories from those rooms will grow in size.

Sorry for the wall of text. TL;DR I run Synapse on a VPS, worried conversation history will take up a lot of space, don't want to pay more for extra space on said VPS, and don't want to prune conversation history if possible.

12

u/ara4n Matrix.org project lead Sep 27 '19

Historically synapse has used tonnes of disk space. This is synapse's fault for being a somewhat naive implementation in some places. We're fixing this two ways:

* Firstly, we're improving how efficient synapse stores data. https://github.com/matrix-org/rust-synapse-compress-state/ is a tool which you can use today to save disk space... but it's not integrated in Synapse yet. Hopefully it will get built in in future.

* Secondly, we're letting server admins (and room admins) specify how long their server should keep history for. https://github.com/matrix-org/matrix-doc/blob/matthew/msc1763/proposals/1763-configurable-retention-periods.md is where that's happening, and it was implemented a few months ago in Synapse (but hasn't been released yet). This should make a massive difference.

4

u/defaultxr Sep 27 '19

Thanks for the response! From your answer in this comment it sounds like decentralized accounts will also help with the issue I mention, since it would allow even E2E direct message histories to be synced across the homeservers that an account spans across. Then I could just set my VPS homeserver to auto-prune while another server (perhaps running on my NAS at home) could be set to keep history indefinitely. Then all history would still be searchable even if it's pruned from one server. If I'm correct and that is indeed the case then that sounds like the best of both worlds and the ideal solution to my concern. Just wasn't sure if that's how decentralized accounts were planned to work.

Also, just wanted to say I'm a huge fan of Matrix, and have a lot of admiration for how seriously you take it and the consistently good and thoughtful answers you give in your comments on issues and the like. Along with projects like IPFS, bcachefs, Pipewire, etc, Matrix is definitely one of the most exciting up-and-coming technologies for me.

5

u/ara4n Matrix.org project lead Sep 27 '19

yup, this is the rough idea (although it’s pretty scifi right now outside of msc1228). thanks for the enthusiasm for Matrix :)

4

u/swinny89 Sep 27 '19

Where is chat history stored?

11

u/ara4n Matrix.org project lead Sep 27 '19

It's like email. Your clients store as much history as you like, and the servers participating in a conversation store it too. The difference is that the history is replicated precisely between the servers (unlike email, where everyone's inboxes & sent items are out of sync).

4

u/manateecalamity Sep 28 '19 edited Sep 28 '19

Hello, I'm a big fan of Matrix and really excited about where the project is going. A couple of questions:

  1. Is there anywhere even really rough usage information is kept? Are there 1k, 10k, 100k people using Riot/Matrix?
  2. What's the best way for community developers to get involved working on privacy related features? (or just features in general)
  3. I've seen a decent amount about the deal with the French government, but how have implementations with other governments and corporations gone? To me it's always been an interesting test of the stability and usability of a piece of open source software.

Finally, not privacy related at all, but is there any ETA for threading related work? (I see it now in other threads, awesome to see it being worked on!!)

7

u/ara4n Matrix.org project lead Sep 28 '19
  1. We see about 11M unique mxids on the network from the vantagepoint of Matrix.org, and about 150K daily active users. However, lots of deployments don't phone home or don't federate.
  2. Best way to get involved in development is to look for `easy` and `help-wanted` labels on Github - e.g. https://github.com/vector-im/riot-web/issues?utf8=✓&q=is%3Aissue+is%3Aopen+label%3Aeasy for Riot
  3. There are lots of large scale implementations popping up now. We're working with several other governments on the core team (although we can't say who they are yet, sadly). Meanwhile some really well known folks like Wikipedia and Redhat use Matrix internally.

4

u/[deleted] Sep 28 '19

Hi! Thanks for making this great software. I like that Matrix uses REST correctly, btw.

I've written a bot for matrix that sends me Atom/RSS feed articles (not published, yet). What I miss is a documentation or a tutorial that supports me with my integration. I fight against antiflooding mechanisms and don't know how to prioritize the user/bot on my homeserver.

Are there any interesting websites that give me enough details to improve my implementation or do I need to read sources?

3

u/ara4n Matrix.org project lead Sep 28 '19

cool! https://matrix.org/docs/guides/ is a good bet. the rate control stuff is described in the spec itself. a good bet is also just to ask in #matrix-dev:matrix.org.

→ More replies (1)

3

u/_wrpd Sep 27 '19

Any timeframe on fixing the publicly accessible media? I don't like that if you have a link to a photo or video you can access it. Even if you don't have an account.

Sure, I could encrypt the chat but something about that doesn't sit well with me. Seems like publicly accessible media shouldn't be possible either way.

Pretty much my only gripe thus far.

10

u/ara4n Matrix.org project lead Sep 27 '19

It's a surprisingly hard problem to fix - https://github.com/matrix-org/matrix-doc/issues/701 is nominally where we're looking at it. With any luck we'll make progress in the coming months. One of the problems is how we handle bridged media - e.g. if I post an image into a Matrix room that is bridged to IRC, it's going to suck if the IRC users can't click the link to see the media. However, we could do the better auth on purely Matrix rooms.

→ More replies (3)

3

u/lenjioereh Sep 27 '19 edited Sep 27 '19
  • Will there be a web management panel anytime soon?
  • Why cant we move Synapse installation between domains? I personally do not care about the
    federation stuff and I would like to move my existing installation to a new domain without loosing data and security keys.
  • The device verification process is so tedious currently, this gets so complicated when each user has multiple devices, it gets even suckier if a user starts using another device/login which means that he/she has to get verified by others for this new one. Please find a simple solution to this.

Btw you might want to offer cheap and secure TURN server solution for your users. This is the area most new Synapse users do not understand with the video/audio, and I know I struggled with it in the beginning.

5

u/ara4n Matrix.org project lead Sep 27 '19
  1. Yup, there are web admin interfaces in the works both from the community and the core team (and there's a glossy one at modular.im too)
  2. Moving synapses between domains is Hard because the domain name is currently baked into the history of the room - a bit like you can't change your bitcoin ID once you have it. However, we have plans to fix this in the near future (see MSC1228 mentioned elsewhere in the thread)
  3. Yes, it sucks big time. We've been working on the solution since the beginning of the year, and it's almost ready to go. Look for cross-signing elsewhere on the thread.
  4. Interesting idea. TURN is easy to abuse, but we could lock it down enough to avoid that. Thanks for the suggestion :)
→ More replies (1)

3

u/0xf3e Sep 27 '19

When will E2EE for group chats finally work properly?

8

u/ara4n Matrix.org project lead Sep 27 '19

If by 'work properly' you mean that you don't spend all your time manually verifying devices: it's coming in the next weeks (worst case a few months). It's our next big project now privacy is over. If you're seeing other problems (e.g. undecryptable messages) then we want to hear asap, as we think we've fixed all the common causes of these.

3

u/computerjunkie7410 Sep 27 '19

When will there be an easier way to setup an identity server?

4

u/ara4n Matrix.org project lead Sep 27 '19

ma1sd is meant to be pretty easy to set up (e.g. using slavi's ansible playbooks). sydent may also get easier in future. we'd rather replace them all with a decentralised identity system tbh though.

→ More replies (3)
→ More replies (2)

3

u/[deleted] Sep 27 '19

Hi, have you heard of GNUnet and its application Secushare? what do you think of it and what makes you different or better?

3

u/ara4n Matrix.org project lead Sep 28 '19

Yup, we know it - we asked von lynX to come speak about it at a Matrix meetup we had in Berlin a while back. GNUnet is way more ambitious than Matrix, being a full overlay network & stack. Secushare looks like a good use of it, but it's a completely different proposition to Matrix as far as I can see. It's like trying to compare Tor and Email. :)

3

u/Darth_Agnon Sep 27 '19

Is there any way Matrix/Riot could support older platforms? e.g. iOS 6/7, WinXP, Symbian, Windows Phone, etc.?

5

u/ara4n Matrix.org project lead Sep 27 '19

yup. there are low end matrix clients out there; for instance https://github.com/bwindels/brawl-chat is one done by one of the riot core devs :)

3

u/rl48 Sep 27 '19

Hi and thanks for the AMA!

I just have two questions:

  • Are there any foreseeable plans to continue with GDPR compliance (especially, in my case, exporting data)? I believe this is the one huge issue with Matrix, exporting rooms (including encrypted ones) off the platform for future reference.
  • Are there plans for a Synapse admin UI? A lot of people find it difficult to set up their own server since Synapse configuration is rather complex (this comes from someone who does a lot of sysadmin work) and I'm wondering about this.

Thanks!

4

u/ara4n Matrix.org project lead Sep 28 '19

We already have tools for GDPR data portability compliance (after all, we have a legal obligation to be compliant!) which literally export all the data visible to a user off their server. It's not very sophisticated, but it works.

There are several synapse admin UI projects ongoing at the moment. One of them is a new graphical config generator which we need to ship - it's ready to go over at https://github.com/matrix-org/synapse-config-generator. There are other admin UIs in the works too, but none released yet.

→ More replies (4)

3

u/kinow Sep 27 '19

Hi Matthew!

First of all thanks for the great work! We are using Riot/Matrix on an Open Source project, that involves teams working in institutions of governments from a few countries. We had a long delay on getting approval from one government due to privacy issues.

Eventually it was approved (then disapproved, and then re-approved, ...). I think the case of France choosing to use Matrix as reference for their implementation helped on supporting our decision.

Q1. Do you have any white paper / article / web page that you could recommend and would be helpful for teams concerned over security & privacy of Riot/Matrix? I would like to have it at hand in case the discussion around our use of Riot comes up again :)

Q2. Any chance to have message threads, like Slack? We are now able to quote other users, which is great. But when we have 10+ people, with 2 or 3 different topics in the same channel, it gets hard to keep track of conversations. We also work on completely opposite time zones. So logging in in the morning sometimes we spend a long time just trying to sew the dialogue in one piece (we are already using multiple channels, but that'd be still helpful to have a way to group together conversations in one channel)

Q3. We had a lot of messages with a single emoji. The feature to reply a message with a "badge" helps a lot to reduce noise in the channel. So we get less of thumbs-up emojis as messages, and more attached to the message. Is there some work going on for the mobile app to support it too?

Q4. Is there a list of easy issues on GitHub or some other issue tracker? I will have some spare time in the next days, and would like to try to help with translation, adding tests, or anything simple :-) to pay back for the great service you guys provide us.

Thanks!!!

Bruno

4

u/ara4n Matrix.org project lead Sep 28 '19

Q1. Do you have any white paper / article / web page that you could recommend and would be helpful for teams concerned over security & privacy of Riot/Matrix? I would like to have it at hand in case the discussion around our use of Riot comes up again :)

No, but we should write one.

Q2. Any chance to have message threads, like Slack? We are now able to quote other users, which is great. But when we have 10+ people, with 2 or 3 different topics in the same channel, it gets hard to keep track of conversations. We also work on completely opposite time zones. So logging in in the morning sometimes we spend a long time just trying to sew the dialogue in one piece (we are already using multiple channels, but that'd be still helpful to have a way to group together conversations in one channel)

Yup, threads are hopefully coming quite soon - we have a paying customer asking for them.

Q3. We had a lot of messages with a single emoji. The feature to reply a message with a "badge" helps a lot to reduce noise in the channel. So we get less of thumbs-up emojis as messages, and more attached to the message. Is there some work going on for the mobile app to support it too?

Riot/Web, iOS & RiotX/Android already support them already. Riot/Android doesn't and never will, as the plan is to replace it with RiotX asap.

Q4. Is there a list of easy issues on GitHub or some other issue tracker? I will have some spare time in the next days, and would like to try to help with translation, adding tests, or anything simple :-) to pay back for the great service you guys provide us.

Sure! https://translate.riot.im is the translation interface and we always need help there. Easy issues are tagged as `easy` and `help-wanted` in github - https://github.com/vector-im/riot-web/issues?utf8=✓&q=is%3Aissue+is%3Aopen+label%3Aeasy. Thanks!

3

u/Lord_Zane Sep 27 '19 edited Sep 27 '19

I'm a fan of matrix, and I have a suggestion for you:

  • Make a "What your trusting page" which shows what has what data. For instance if you have an account on a homeserver, what can the homeserver see about your account? Same thing for talking to other users, using/hosting bots, identity servers, etc.

2

u/ara4n Matrix.org project lead Sep 28 '19

We've tried to do this in the privacy policy documents (https://matrix.org/legal/privacy-notice) as well as the new privacy policies for things like the integration manager & identity servers which went into effect today. We could have a dedicated summary page too, but i'd be a bit worried about it being hard to maintain and keep in sync with the official legal ones.

3

u/dancemethis Sep 28 '19

First of all, thank you for fighting so hard for everyone's rights to freedom and privacy. Matrix is one of the most important Free Software projects around nowadays, and it receives too little love for what it represents, and its potential.

  1. Not being able to somewhat accurately grasp who is online in a given room is fairly troubling from an initial experience viewpoint. What is the current status on that? It turns out it's really hard to figure out issues to track on Github without being _very_ acquainted with the hardest technical lingo.
  2. Following on the difficulties from the question above, audio calls still feel like they are working on a band-aid solution. Is a revision to make it streamlined like more stable (and unfortunately usually proprietary) other examples past and present such as Skype and Discord in the pipeline for the foreseeable future?
  3. As much as Discord is harmful and it was an easy choice on the ethical and logical side of the argument to completely avoid it for all these years, it did come with losses on communications for people who unfortunately are swayed by the "popularity is all" motto. How harmful is it to a Matrix (or for the sake of simplicity/likeness, Riot) user to have a Discord channel bridge, as in, is it known how much personal information we lose to the hands of Discord by having one? If so, what exactly would that information be? And is it possible to mitigate it with a combination of a particular client and registered information on a Matrix server?

5

u/ara4n Matrix.org project lead Sep 28 '19

First of all, thank you for fighting so hard for everyone's rights to freedom and privacy. Matrix is one of the most important Free Software projects around nowadays, and it receives too little love for what it represents, and its potential.

thanks! :)

  1. We have the feature, but we turned it off on matrix.org because it's very resource intensive. We need to optimise it, and we haven't done so yet. Hopefully we will find time to do it in the coming months, but it's been a few years now since we had to disable it, and hasn't reached the top of the list.
  2. yeah, we desperately need to improve VoIP :(
  3. You can bridge to Discord, and they will see all the messages sent by the users on the matrix side, including their name & avatar. They wouldn't see your IP address or other personal info. The solution of course is for Riot to improve to be better than Discord however :D
→ More replies (1)
→ More replies (1)

3

u/TrashyJunkLLC Sep 28 '19

Black phone was giving bug finders 10k for a breach right before release. This stuff takes big money and sacrifice to get rolling. I really would love to implement this platform onto my daily use text messages & calls however i haven’t the slightest idea at how a project like this would be financed or even fathom the type of man hours this project must have taken even thus far. My hat is off to you gentlemen (and women) for undertaking such a task.

Last time I had any hope in a comms privacy project was when they were talking about ... I think they coined it as “shard cloud” they fractioned” off bits and pieces to a cloud to decentralize any sort of stored data. Where random bits and pieces are stored in multiple random clouds that are then encrypted? A sequence runs to collect the data from each one? If a hacker Cracks open one cloud it would only render them corrupt data or a partial file.

I heard about this style being developed years ago by some of my military tech dev friends.

However I am excited to see there is a new contender in the privacy field.

If anyone would be kind (or patient) enough to explain how this project is superior to the competitors in laymen’s terms I would be grateful.

I am just a consumer , I am not in the industry but I would like to thank you for all of your hard work for building something that is very important to me. We are a dying Breed - it’s like we are a niche customer basis nowadays. I feel like most people just don’t care anymore about their privacy! Once you guys get something rolling I really hope you can compete with and become mainstream like WhatsApp and get rolling in the tech big leagues. Best of luck. Keep up the hard work!

If anyone has or knows of a running “clean version” of a messaging or calling platform on IOS that uses this platform I would appreciate a link to it.

4

u/ara4n Matrix.org project lead Sep 28 '19

The main difference is that Matrix lets anyone run their own instance, much like you can run your own email server, and have total autonomy and control over the conversations on that instance. You can also use whatever app you like to talk to it (like email). We also have robust end-to-end encryption (although it needs to be more usable).

3

u/Open-Sourcery Sep 28 '19

Are there any plans for native SMS bridging in the Riot app?

One of the few things that makes me wish I had a mac / iPhone is the seamless iMessage SMS integration. The SMS bridge works alright, but you need to accept a room invitation and it doesn't support proper puppeting due to it not being an appservice. SMS is pretty universal and it would be a convenience add for users to be able to send texts from their tablets, desktop etc.

3

u/ara4n Matrix.org project lead Sep 28 '19

We had it pre-Matrix, interestingly, but it's a pain to do - especially as Google kept changing the SMS APIs on Android. It's not on the roadmap currently unless someone pays us to do it, i suspect. (but we'd certainly consider merging an open source contribution for it! :)

→ More replies (1)

6

u/disobeyedtoast Sep 27 '19

"Canonical DMs (i.e. enforcing One True Direct Message when you talk to someone)" What do you mean by this?

4

u/MonokelPinguin Sep 27 '19

Currently you can have multiple one to one direct chats. This quickly becomes confusing. So Canonical DMs are an approach, where you have only one direct chat for each person. When you try to message someone directly, it gives you the old chat, if it exists and only creates a new one, if no direct chat with that person exists. This mirrors other messengers like WhatsApp, Discord, IRC, etc. You can still create a private room and invite only one other person, but if you create a room with the intent to only message one person directly, you will only have one of those rooms.

0

u/[deleted] Sep 27 '19

[deleted] — view deleted comment

4

u/disobeyedtoast Sep 27 '19

thank you.

5

u/ara4n Matrix.org project lead Sep 27 '19

wot they said :)

2

u/yodogg14 Sep 27 '19

Do you hire data engineers.

6

u/ara4n Matrix.org project lead Sep 27 '19

not currently, but we're thinking about it as part of anti-spam & anti-abuse work.

2

u/MimoB7 Sep 27 '19

Hello, thank you for doing this AMA

Checking matrix users in my rooms shows me a device section shows me some information about their devices can you explain what type data is shared and why is it done like this and what does it mean for privacy and data mining?

5

u/ara4n Matrix.org project lead Sep 27 '19

the default device name shared with other people is determined by the client, but typically this is just the name of the app (e.g. Riot/Web, Riot/Mobile, Quaternion etc). We've improved this in Riot in 1.4 to make it very clear that the name is publicly visible. There is a plan to potentially remove device names entirely once E2E cross-signing lands, as you shouldn't need them so often.

In practice it shouldn't be very impactful for privacy or data mining - it just shows roughly what clients the user is on.

2

u/BloodyIron Sep 27 '19

How soon before LDAP/AD accounts being locked/disabled/etc propagates to matrix/riot accounts? Last I checked that wasn't working and I reported it at the beginning of this year... :/

4

u/ara4n Matrix.org project lead Sep 28 '19

It's still on the radar; we have a paying customer after it too which will help make it finally happen. Sorry it hasn't got to the top of the todo list yet.

→ More replies (1)

2

u/gildedlink Sep 27 '19
  • At this time, roughly how much of the userbase of Matrix uses an implementation or identity server within the control of New Vector?
  • Does Matrix (and Riot, being its largest implementation) support messaging without a registered identity held server side?
  • Does Riot's registration process still require a CAPTCHA? Are there plans to at least use something other than Google for that? What about offering alternatives to a CAPTCHA altogether?
  • What about email? Is an email address (just more metadata) necessary for registration?
  • Upon announcing Synapse 1.0 it was specified that servers must now configure a TLS certificate to operate. Certificate Authorities are relatively centralized themselves and we have plenty of history of their failure as a system to remain secure from attackers, and even today we see issues on the level of governments requiring root CAs to effectively intercept/divert traffic. Doesn't this design change constitute a vulnerability on the part of server operators?
  • While key backup within conversations is something that Riot persistently nags me about, any explanation I've tried to hunt down about exactly where and how keys are backed up hasn't been detailed enough. Could you shed some light on that feature in particular? I'd like to know exactly how much trust is being placed in the identity server if I use this feature, and how (if possible) I can verify that.
  • In a worst case scenario, looking at this from a nation state adversarial point of view: Are any implementations of matrix (Modular included) able to function without steady access to matrix.org?

3

u/ara4n Matrix.org project lead Sep 28 '19

Based on the phonehome stats in synapse, about 40% of the active users on Matrix sit on servers controlled by New Vector. This is an underestimate given many folks don't phone home. Identity servers don't phone home so we don't have stats on that, but given we've just removed use of identity servers by default from Riot, it's a slightly academic question - they were always optional.

Matrix (and Riot) absolutely supports messaging without a registered identity held on the server side.

It's up to the server admin whether to require a CAPTCHA for registration. The matrix.org server has one to mitigate abuse. We'd very much like to use an alternative if someone can point us at one which works as well as Google's reCAPTCHA.

Email address is not necessary for registration.

I agree it's annoying that we've ended up using TLS CAs for establishing server identity when talking HTTPS. But honestly the previous solution had more flaws, and we don't have time to build a replacement to TLS on top of everything else. As soon as someone else fixes the flaws in TLS we'll use it.

E2E keys are backed up on your homeserver, and are encrypted using your passphrase or recovery key such that only you can get at them. They don't go anywhere near identity servers; these are optional servers used for looking up users on matrix by email address or phone number. We should have called them phonebook servers or something.

All implementations of Matrix are able to function fine without steady access to matrix.org! Prior to today's privacy changes there were some places where we put matrix.org in the default config, but you could always remove it - and as of today they've been removed anyway (or given a big fat warning for the one config we can't easily remove yet).

→ More replies (1)
→ More replies (1)

2

u/992jo Sep 27 '19

Hello and thanks for this AMA.

One of the big problems of many services is in my opinion, that your goals are often not the same the goals of whomever is providing the service. This seams to be true especially for many companies, because those have financial interests, investors, etc.

  • Does New Vector have investors?
  • How many people are currently working for New Vector?
  • Would you consider the company financially stable?
  • Where does the money come from to pay the bills?
  • How do the Matrix Foundation and New Vector overlap from a staff/team viewpoint?

4

u/ara4n Matrix.org project lead Sep 28 '19

> that your goals are often not the same the goals of whomever is providing the service

I assume you mean that the user's goals may not be the same as those who are providing the service?

It's important to understand the goals of Matrix are set up by the Matrix.org Foundation, not by New Vector - and of the five Guardians of the Foundation, only two (myself & Amandine) are related to New Vector. And the goals are spelt out very explicitly - see https://matrix.org/foundation for details.

That said, New Vector is the company we set up to hire the core team in 2017 in order to keep the lights on and work fulltime on Matrix, contributing our work to the Matrix.org Foundation, so it's reasonable to ask about NV's funding too.

  • Yes, New Vector has two minority investors; Status (who took an equity stake in exchange for funded us with $5M in Jan 2018) and Amdocs (who incubated us from 2014-2017). The rest of the company is owned by the founders (myself & Amandine) and the employees.
  • There are 29 people employed by NV today. The team splits down very roughly into ~6 backend devs on Synapse/Dendrite, ~6 frontend devs on Riot/Web, ~6 mobile devs on Riot/Mobile, 2 encryption specialists, 1 bridge specialist, 1 ops specialist, 1 spec specialist, 1 UX specialist, 1 evangelist, 1 finance guy, 3 modular.im devs and one CEO/CTO (me) and one COO (Amandine).
  • Yes, the company is financially stable.
  • The money comes from selling SaaS via modular.im, and providing professional services and custom/sponsored development to folks building on top of Matrix.
  • The Foundation has no employees, just 5 directors, of which 2 work at NV.
→ More replies (1)

2

u/tinywrkb Sep 27 '19

Hi Matthew, thank you for doing this AMA.

IIUC the server sends user's read receipts for everyone else in the (public) room. How this makes sense with regards to privacy? is there a reason for concern?
If it wasn't the case would the user's read receipts still propagate between servers or kept only on the user's server?

When designing the protocol did you ever consider that it might be too successful? In other words, you create a chat platform that is very accessible and easy to use which becomes ubiquitous and popular and you end up with channels that are overrun and which it's impossible to follow the conversation in them.
I would think something like dynamic subjects which are created by directly responding to a user message in the channel (maybe using different send/reply button) could help filter the noise.

3

u/ara4n Matrix.org project lead Sep 28 '19

We're working on disabling RRs - it's surprisingly hard as RRs determine whether you see unread badges or not. You can follow along the progress for this over at MSC2285

Yes, we constantly worry about how well Matrix scales and what happens if it fills up with noise and spam/abuse. We're experimenting with threading as one way to solve this, as well as filtering mechanisms to empower users to tune out the stuff they're not interested in. The dynamic subjects idea sounds like a type of threading, quite similar to one that we've been considering recently :)

→ More replies (1)

2

u/Oreolek Sep 28 '19

I can run IRC or Jabber server on a microcomputer but it takes a lot more to start Synapse. What's your optimization plan?

3

u/ara4n Matrix.org project lead Sep 28 '19

https://www.reddit.com/r/privacy/comments/da219t/im_project_lead_for_matrixorg_the_open_protocol/f1mtiu1 has a bunch of details for our optimisation plan for Synapse. It’s already got way better over the last year though.

→ More replies (2)

2

u/demosthenex Sep 28 '19

I've been watching the project for a while. What advantages does this have over XMPP?

2

u/ormagoisha Sep 28 '19

Does Riot/Matrix feature disappearing messages? Delete messages across all chats? What about containing all messages to user devices only vs storing them on the cloud?

5

u/ara4n Matrix.org project lead Sep 28 '19

Does Riot/Matrix feature disappearing messages?

Not yet, but it's planned - see https://github.com/matrix-org/matrix-doc/blob/matthew/msc2228/proposals/2228-self-destructing-events.md for the design.

Delete messages across all chats?

Yes. We've had that for years (originally called 'redact', then renamed as 'remove'). As of Synapse 1.4 the redactions get garbage-collected from the database after 7 days by default, but the server admin can tune the duration to taste (think of it a bit like emptying a trashcan).

What about containing all messages to user devices only vs storing them on the cloud?

Not yet, but this is both planned and mid-implementation, see https://github.com/matrix-org/matrix-doc/blob/matthew/msc1763/proposals/1763-configurable-retention-periods.md for the design. Specifically, setting expire_on_clients: false (the default) means that messages get stored on clients where possible even if the server deletes them.

2

u/RedditorAccountName Sep 29 '19

Does Riot/Matrix feature disappearing messages?

Not yet, but it's planned - see https://github.com/matrix-org/matrix-doc/blob/matthew/msc2228/proposals/2228-self-destructing-events.md for the design.

So, if I'm getting this right, could disappearing messages become like Snapchat/Instagram/Facebook/Whatsapp stories? In the eventual case where someone builds a social network over Matrix (a la Movim for XMPP), one could post a "disappearing message" that is an image or a video, right?

2

u/ara4n Matrix.org project lead Sep 29 '19

yup.

→ More replies (1)
→ More replies (12)

2

u/RanceJustice Sep 28 '19 edited Sep 28 '19

First of all thank you for your hard work on this very necessary project. As we see messaging becoming increasingly centralized and proprietary, Matrix offering a FLOSS and federated alternative while maintaining (and extending) the feature sets that make the big names desirable, is greatly appreciated! I know I'm a bit late and others have already asked many great questions but if you have a moment.

Is there something of a roadmap for the development of either alternative clients (or servers) for that matter? At the moment, it seems that Riot is pretty much the only full-featured GUI client out there capable of handling many important features such as voice/video, encryption and the like. If I',m not mistaken Riot is based on Electron and I've run into potential users who would prefer it not depend on such a heavily wrapped chromium/webapp platform. I know you're still making big changes to both the client and server function/features, so it may very well be that refining Riot in that manner or developing alternative client. Are there any plans to modernize the main client (and server software for that matter. I saw you mentioned both Synapse and possibly Dendrite being capable alternatives?) and/or make it easier for others to build native clients etc? Or is that something further down the line as there's too much yet "up in the air" that needs to be settled in terms of features and implementation? Either way seems a viable path forward, I just want to know what to tell those who ask about such things.

Next and most importantly, I'd like to call attention to Discord in particular. For a multitude of reasons, Discord has basically taken over the entire gaming/online personal use aspect displacing many independent chat, messaging, VOIP, video etc.. services (in which FOSS were prevalent, such as Mumble for gaming VOIP) , replacing them with a single, centralized and proprietary service. At the moment, Matrix / Riot is in the best position to be a real alternative in terms of delivering on what makes Discord popular, but also being open source, federated, and adding features like e2e encryption and other privacy-centric elements. With this in mind, I saw you mentioned that both "1-to-1" and "Voice Room/multi-user calls" are in the works for improvements, with features like PTT or voice activation options? Video is similarly on the docket? How about an "overlay" for full screen games and applications? I know this is a big feature for lots of users on Discord, and if it doesn't work more or less "seamlessly" it will be harder for our early adopters such as myself to convince others to switch over. Discord also has a lot of ancillary little features that I assume will be coming in time (ie in-line images, icons/emoji in "response" to a message in channel etc) that are the kind of thing that people don't think of as major features but put surprising weight on when they try something that doesn't have them. Discord's detection of running apps/games, tracking their history and the ability to show what you're doing - from playing a game to broadcasting etc.. - as something of a status, plus ways to invite others to play with you or come easily into your room, all are strong benefits I'd like to see in Matrix.

Finally, one big element of Discord that has propelled their success is their integrations with other services, including Patreon / Liberapay style funding. Subscribing to someone's Twitch channel or backing them on Patreon means (near) automatic access benefits to users on Discord - changing their name color and user class, giving access to special channels etc. These sort of integrations go a long way to getting Discord's name out there and the same can be done for Matrix / Riot if such features existed. Matrix (using Riot) is already very nearly a suitable drop-in replacement for Discord, but any rough edges that can be sanded down and features added to make the transition easy for those who may not initially understand the benefit of an open, federated system etc... will be helpful.

Thanks again for your time and best of luck!

P.S. - Working with Nextcloud folks and Fediverse integrations are great ideas!

5

u/ara4n Matrix.org project lead Sep 28 '19

Is there something of a roadmap for the development of either alternative clients (or servers) for that matter?

So, as the core project we provide the reference implementations - Synapse and matrix-{react,ios,android}-sdk which power Riot. We have roadmaps for these (https://matrix.org/blog/2019/02/15/publishing-the-backend-roadmap and https://medium.com/@RiotChat/whats-next-for-riot-web-be48f948c801) respectively.

However, alt clients & servers almost by definition aren't done by the core team; we have more work than we can handle with the reference ones! So, the wider community works on those. Each project may have their own roadmap. For instance, the Construct server has a basic roadmap at https://github.com/matrix-construct/construct#roadmap.

Are there any plans to modernize the main client (and server software for that matter.

I would love to turn Riot into a proper native app rather than Electron on its respective platforms. Perhaps one way to do that would be to co-opt alternative clients (e.g. Seaglass on MacOS) and turn it into Riot/MacOS - or more likely, just say "Rather than installing Riot on MacOS, install Seaglass instead!".

On the server side, we're iterating on Synapse currently, but also keeping Dendrite development alive for next generation stuff.

I'd like to call attention to Discord in particular.

So there is work going on for PTT audio like Discord over at https://github.com/vector-im/riot-web/issues/5993. It works, but we haven't shipped it because a) we haven't had bandwidth to merge it, b) we need much better test coverage to check that having shipped it we don't promptly break it again (for instance, we don't exactly test on Windows as a matter of course).

Totally agreed that custom emoji, custom reactions, inline images etc are super important for community traction, and we're going to try to prioritise them as high as possible.

thanks!

2

u/[deleted] Sep 27 '19

Have you considered building a ZeroNet client?

5

u/ara4n Matrix.org project lead Sep 27 '19

not really; the zeronet folks seem to be doing good stuff there :)

→ More replies (1)

5

u/PwnagePineaple Sep 27 '19

Are there any working theories on what a decentralized identity management system would look like?

7

u/Hemicrusher Sep 27 '19

I created an account because of r/privacytoolsIO but have a few observations.

Reminds me of a better version of Mastadon as my account spans across all the "rooms". But most of the subjects I can find are almost all "coding" based and nothing really general in nature, which would keep most anyone I know from using it. Plus you really need someone to sit down and create a simple description and make it super easy for people to understand and use. It made sense to me, but there is no way my Mom would use it and before you discount her, she is 78 and been using computers since 1989 and is pretty good at figuring things out.

Anyhow, I like the idea.

1

u/FryBoyter Sep 27 '19

Almost no alternative matrix client supports E2E. What do you think is the reason for this and how could you support the respective developers in this case?

3

u/ara4n Matrix.org project lead Sep 27 '19

This really isn’t true. Alternate independent clients that do full E2E include weechat-matrix and nheko; and quaternion, pidgin and fractal have fairly advanced WIP support. meanwhile any client built on matrix-js-sdk, ios-sdk, android-sdk, python-sdk and matrix-nio gets it for free. It is hard to implement well of course (there’s a reason e2e encryption is rare!) but we do support devs who do so. the python and quaternion impls were done as Matrix.org projects for GSOC, and we hired the developer of matrix-nio/weechat-matrix.

→ More replies (1)

1

u/Mr-Yellow Sep 27 '19

How can it be decentralised if you have a Terms Of Service?

6

u/ara4n Matrix.org project lead Sep 27 '19

for the same reason that the Web can be decentralised and yet websites have a terms of service. Matrix accounts sit on one (or in future multiple) servers. Whoever runs the server has the right to ask their users to respect a terms of service.

2

u/Mr-Yellow Sep 27 '19

So what happens when a state applies pressure to all of those servers?

If the sheep are still in corrals is there really added safety?

2

u/ara4n Matrix.org project lead Sep 28 '19

If a state applies pressure to all the servers in its state, then it sounds like a good idea for those servers to go dark - run as tor hidden services, or run behind VPNs or whatever.

→ More replies (2)
→ More replies (6)

1

u/NewsworthyEvent Sep 27 '19

The largest barrier to getting people to join my server is the UI being a little intimidating, and not super modern on mobile (at least Android). Do you think Riot could be enhanced to look more like a standard messenger (like Telegram or WhatsApp)?

7

u/ara4n Matrix.org project lead Sep 28 '19

Agreed. We're trying to do this currently. RiotX on Android is hopefully a massive improvement and feels more like TG or WA. Riot/Web has further to go, but we're working on it. The idea is that the apps start simple (feeling like TG or WA) and then if you do start joining hundreds of rooms and chatting to thousands of people, the UI adjusts to feel more like Discord or Slack.

1

u/chill1488 Sep 28 '19

Why is still impossible to easily remove accounts from your self hosted matrix/riot instance?

This has been an issue with both SQLite and Postgres DBs from what I can tell. I have managed both and it’s always a headache.

You can remove users from tables and Riot but not completely from the database more their messages.

And when doing this it creates issues with unable to re-use account names.

I feel this is such a simple feature that as far as I can tell has never been implemented.

Lastly. Password management, specifically in self hosted matrix. I do not want to see user passwords since they are hashed.

But I believe having to create and replace password hashes in raw SQL is horribly over complicated for non SQL literate people and a big downside that I’ve seen people avoid the software altogether.

3

u/ara4n Matrix.org project lead Sep 28 '19

You can deactivate accounts today - we even expose a button for it in Riot for server admins. You're right that it doesn't delete all their messages, given that would wreck the history of anyone else they were talking to, and we consider messages to be shared with the people who received them at the time (just like email).

Better user management UI is coming soon with improved synapse management interface.

1

u/[deleted] Sep 28 '19

Can I use Riot.im through Tor browser? Will it help anonymized stuff?

3

u/ara4n Matrix.org project lead Sep 28 '19

Yes, you can. It will stop your server admin knowing you IP.

1

u/ilovethosedogs Sep 28 '19

I think focusing on nicer clients for iOS would help with adoption. Riot for iOS right now is... not very attractive.

3

u/ara4n Matrix.org project lead Sep 28 '19

personally I find it pretty good, other than some performance problems (and that layout is a bit broken on iPhone X and later). what uglinesses are you seeing?

→ More replies (1)

1

u/lenjioereh Sep 28 '19

Why not ship Matrix with a client app like all other chap apps like Rocket.Chat does?

6

u/ara4n Matrix.org project lead Sep 28 '19

Because it would unfairly privilege that app over the others, and because clients are really easy to set up and running yourself. Just as you can connect to a web server with any web client, and it'd be horrible if the webserver said "Best viewed on IE6" and forced you to install IE6, so with Matrix.

That said, I agree we could make the process of firing up the client for the first time smoother.

1

u/[deleted] Sep 28 '19 edited Sep 28 '19

Is Matrix planning to address the issues brought up in these papers?

1

u/Jedibeeftrix Sep 28 '19

Hi, is there anything you (or the wider Matrix dev community) could do - or would like to do - to see a first-class native Client become available for SailfishOS?

3

u/ara4n Matrix.org project lead Sep 28 '19

I think all the Qt-based clients have potential to work on SailfishOS, if the form factor was adjusted correctly. I'm not sure if anyone on the core team uses SailfishOS, but this is very much something that could be contributed by 3rd parties. One of the very first alternative matrix clients (Tensor) ran on Sailfish iirc, but it hasn't been touched in years. https://matrix.org/docs/projects/client/tensor

→ More replies (1)

1

u/foadsf Sep 28 '19

I think you should use terms self hosted and federated instead of decentralized. The true decentralized chat I have seen is Briar.

5

u/ara4n Matrix.org project lead Sep 28 '19

Well, this is a question of terminology. In Matrix the rooms are decentralised across the servers - no single server controls the conversation; the data is replicated equally between them in a Merkle tree. This is in stark contrast to (say) XMPP MUCs, which have a single focal point for a room at any given point.

I would argue that you should say "p2p" to describe briar rather than just "decentralised". And as per elsewhere on the thread, Matrix has potential to go p2p and we're working on it. Interestingly Briar & Matrix are very similar (coincidentally) under the hood.

2

u/foadsf Sep 28 '19

can you share some links about Matrix p2p progress? is it possible to have p2p over Bluetooth and wifi, like Briar? Briar's biggest hurdle, IMHO, is that it is limited to a single platform, Android. they can't make an iOS app. also they haven't made clients for other platforms like Windows or macOS. can you deliver that?

5

u/ara4n Matrix.org project lead Sep 28 '19

P2P progress is very early days. We built an experiment to use libp2p as a transport over at https://github.com/matrix-org/libp2p-proxy, but it's a work in progress. If it works, then we'll inherit the same transports that libp2p supports (which includes bluetooth & adhoc wifi like Briar). We already have clients on Windows & macOS etc, so we could hopefully deliver that too. I /think/ that this should all work on iOS too, with sufficient work.

→ More replies (1)
→ More replies (1)

1

u/xwolf360 Sep 28 '19

Inb4 it becomes successful and warners sues the shit out of you.

3

u/ara4n Matrix.org project lead Sep 28 '19

IANAL but I don't think that WB can trademark a dictionary word like Matrix. If we were in the same space (e.g. making a film rather than a software protocol) then they might have a point though. At least we're not doing anything with VR.

→ More replies (2)

1

u/mornaq Sep 28 '19

Is there any feasible way of achieving communication with no metadata shared with service owners (who, when, with him), but also no IP shared between clients and with full offline sync (so no client has to be connected at all times)? The well known truth about privacy/security is the fact that privacy/security at the cost of ease of use comes at the cost of privacy/security

3

u/ara4n Matrix.org project lead Sep 28 '19

Yes - there are a bunch of projects working on this (Loopix, Kareoke, Vuvuzela, Elixxir etc). Our approach is to focus on making Matrix work well in its current incarnation while making damn sure that we can evolve it to benefit from this sort of approach in future.

The plan is basically:

  • Experiment with running homeservers clientside
  • Experiment with routing the traffic over an overlay network
  • Experiment with relaying the traffic via dead-drops so you can't tell who's talking to who (assuming you have sufficient cover traffic).

The beautiful thing about this is that all the existing Matrix clients (e.g. Riot) and bots and bridges could just work against the P2P architecture without a single change. A lot of the effort that's gone into Matrix has been on the client side, so this could be truly subversive - one second all the Riot users are happily using today's Matrix; they hit refresh, and find themselves running a local homeserver with decentralised accounts and have gone P2P without realising it :D (It's kinda the opposite of what happened to Skype).

→ More replies (6)

1

u/Gatgeagent Sep 28 '19

When will you fix the issues seen in https://github.com/libremonde-org/paper-research-privacy-matrix.org and when will we see an decentralized identity server?

5

u/ara4n Matrix.org project lead Sep 28 '19 edited Sep 28 '19

Riot 1.4 and Synapse 1.4 fixes almost all of the legitimate issues raised there - see https://matrix.org/blog/2019/09/27/privacy-improvements-in-synapse-1-4-and-riot-1-4 for full details.

Genuinely decentralised identity is pretty much an open area of research - see elsewhere on this thread for a discussion of the possibilities out there (DIDs, keybase etc). Hopefully someone will develop a system we can use for Matrix. Identity discovery is absolutely nothing specific to Matrix; we’re not the only project who needs to map email addresses and phone numbers to opaque IDs (eg bitcoin addresses; ipfs hashes; etc).

However, bear in mind that identity servers are strictly optional and always have been and that we just disabled them entirely in Riot by default, and only prompt to use them if you try to invite users by email address or phone number.

1

u/fogglesworth Sep 28 '19

I know these things can be hard to predict/schedule, but any ideas on when the Riot clients for iOS and Android will be v1.0?

3

u/ara4n Matrix.org project lead Sep 28 '19

Riot/Android will be replaced by RiotX which will effectively become its 1.0. It’s a few months away. Riot/iOS is closer - perhaps the same timeframe? Hard to predict honestly as it depends on the other commitments we have.

1

u/TechnoL33T Sep 28 '19

Is Matrix ever going to be simple to host?

Also, your name is my name!

3

u/ara4n Matrix.org project lead Sep 28 '19

We're working on making synapse easier to install - e.g. https://github.com/matrix-org/synapse-config-generator should help a lot. It's pretty easy though in my opinion; easier than a mail server for instance.

And yay team Matthew (i assume rather than team ara4n...)!

1

u/F-J-W Sep 28 '19

Given that encryption is obviously not obligatory in matrix either, what is supposed to be its advantage over xmpp which is well established and has many well-working clients?

4

u/ara4n Matrix.org project lead Sep 28 '19

The main differences these days are:

  • Matrix is effectively a decentralised conversation database rather than a chat protocol. It synchronises chatroom history between the participating servers. This is a fundamentally different design to XMPP, which is a message-passing protocol.
  • Matrix's governance & spec model is completely different. There is one single spec at any given point, rather than lots of XEPs, and the spec evolves under the guide of the Spec Core Team which is quite opinionated in ensuring there is only one official way to do something in a given version of the spec.
  • Matrix's baseline transport is boring old HTTP+JSON, which any web developer can use without having to think too hard.

If you feel that XMPP is well established and has many well-working clients, then please use it! We have an excellent bridge between XMPP & Matrix: https://github.com/matrix-org/matrix-bifrost. Our focus is on collaboration rather than competition.

→ More replies (2)

1

u/cocoeen Sep 28 '19
  1. What do you think about using blockchain technology for decentralised accounts, so migrating accounts between server wouldnt be nessessary?
  2. Matrix depends on DNS, are there any thoughts to add alternative ways for server name resolution? (to prevent censorship)
  3. What about authentication via devices like Yubikey (U2F, FIDO) ?

4

u/ara4n Matrix.org project lead Sep 28 '19

What do you think about using blockchain technology for decentralised accounts, so migrating accounts between server wouldnt be nessessary?

Matrix is a decentralised ledger of sorts already, albeit without a block sealing mechanism. All we need for decentralised accounts is to switch ID to be content-addressable keys, which is what MSC1228 is all about.

Matrix depends on DNS, are there any thoughts to add alternative ways for server name resolution? (to prevent censorship)

Yes. We're looking at DHTs (e.g. libp2p's stuff) and other approaches (ENS, GNS etc) for locating servers.

What about authentication via devices like Yubikey (U2F, FIDO) ?

It's a massive oversight that we don't have it yet. 2FA is being looked at over at https://github.com/matrix-org/matrix-doc/blob/msc2271/proposals/2271-totp-2fa.md.

1

u/[deleted] Sep 28 '19

Hi, I like your work very much. Especially the focus on usability and federation. You put very modern ways of communication witch already exist in walled gardens (slack/whatsapp/skype) into one open standard, that’s great.

For what I am very curious about is some opportunities you have, which are not yet common so much but might be very interesting in mid term:

  1. The opportunity of “integration manager”. As far as I understand, this could be used as a webapp store like wechat has it. Do you want to put more offer into that? I think its a good option for being more finance independent and having a marketplace is always a chance to earn money. This also gives small independent web services/pages with focus on collaboration platform and users.
  2. I am not sure how all the matrix ids discussion (Removin MXIDs From Events #1228) is infection use normal users use cases:

as I understand it help to prevent spam a lot.

I thought about the spam problem email has. I think the main problem is having the identification, the initial-one-time-connection and the further addressing into one “email address”.

To you have in mind to separate these? You could for example put the “ identification and the initial-one-time-connection” into an text message or mail (identification) with a link (initial-one-time-connection) or defining identifier who are dependently from the matrix account and can be changed if a identity provider get hacked.

Thanks.

2

u/ara4n Matrix.org project lead Sep 28 '19

> The opportunity of “integration manager”. As far as I understand, this could be used as a webapp store like wechat has it. Do you want to put more offer into that? I think its a good option for being more finance independent and having a marketplace is always a chance to earn money. This also gives small independent web services/pages with focus on collaboration platform and users.

Precisely :D

> I am not sure how all the matrix ids discussion (Removin MXIDs From Events #1228) impacts normal users use cases:

It should be invisible to normal users, but it means that a) when you GDPR erase yourself, your PII user IDs can be removed; b) you can multihome your accounts on multiple servers; c) it paves way way to P2P matrix.

For antispam: we're looking at shared greylists as a way to mitigate spam. The identity provider is only used for discovering users, not tracking accounts.

1

u/Jacko10101010101 Sep 28 '19

Decentralised accounts (i.e. letting users migrate between or exist on multiple servers)

I dont understand, this sounds more like centrlized account to me...

4

u/ara4n Matrix.org project lead Sep 28 '19

Today accounts live on a single server, which effectively centralises them (but rooms are replicated over multiple servers). In future, the idea is that accounts can live on multiple servers, which effectively decentralises them - letting you pick precisely what servers your account resides on. For instance, you could pick "my laptop, my phone, my VPS in Switzerland, and my VPS in Lichtenstein" or wherever you trust to store your data, and off you go.

→ More replies (3)

1

u/Freefall01 Sep 28 '19

hey thanks for doing this, hopefully im not too late.

When will the main matrix.org server get a data takeout option and a tool to decrypt the messages?

4

u/ara4n Matrix.org project lead Sep 28 '19

There's already a data takeout option (section 2.1.3 of https://matrix.org/legal/privacy-notice). We'll automate this at some point in future; at the moment we run them manually.

Tools for decrypting messages already exist - matrix-recorder & pantalaimon. However, Riot/Desktop should sprout this as a first class feature thanks to Seshat in the coming weeks.

1

u/[deleted] Sep 29 '19

How do you feel about Zulip?

They specifically boast about having more developers than Matrix.org...

6

u/ara4n Matrix.org project lead Sep 29 '19

Zulip seems nice but a bit opinionated in its threading; they seemed open in the past to federation via Matrix. They seem to have written off E2EE as too hard (and I don’t blame them!) I haven’t seen them comparing themselves with Riot or Matrix.

→ More replies (1)
→ More replies (1)

1

u/RedditorAccountName Sep 29 '19

Hi! I hope it's not too late, but I wanted to ask: is there a reason that you chose an Apache License for Riot and Synapse instead of GPL? I mean, my impression is that GPL is more geared towards users' freedom than other copyleft licenses, and you guys are always fighting for the users' freedom.

Btw, I know anyone can write a GPL-licensed client or server, but I'm just honestly curious about the decision :)

Anyway, very happy with all the work you've been doing and are doing!

2

u/ara4n Matrix.org project lead Sep 29 '19 edited Sep 30 '19

Matrix is shamelessly modelled after the Web as a project (we're basically trying to provide the missing realtime communication layer of the Web). And as such, we want people to be able to use the reference implementations as widely and as liberally as possible with as few constraints as possible, in order for Matrix to spread as far and as wide as it can. Hence Apache (so that people can use it in proprietary software if they want) rather than GPL. We feel that user freedom is more than sufficiently upheld by the standard & protocol & reference impls & network itself being open. To put it another way: even if you end up with some crappy proprietary Matrix client, you should be able to swap it out for a nice FOSS one if you want :)

→ More replies (1)

1

u/hoiru Sep 30 '19

Hi! Thank you for this AMA!

  • How would you compare Matrix (and Riot app) with Signal in terms of privacy and security?
  • If any authority (eg. A Government) asked you to give them everything from a user, what would Riot know / have recorded about that user? What would be given to that authority?
  • Have you ever thought of a decentralised paying / kind of banking platform appended to Matrix? Any way this could be done?
  • I don't see the usage of Google Captcha as a good thing. Why don't switch to a different open source alternative?

3

u/ara4n Matrix.org project lead Sep 30 '19

How would you compare Matrix (and Riot app) with Signal in terms of privacy and security?

This has been answered a bit elsewhere in the AMA, but the TL;DR is that you can't really compare them - they have every different designs with different trade-offs.

Signal is centralised, so presents an attractive single high-value target to an attacker. It also forbids 3rd party clients, and it's hard/implausible to run your own server, and doesn't have open APIs. It optimises for a closed but secure system to maximise privacy over everything else.

Matrix however is decentralised, so anyone can choose their own server to trust. If that server is well administered (which is admittedly a big 'if') then they can have total autonomy & control over the data, as well as host it in whatever environment they trust & like. It's an open standard, with open APIs, and an open network - so no restrictions on what clients or servers you use (which arguably reduces privacy a bit, as if someone joins a chatroom with a crappy insecure client, they compromise it for everyone).

So, it really depends on how highly you value freedom/openness relative to privacy.

If any authority (eg. A Government) asked you to give them everything from a user, what would Riot know / have recorded about that user? What would be given to that authority?

If the user is on a server we run, then the data we gather in order to run the service is listed at https://matrix.org/legal/privacy-notice.

If the user is on their own server, then we have no visibility on their data at all, other than conversations which they are participating in which also have participants from our servers - where we then (by definition) can see who is in the room, and who is speaking when, but not what is being said (assuming the room is e2e encrypted).

In terms of what would be given to an authority - if UK law enforcement show up with the appropriate authorisation to request the data we, we have no choice but hand over what we have if legally compelled.

Have you ever thought of a decentralised paying / kind of banking platform appended to Matrix? Any way this could be done?

Yes. You could certainly do payments over Matrix, and it's something we've been keeping an eye on - however, the emphasis on the core team is to ensure the communication protocol itself works well rather than getting distracted by tokens/payments etc.

I don't see the usage of Google Captcha as a good thing. Why don't switch to a different open source alternative?

We don't like it either, but we haven't found an open source alternative that works well enough. If you run your own server you don't have to use it. Suggestions welcome!

1

u/ormagoisha Oct 02 '19

I was wondering if Matrix one day could adopt a personal information manager role as well (think evernote, or the more obscure but more powerful Infoselect - a local windows app). Considering it has pseudo html, it seems like wysiwyg formatting, tables, search etc could be implemented and then your notes could be essentially "messaged" to yourself. You'd obviously want a different layout for notes, and you wouldn't want them auto deleted, but with the upcoming p2p mode this might be an interesting idea to experiment with one day, because frankly, most PIMs, including all the open source ones, aren't that great. Theyre slow, lack basic features (like hotkey support and fast search).

Anyway just a thought!

1

u/ara4n Matrix.org project lead Oct 02 '19

yeah, absolutely - this would be a great app to build on Matrix :D i already use a 'Self' chatroom as a PIM of sorts, and it really wouldn't be hard to expand this to be more generic.

1

u/catonic Oct 03 '19

The Matrix Github recently detailed a cybersecurity incident. Has this incident fully been recovered from, and has the organizational cybersecurity position improved beyond the lack of security measures documented by the person who broke in?

2

u/ara4n Matrix.org project lead Oct 05 '19

The incident in question was back in April, and yes, we have fully recovered from it - and our infosec position has improved considerably, surpassing those documented by the attacker. https://matrix.org/blog/2019/05/08/post-mortem-and-remediations-for-apr-11-security-incident/ has the details.

1

u/c3419110 Oct 05 '19

So, as a team, we put our heads together to imagine how you would actually come up with an open communication protocol that would actually be successful like HTTP and SMTP had been (in comparison to SIP or XMPP, which never exactly went mainstream

Matrix's mission is to just provide a ubiquitous open network like the Web, but for realtime communication - and we'd love all and any of the above to hook into Matrix to break down the walls that otherwise create closed silos and walled gardens

even i registered because I'm very curious about the answer

  1. why not make a better XMPP client in that case - AstraChat or IRCcloud this is evidence that it is possible
  2. how these bridges would differ from transport in XMPP? IMO nothing. I see that exists matrix-bifrost based by libpurple, what stands in the way to do so for XMPP?

1

u/ara4n Matrix.org project lead Oct 05 '19

Matrix is a fundamentally different protocol and architecture to XMPP - I answered the main differences elsewhere on the thread.

Bridges are similar to XMPP components though, but for Matrix. matrix-bifrost is not based on libpurple; it's a framework for multiple protocol bridges. We use xmpp-js for XMPP bridging in bifrost, and it works well. We have libpurple support for other protocols.

1

u/djscoox Dec 27 '19

Just curious, when sending files over riot.IM, they are stored unencrypted. Yesterday I did a test by sending an image using the web client, then copied the image addressed and opened it in a new tab in Chrome. Today, I refresh the tab and the image is still there. Is there a way to prevent anyone with the link from seeing the file?

1

u/ara4n Matrix.org project lead Dec 27 '19

yes, send them in an encrypted room

1

u/[deleted] Sep 28 '19

So doesn't decentralizing "secure communication" inherently remove the security portion of the communication?

3

u/AmandineLP Matrix.org co-founder Sep 28 '19

The communication is end-to-end encrypted and while you have to trust the server, you can run it yourself or find someone you trust to run it for you.

2

u/ara4n Matrix.org project lead Sep 28 '19

/me waves to Amandine, who co-founded Matrix :)

→ More replies (1)

1

u/snake_case-kebab-cas Sep 28 '19
  1. I've heard the Matrix Protocol described as "a mess". Has work been done to simplify the design? For example, rather than baking every single feature into the protocol design, maybe moving some things to options on the client-side?
  2. If you started over today, would you design Matrix from the perspective of the client (fully distributed)? I'd prefer a protocol that uses servers as "dumb pipes" that merely connect peer-run systems :)

4

u/ara4n Matrix.org project lead Sep 28 '19

Personally, I really don't think Matrix is a mess overall, but there have certainly been messy bits at points, and there are still some messy bits today. To list some of them:

Historical messes:

  • Prior to 1.0, we didn't have a fully specified server<->server API, which was a massive hole for a decentralised communication protocol(!) This was mainly because the API had design flaws around its merge resolution algorithm which we had to resolve first (no point in specifying a flawed algorithm), but once that was sorted it's in pretty good shape. There are folks who were bitten by this pre-1.0 who still complain about it, though.

Stuff which is still messy today:

  • Communities. We did an experimental implementation in 2017 which in retrospect hasn't worked as well as we'd hope, and we want to change it radically. It never made it into the spec (but Riot does expose it).
  • VoIP. It's not so much messy as naive; it needs to be finished off.
  • We haven't finished specifying human representations of extensible events (the equivalent of MIME).

Stuff which people might think is a mess, but they're wrong:

  • The fact that the spec is a single document. I think this is what you're getting at with "rather than baking every single feature into the protocol design". This is a very deliberate design choice. We want developers to be able to go to https://matrix.org/docs/spec/client_server/r0.5.0 and have everything they need to write a spec-compliant Matrix client on a single page. This is the diametric opposite of going to https://xmpp.org/extensions/ and having to mentally splice together hundreds of XEPs to work out what the current best practices are for compliant XMPP, or a disaster like https://tools.ietf.org/html/rfc5411 (which has only got worse in the last 10 years). Now, it's worth noting that clients do not have to implement everything in the spec - we very clearly define different classes of clients which implement different modules within the spec; see https://matrix.org/docs/spec/client_server/r0.5.0#modules for defaults. So the answer to "rather than baking every single feature into the protocol design, maybe moving some things to options on the client-side?" ...is that almost all things are already options clientside; we're not forcing every client to implement them. We're just stating a single coherent monolithic design of how you would implement them in a compatible manner.
  • E2E Encryption. Our E2E encryption is controversial in that it has two layers; the normal Double Ratchet Algorithm (Olm) for secure 1:1 channels, and then Megolm as a 'group ratchet' for actually encrypting the conversation history, which uses Olm mainly fust for key exchange. Honestly, the jury is still out on whether this design is messy and overcomplicated or correct. If MLS is successful then we may well move over to it, but MLS is even more complicated in many respects. However, people assume that the fact that key verification requires all devices to verify all other devices manually in Matrix today is a defect in our encryption design. In practice, it's just that it's not finished - as soon as https://github.com/matrix-org/matrix-doc/pull/1756 lands in Riot then things will feel much less messy.
  • The fact that our default transport is long poll HTTP. In practice it works fine for most use cases even though it's not efficient, and is a very deliberate choice to be the simplest possible API in the world (e.g. here's a matrix client in 7 lines of bash). I don't think it's messy, but it upsets fans of premature optimisation.
  • The fact that Synapse's implementation isn't very performant, which makes people assume the protocol is to blame. This is categorically Synapse's fault rather than Matrix's.

If you started over today, would you design Matrix from the perspective of the client (fully distributed)? I'd prefer a protocol that uses servers as "dumb pipes" that merely connect peer-run systems :)

God no. I firmly believe that the thin-client architecture of Matrix is the right one for getting bootstrapped. It makes it utterly trivial to write clients/bots/bridges (i.e. the user-facing bits), and it ensures there's a well-defined home (the server) for your data, which you can put in whatever jurisdiction/SLA/environment that you like. Having got established, we then can improve the serverside/federation/decentralisation architecture - by moving the servers to run clientside, and doing experimental voodoo with funky routing algorithms, traffic analysis resistance, DHTs, overlay networks etc. But I don't think Matrix would have got anywhere had we started off making it P2P from the outset; we would have got entirely lost in P2P work and the user-facing stuff would have taken second place. The same is true today. The only thing that would change it would be if there was a solid P2P platform to build on to offload that complexity, but there isn't yet.

3

u/amarknadal Sep 28 '19

It does exist!

Somebody from my community linked me to your comment here.

We'd be happy to help, GUN is already running in production with 8M users across Internet Archive, HackerNoon, Dtube, NAB, etc. it is almost 6 years old and fully decentralized/P2P.

Would love to help offload the complexity!

5

u/ara4n Matrix.org project lead Sep 28 '19

hey Mark - thanks for dropping by :) just as we’re experimenting on top of libp2p atm we’d be up for looking at GUN too. DAT is also on the todo list. We have zero desire to reinvent the wheel. I’m still unsure I’d do P2P first tho if rebuilding Matrix today tho ;)

→ More replies (1)

2

u/[deleted] Sep 27 '19

Thanks for your work

  • how is it better than other alternatives?
  • how is it worst than other alternatives?
  • tor support? (connecting to onion chat server?)

2

u/gradinaruvasile Sep 30 '19

Related to the Android client and e2e key local backup: now the file is automatically saved to Downloads.

But if someone wants to bypass public areas accesible by all apps there is no option to directly share the file into another app. This is also a privacy issue. Is there any feature planned to alleviate this?