-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(WIP) matrix-synapse: 0.31.2 -> 0.33.0 #43889
Conversation
ff6eb59
to
fe1fa93
Compare
Success on x86_64-linux (full log) Attempted: matrix-synapse Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: matrix-synapse Partial log (click to expand)
|
My un-upgraded HS is still talking to matrix.org just fine, FWIW. Not opposed to the backport, though, synapse certainly needs all the bugfixing it can get. |
Hmm so now I'm even more at a loss about why matrix.org refused to send me messages before the upgrade… |
@fpletz @vcunat Any guidelines on whether potentially backwards-compatibility-breaking updates should be backported for highly unstable software? (I'd think the 0.* version is enough to allow us to backport, but I'm not the release manager here 😋) (BTW, I couldn't find again any guidelines for backporting, even though I'm almost sure I have already read some; if you know where they are I could maybe copy them into the NixOS manual?) |
I do have a WIP section for the manual. I'll polish it and ping you soon. |
For now you can refer to the ## Maintenance workflow section in https://groups.google.com/forum/#!topic/nix-devel/3KxPNwxDV9E |
Hmm, so, trying to evaluate this change against https://groups.google.com/forum/#!topic/nix-devel/3KxPNwxDV9E :
The upstream synapse team considers 0.32.0 as being a security update, because it adds the possibility of black/whitelisting servers, and for that it needs every participating server to be v0.32.0+. I, personally, do not consider this as a security vulnerability. However, matrix-org/synapse#3470 looks like a DoS to me, merged in 0.32.0 too. And matrix-org/synapse#3546 (merged in 0.33.0) appears to be something that might have legal consequences, IIUC and it means GDPR-erasure wasn't actually well-handled. (unsure for both of these, though) So we'd have to either update or somehow backport these PRs into 0.31.2.
This is something I've experimented with synapse, while @Ralith appears not to. Unsure what the correct behaviour is in this case, but I'd consider that synapse being declared unstable by the maintaining team would be a hint that this is likely to be true for synapse.
Not the case here.
Not the case here.
Not the case here. FTR, debian has 0.33.0 in testing (but no matrix-synapse in any stable version). Fedora 28 has 0.31.2, last updated 2 months ago. I think the notable fact though is that they have upgraded from 0.27.3 to 0.31.2 (sorry for the web proxy link, pkgs.fedoraproject.org appears to use an invalid certificate with HSTS from here) during the lifecycle of Fedora 28. I have checked only Debian and Fedora. Overall, I personally think the level of stability expected from nixos-stable should be roughly equivalent to the level of stability expected from fedora, given the similar release cycle. And so I'd tend to think that this can make it into stable. That said, I feel like the above instructions miss something that would be interesting for synapse: the behaviour to follow when upstream declares a package unstable.
For the record, (IIRC it was a bit before 18.03 branch-off) I already had an issue with :matrix.org refusing to talk to synapse, with no logs from my side and no issues with another HS I have access to. When asking on matrix's channel if they had any idea why that would be the case, I was asked my synapse version. When answering (was that 0.24? something like that?), I have been answered “that's ancient, just update, we'll bother trying to look into our logs if it still doesn't work with the latest release” (not exact quotation, but the idea was that). Overall I think this means there are bugs in synapse even the development team has no idea how they came in (I've been told they never knowingly broke backwards-compatibility), and even for a bug with 0.31.2 they first want bug-reporters to upgrade to the latest version before looking into their logs (and as their HS is the only one causing the issue…) This little rant being done (for the purpose of showing that a non-updated synapse is likely at least as hard to handle as an update to synapse), I overall think that for synapse, we should backport this update, because not updating appears to be enough to break stuff with synapse. But I'll ask NixOS/rfcs#29 for more general instructions about backporting updates to declared-unstable-by-upstream software :) |
It's probably worth note that the synapse team tries decently hard to maintain backwards compatibility, as real-world synapse deployments inherently must interoperate with a wide variety of clients and servers. As such, breaking updates should be rare. |
Indeed my rant was a bit heavy-handed, especially given between it (9 hours ago) and now, I have just discovered the same issue (that had already hit me twice) just started to appear again, with the latest version. So it's likely just that :matrix.org doesn't like my HS, and unrelated to updates… though the fact that until now updates were enough to fix the issue is weird! |
Note: I've just learned the existence of tests for This is thus currently not ready for for merge. I'll fix it if the outcome of NixOS/rfcs#29 is that such a backport should be merged :) |
|
On the original branch I had loops of tracebacks for My internet connection has apparently decided it doesn't like me today so I can't just rebase on latest 18.03, but if it works now, great! This PR is unfortunately still blocked on defining what exactly should be backported, which should be decided in NixOS/rfcs#29 (comment). I personally feel it should, but… :) |
Synapse 0.33.3.1 is a critical security update that should probably be back-ported. |
Do you have any news in this domain? :) |
Closing as:
|
In the meantime we had some discussion on a "formal" proposal though perhaps without a clear conclusion so far. |
Motivation for this change
Backport of #43888. As v0.31.2 appears to no longer be able to receive messages from matrix.org, I guess this is important enough a problem to deserve a backport to release-18.03. However… I don't know what the problem was about, and upstream didn't appear to have any clue about it either, apart from “try upgrading”.
That said, it may break setups, so maybe stability for non-federated setups is more important than being able to talk with :matrix.org? I'll let you, the reader, decide 😝
Tested on my otherwise-18.03-running HS.
cc @Ralith @roblabla
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)