738 points · by arctux · 8y ago · 198 comments
Warning:
This section documents the state resolution algorithm as implemented by Synapse as of December 2017
(and therefore the de-facto Matrix protocol). However, this algorithm is known to have some problems.
I really like the idea of Matrix, but it seems a little immature for a government to use as a standardized messaging protocol.[0] https://matrix.org/docs/spec/
[1] https://matrix.org/docs/spec/server_server/unstable.html#roo...
* implementing E2E encryption and getting it audited, which turns out to be very hard in a decentralised environment
* refining Riot as a flagship client and trying to get it to a Slack/Discord level of UX (still a work in progress)
* scaling, as the 1st gen implementation (synapse) failed to keep up with the growth of the network
* adding features like Jitsi video conferencing, Widgets, Communities, Home pages, Rich Text Editing, Read Receipts, Synchronised Read Markers and much much more.
* dealing with a major funding crisis last year.
In retrospect we probably should have spent more time finalising the current features rather than adding on new ones, and since the end of last year we've been feature-frozen in order to finish the stuff in hand and get to a 1.0.
Fixing the issues which remain in federated state resolution is probably the hardest problem to solve before a 1.0, and I'm happy to say that over the last few months we've made major progress in doing so.
Agreed that in an ideal world this would have all happened sooner, but turns out that decentralised open protocols are harder than centralised startups like Slack and friends. Who knew?
Just wondering about discovery. How do I find interesting channels?
The list (and graph!) of all indexed rooms is here: https://t2bot.io/voyager/
Given that matrix describes itself as an open standard, neither of those aspects says much about the project other that there's either some goodwill or a PR department.
All of the Matrix/Riot users I know use private, non-federated home servers, but still rely on the project's Sygnal server(s) for push notifications.
[0]: https://en.wikipedia.org/wiki/Minitel
[1]: https://www.forbes.com/forbes/1997/1201/6012058a.html#75b6a6...
Specifically from [1] is the line: "Its illegal in France to encrypt any communication in any way unless you have permission from the government. How is electronic commerce going to get off the ground in such a society? Good question, which appears not to have occurred to the authorities."
[0]: https://www.legifrance.gouv.fr/affichTexte.do?cidTexte=JORFT...
I'm looking at you, Xilinx.
Criminal Procedure Code: Article 230, modified by Law No. 2001-1062
and Law No. 2014-1353 requires the disclosure of encryption keys upon
the authorization of a judge.
So what happens if the connection uses diffie-hellman or double ratchet (as Matrix can use)? the intermediate doesn't have any useful keys to turn over.Competitor here, few questions:
- You guys are currently implementing federated protocols, right? We do P2P protocols, I'm curious why you guys chose federated - why do you think it is better?
- How are you guys different than Signal? Obviously way different than Telegram, as it isn't even Open Source (thanks for Open Sourcing your work!).
- When I was working on our E2EE private messaging app (ugly demo here: https://twitter.com/marknadal/status/989602258638684160 ), I ran into problems about metadata. Stuff like, do you guys reveal which public keys are talking to which other public keys? And the frequency of those conversations? Or do you encrypt that information as well (and if you do, how do you handle discovery then, and is it vulnerable to network frequency analysis attacks?)
Awesome work, congrats again, keep it up! Curious to hear more about your architecture.
afaict, Matrix is both, kind of. Rooms are decentralized, while users are federated.
> What about signal?
Signal is great, but it solves a very different problem. It's a good replacement for talking to your best friends on your phone.
But it fails quickly once you go past that. No true multi-device, no talking without releasing your phone number, no public groups. No mentions, no permalinks. In that regard, I'd say matrix is closer to telegram and irc than WhatsApp or Signal
> what about metadata?
The state of metadata in E2E is... not good. Really, only the content of the message is secret. There are a number of ideas how to deal with this.
Riot does this pretty well, and when it's not alpha/beta, it'll probably do it really well.
For instance: at the moment Matrix server implementations expect clients like Riot to long-poll for JSON about each room/chat they're connected to. Alternatives like Prosody's XMPP server implementation dropped websocket support in favor of BOSH years ago.
I wonder why this is - maybe there's just less developer interest since chat has gone mobile, and mobile devices break ws connections so frequently? But it's obvious that chat clients like FB messenger, whatsapp, slack, etc are establishing ws connections.
Strange.
You probably refer to the "old websocket" spec, new websockets are working well: https://prosody.im/doc/modules/mod_websocket
Quite the opposite, but I admit the documentation is in need of improving to make the websocket functionality easier to discover.
It is in the default config file however, right next to BOSH.
Sending messages though from a server to a room was more difficult than I expected. Java SDK didn't build and many of the other languages were alpha too. Go seemed favored but I dont really want to install. Is there a recommended simple command line app or script to send messages?
What do you mean? If you mean Go, the programming language, you don't need to install any of it to use a Go application since those are statically compiled.
The preview docker image of mattermost is easier to install but I installed matrix because I couldn't get the production docker version of mattermost to work.
I wasted most of time configuring the vhost and the SSL certificates.
which java sdk did you try?
Huh. So Haskell + Servant might be really nice for writing a client, then, yeah?
I used the Java SDK from Kamax that was on https://matrix.org/docs/projects/try-matrix-now.html. would be nice if there are others.
I'm excited about it though - is just what I've been looking for.
(Note that in first world countries phone calls will be digital everywhere except maybe the last mile, and GSM and upwards are digital to the handset)
Presumably, if there's an investigation, they just force the government employee to give up the keys.
http://www.conseil-constitutionnel.fr/conseil-constitutionne...
http://www.ucl.ac.uk/constitution-unit/research/foi/countrie...
Do you mean IP lawsuit's against Matrix itself?
There's not much that Matrix can do to defend against that, except for strategic marketing with the purpose of achieving a large distributed userbase. If Gmail had existed in 1990, we would not have a decentralized e-mail network today. If Gmail had got into a position where they served 99% of all e-mail users, they would've pulled the plug on mail delivery to third-party mail servers and e-mail as we know it would've been dead.
I don't know much about Matrix or Riot.im (from what I remembered, it was a implemented IRC alternative), but if it delivers on all of the above (and the article sure sounds like it), then it's definitely polishing up some final features that were still missing!
You can even send E2E-encrypted messages/files to people who haven't even joined yet!
The server is not, and the Android code is updated months after each update, all commits being squashed(see issue[1]). Also their new app (Telegram X) is not open source.
Not true, it has a websockets alternative to gcm.
>and requires a phone number
The phone number can be anything you control.
>and turned-on phone iirc
Yes
>(and their profit model seems to be extorting companies like Wire and helping closed source software like Whatsapp advertise with Signal-level encryption).
It (now) has its own nonprofit backing it (and a generous benefactor). It's not trying to be profitable.
The "extortion" thing seems to have been about wire using signal code in breach of copyright (ie not complying with the open source license).
Signal has stated that the goal of working with WhatsApp (and others) is to make good crypto be used as widely as possible. Matrix crypto is also based on what's used in signal.
>Wire is the best of all, but the Android app drains battery and everything is web
Signal is very polished (at least on Android - I'm not familiar with the ios app).
related commit: https://github.com/signalapp/Signal-Android/commit/166973132...
pretty difficult to find the raw apk though: https://signal.org/android/apk/
about matrix:
you will probably end up having to use the electron riot app for a while, but the community is working hard on native clients, but afaik no client has e2ee in any usable state implemented yet (but a lot of progress is being made).
I think the matrix.org team acts as a non-profit organisation, but most of the core team is also hired by New Vector where, I think the planned profit model is to run matrix instances as a service.
there's some stuff about the funding in the faq: https://matrix.org/docs/guides/faq.html#what-kind-of-company...
And that's low hanging fruit.
I can't wait to see the end product (this summer 2018) :)
especially considering they "forked" it, who knows what they will do with it (log keystrokes, take screenshots, in the disguise of diagnostic reasons?).
anytime you are reading a message from your app, or sending a message, the app have all the powers to capture the data in its raw form before transmission, encrypt it with some key that only they have control of, etc. so unless the gov't releases their source code to be truly open (which even then i don't see how you will ever know), you won't get the transparency you need.
encryption is such a buzzword, people think anything encrypted means you are fully secure. this is simply false.
We understand the whole project is going to be released entirely open source (other than the operational bits)
– development is well under way and an early proof of concept is already circulating within various government
entities.
But if it has interop with the matrix, you should just be able to use Riot.At some point, if you work for the government you have to use and trust the tools at your disposal. You are part of the executive power, after all.
Is the application they're creating also going to be open source and available for auditing?
thereby, Riot is developed by the france government. Big change it has a back-door or something. you cant trust it as a citizen. correct me if i wrong but this sound like a honey pot to me.
Source code here: https://github.com/signalapp/Signal-Server
If anything, that'd be a feature, no?
Do you have link or source for that? (I'm always interested in listening or watching stuff from Moxie)
- requiere a phone
- build on s3 & a lot of other services without the option of a self hosted alternative.
Look up the signal server requirements.
But even if you’re not in the target demographic, you might benefit: The government will run a large installation and hopefully some code will find its way back to the OS version.
I want to type this into a search bar to see if it's a thing... but simultaneuosly I'm terrified of the prospect of discovering that it is.
Matrix has so much potential – someday, when it’s built on technologically more ideal foundations.
Python2.7 you’ll barely notice, but the network overhead of the Matrix protocol becomes heavily noticeable by the end user (especially if your cell phone’s data plan runs out, and you’re stuck on 64kbps until the end of the month, then Matrix in larger rooms just becomes impossible)
And I’m not sure PUT and GET are the simplest solution, I’d think a simple socket over which messages are transmitted in both directions would be simpler than implementing an entire HTTP stack.
but it looks like this hasn't been worked on since october last year.
Matrix is an extremely immature project and the French gov is making an irresponsible move here to prop it up as a solution in any capacity.
It's beta software! Where are the audits? Where are the formal verifications? Not that irc has those, I don't mean to juxtapose one not-good-enough product with another, but this is reaching a point of insanity.
If you want security, use signal. If you don't trust signal, learn to trust scores of world renowned cryptographers, and use it anyways. And if you're still bored, renovate irc.
Gosh this is just crazy. It's like saying the tesla 3 will be the authorized taxi vehicle on Mars. There's so much work yet to be done, it's a million years too early to start regulating and organizing something that's not even half built.
What surprised me is that Matrix is practically a modern IRC spec with e2e in mind. What's better is that the Matrix devs acknowledge this heritage. They don't pretend IRC doesn't exist. They're very up-front about loving IRC, and they have successfully brought over nearly every good feature of IRC into Matrix.
At first I thought it was too good to be true, but it keeps on being good. I have waited for years for a decent IRC alternative which I can convince even my less technical friends and family to use, and Matrix is it. I truly feel like I'm on IRC with my family. It's insanely good. I even use the same client for both.
Matrix can replace your Signal. It can replace your Telegram. It can replace your WhatsApp. It can replace your Facebook messenger. It can even replace IRC. It is that complete.
There is much more overhead to opening a connection and maintaining a connect and sending and receiving, to the degree that people with bad connections are excluded entirely from being able to reliably use it. This is not true with irc. People in third world countries can use irc. If you can ping, you can chat.
We don't WANT a chat for less technical people. We want e2e safety. We should never prioritize """normal users""" over security in a security oriented proposal! That's insane!
But hey, I'm sure youre just a teen with a laptop, so I won't hold it against you that you'd make such an irresponsible decision.
------8<---------------
While the overhead of setting up a fresh TCP connection for every exchange is non-trivial, I'm not sure "reliable on a bad connection" is a characteristic I would attribute to IRC. The protocol is notoriously unreliable to the point where established practise is to run a client on a server somewhere and then connect to that from your bad connection computers. People who don't lose IRC messages sent while their connection crapped out, while Matrix ensures their client is updated to reflect the current state of the servers as soon as they go online again.
I believe also that modern HTTP options let you reuse the same connection for multiple requests, obviating much of the overhead. Not to mention that you are free to extend the Matrix server with alternative connection methods.
We do want a chat for less technical people. In order for humanity to not screw over itself royally, we need to target the 99%, not the 1%. Things can be good and still target non-technical people, as long as they are open and federated.
Of course, convenience does not trump security, but I don't see how that is the case here either.
formal proofs e.g.: https://matrix.org/_matrix/media/v1/download/jki.re/hSmkLkFG...
Agreed that Matrix is still beta, but hopefully we are heading in the right direction and the end is in sight.
This is better that it was before. More security is better. Perfect security does not and cannot realistically exist for a complex system.
I do think have a reproducible binary would be a huge win. Even if you can't verify the integrity of a single build you could verify that build by consensus.
But France does have some domestic defence capability here - Thales make hardware security modules and similar products, and STMicroelectronics has chip design expertise while being partly state-owned.
Apparently, though, people whose threat model isn't dialed up to 11 don't deserve security or privacy?