316 points · by decrypt · 5y ago · 149 comments
Has anyone found a publication around what they had to do on the technical side (code)?
Edit: Their server's repo hasn't been updated since April 2020. Why?
If you compare it with Matrix, the last commits to Synapse were ~32 hours ago, Dendrite was ~31 hours ago, and Conduit was 3 hours ago - so you can keep up with where development is at, and of course see what is meant to be running in production (and run it yourself if you're able to).
My assumption is that what's happening is that Signal-Server is going through contortions to switch everything to UUIDs, in order to avoid hardcoding phone numbers everywhere as identifiers, and this work is being done on a private branch. Meanwhile, there's presumably a private branch for the current live production deployment too. (For Matrix, we maintain a separate branch for the live matrix.org homeserver instance, to allow for hotfixes etc - although it's public, at https://github.com/matrix-org/synapse/tree/matrix-org-hotfix...)
I have given you flack over the Synapse migration path for server operators over the last few years, but this Signal outage brought home how important it is that Matrix is a more than suitable replacement for Signal among my family and friends, and how smooth it has been to run my Synapse server over the last year.
You and your team are doing an awesome job!
This comment of yours is only the second time I'm hearing of Matrix (the first time was several days ago, in a bunch of comments on an ASK HN discussing the WA policy announcement). And because of your comment (and the implication that Matrix is something one can run independently in production) I am now perusing matrix.org - thanks for sharing.
Also I enjoyed your insight with respect to the Signal dev team and what they're possibly currently frantically busy with.
Mind if I ask you, what your thoughts are on the Signal project long-term?
Not really a privacy issue for the new user, since this is his public avatar, but a nice reminder for this issue that phone number are ill suited as identifiers
I am not even that interested in having a fixed phone number, I would rather ever changing throwaways for many contacts.
As soon as my number gets into the wrong hands, the fight against spam is painful, and I have to drop it.
Yes and no.. I think a resource like a phone number is better than the yahoo/etc email reallocation situation. So far it seems to be rarer that someone tries to get allocated a number to impersonate a previous owner's identity.
Quick question, semi-relevant: does the matrix.org homeserver have open monitoring? Is there someone I can look to see server load?
I’m curious whether Matrix saw a similar influx of users this past week.
1) a bahillion new signups, so they just needed to deploy a bajillion more instances of the server.
2) The clients basically DDoS'ing their servers.
If you look at the android client source, you can see all the commits they put in are about handling errors properly when the server(s) get overloaded.
We don't even know if the main @matrix.org server would have held and if federation would have keep working.
Not worth the cost? How much did whatsapp cost to Facebook? How much did whatsapp cost before that?
Matrix is also running on free and so far we have hosted server offerings but no single individual account offer.
This is argumentum ad populum.
> main @matrix.org server
There is no "main" server. matrix.org is the biggest one, but it is circunstancial. Matrix and Element do not want be the biggest instances or keep things under their control. I can bet that people working on Matrix would be thrilled with the idea of helping people create more instances, and even it would be beneficial for their business.
> Matrix is also running on free and so far we have hosted server offerings but no single individual account offer.
https://communick.com, there you go.
This is a great case for GCP.
OTOH due to end to end encryption all the fancy features are implemented client-side so the server is very simple in scope. So maybe it's really feature-complete.
- They added handling of HTTP 508 and do not retry jobs in this case
- There is a list of HTTP errors that are handled manually, including the new HTTP 508, but for example 503 is not handled and Jobs (e.g. messages) will be retried indefinitely and I have seen logs with many 503 entries and retries.
- They have increased the maximum backoff time from 30s to 60s (+ added jitter) and it can now also be changed remotely via server flag.
- Any HTTP error not handled explicitly is considered an IOException (strange?) and retried. List of handled HTTP exceptions (413, 401, 403, 409, 410, 411, 423, 499 and 508) is here: https://github.com/signalapp/Signal-Android/blob/2c1c6fab356... I personally would not repeat requests automatically by default on any HTTP error - unless handled manually (so reverse logic), only on connection error.
- They have just switched off OkHTTP automatic "silent" connection retries: https://square.github.io/okhttp/3.x/okhttp/okhttp3/OkHttpCli... I don't think they have tested this enough, it's more of a blind try and I think it can decrease request delivery reliability. The OkHttp implementation retries requests silently (with backoff and retry limit) in case of: Unreachable IP addresses, Stale pooled connections, Unreachable proxy servers. This is transparent to the application. In the past I have complained to the OkHttp team that POST requests should not be retried at all and they fixed it (your requests need to be idempotent anyway, regardless of this).
- I believe they may be also having issues with requests that are non idempotent and have been retried by OkHttp silently or in cases where application has sent something to the server and server received it, but the response has never made it back to the client. In this case client will retry request and this can cause trouble if requests are not deduplicated on server side and idempotent. But this is just my guess.
Much as electron is ridiculously heavy, I'd pick that every single day over the joke that is the whatsapp web UI. I guess our experiences differ!
The connection reliability is a hassle but usually when you're in the desktop you also have a good wifi connection and even though the web client loses connectivity temporarily it keeps working as good as it can.
On the other hand it's easy to forget that you have an active session in other apps such as Telegram unless you keep track of it in your app. Someone you share your laptop with can just open the Telegram app and they'll be able to see my chat conversations be default.
I know some of these things might be something you'd prefer but I choose the hassle instead.
As a fellow power user, other people who use my laptop have their own account[0], use a guest account[1], or can be trusted to use my account[2].
I know some of these things might be something you'd not prefer but I choose the hassle instead.
[0] partner & family
[1] friends
[2] partner
As to the "only one client is a feature" thing - it isn't for me. And if I didn't quite trust any others using my devices, chats aren't near the top of my priority list - if they have access to all my browsers cookies, and apps, and can change system settings etc etc etc I'm much more worried they'll accidentally install malware than anything else. Don't share your account if you care for privacy, it's a losing game.
I use multiple devices at a time, merely locking them. I don't want to also have all my apps go into an pseudo shutdown; and it's annoying to not be able to read old stuff during a temporary network hiccup.
And
> Someone you share your laptop with can just open the Telegram app ...
Are in plain conflict :)
It is written in Qt instead of memory-hogging electron and the difference in how it feels is night and day.
If signal were to develop a new client I wish they'd do native toolkit as well.
https://www.microsoft.com/en-us/p/unigram-telegram-for-windo...
Anecdotally, most people I know didn't even know that WhatsApp Web was a thing until I set it up in their computers.
Maybe most users are fine with just their smartphones, so this makes me wonder if it's really that important to compete.
That said, as a power user I agree with your points.
Brian Acton, co-founder of WhatsApp, who left Facebook post WhatsApp acquisition, infused 50M USD too. [2] I hear he lent another 50M with 0% interest, repayable by 2068. [3]
[2] https://www.wired.com/story/signal-foundation-whatsapp-brian...
Since the OTF's own spin-off from RFA, it seems to have continued being non-trivially involved in regime change while funding communication initiatives like TOR and Open Whisper Systems etc (https://en.wikipedia.org/wiki/Open_Technology_Fund).
https://en.m.wikipedia.org/wiki/Signal_(software)
Initially funded by a $50M loan from the co-founder of Whatsapp. In addition to consulting contracts they have received millions in grants and donations from Mark Shuttleworth, Radio Free Asia, the Freedom of the Press Foundation and others.
Downvoters, kindly explain what is so wrong about my statement. There are costs to run the operation, having generous benefactors writing big checks (a) do not change this, (b) makes Signal's operation dependent on the source of revenue and (c) hide these externalities long enough to hinder the development of cheaper/more efficient alternatives.
IOW, "depending on donations" is not a solution. Just like Socialism, it works until we run out of other people's money.
Some remaining issues:
The desktop app on first message in any conversation says: "Partially sent, click for details". When retried, the message goes through, but is not synced with the mobile client (never appears there).
PS: Happy Signal exists. It's easy to let inconvenience make you forget it sometimes.
https://thehackernews.com/2018/10/signal-secure-messaging-me...
That's in my opinion the USP against other (actually or allegedly) E2E platforms like WhatsApp or Telegram.
Hope Signal adapt a serious tone and keep the product thight adding features for privacy and security.
Just a personal preference, maybe the hip tone helps to grow.
https://signal.org/blog/ has a more serious tone.
matrix server (for self-hosting), SDKs, bots, libraries, etc. = https://matrix.org/docs/projects/try-matrix-now
matrix clients = https://matrix.org/clients/
matrix bridges (to interoperate between matrix and other services like irc, slack, telegram, etc.) = https://matrix.org/bridges/
if you don't want to manage on your own, and simply want to pay someone else to host for you = https://matrix.org/hosting/
So, yeah, matrix offers many solutions. ;-)
Yes, I'd hope federation of many servers is the way to go. But it seems so resource demanding that not many free servers are available and even running your own one is not cheap or easy. No idea whether it will ever scale.
Im interested in their dendrite server which is written in Go and supposed to be very very efficient
https://matrix.org/blog/2020/10/08/dendrite-is-entering-beta
I cant find much (good) documentation on it..?
I have a system that needs to send alerts from an enterprise system, and we need a more secure way than Telegram...
If they're incurring serious costs to run, that tells me Signal's days are numbered until it has to start commercializing.
Could always use 'indirect' connections to store-and-forward, and only relying on the central server when absolutely necessary.
You do risk some lost messages when you underestimate failures, but the same thing applies to any central store-and-forward facility.
Early Kazaa depended on some nodes becoming supernodes. Supposedly initial Skype was decentralized like this (particular to get around NATs), until it became exclusively client-server.
Unfortunately there's been a ton of low-quality videos on Signal released in the past few days, and it's taking me a while to find it.