A Week in Matrix

Kesseki1 pts0 comments

A week in Matrix | piegames.de

Table of Contents

A Monday in Matrix

A Tuesday in Matrix

A Wednesday in Matrix

A Thursday in Matrix

A Friday in Matrix

A Saturday in Matrix

A Sunday in Matrix

A Monday in Matrix

A user accidentally writes in the room of a Matrix space, resulting in every member of that space getting a notification.<br>Matrix spaces are just regular rooms, and the fallback for old clients which don't support spaces is to render them as completely regular chat rooms.<br>On the other side, new clients that do support spaces have very confusing UI when people start chatting in them, because that's not supposed to happen.<br>(Yet, most clients don't adjust the room permissions in spaces to disallow people to chat in there. That would be too easy.)

I figure out how to get Element Web to display the space as a regular room in order to inspect it (it's in the devtools), give myself admin permissions and adjust the room's permissions to disallow chatting in the space room.

A Tuesday in Matrix

A user reports a spurious ban on the forum, saying they got banned from our Matrix space and have no idea why.<br>A quick Draupnir query for the user handle shows nothing of interest.<br>After some tring around, I query Draupnir for the domain of the user handle instead.<br>Indeed, it finds one entry:

!foQLZposNt3iEpkl5O:example.org

m.policy.rule.server (m.ban): … (spam)

Apparently, someone on a moderation list our space is subscribed to banned the user's domain (it looks like it might be a single-user personal instance).<br>I am not in the room !foQLZposNt3iEpkl5O:example.org, which I assume is the policy room from which the ban is coming, and Matrix annoyingly won't tell me its title.<br>But it seems to be public, so I try to join it to find out.<br>My homeserver chokes a little while trying to join me, WARN conduwuit_api::client::sync::v3::joined: timeline for newly joined room is empty, but it then asks another server to backfill the timeline, and then I only have to "clear cache and reload" my client (which will incidentally also mark all my chats as unread, which I'll have to manually clear again afterwards) and I'm in.

The room is one of those community-pooled policy rooms, full of messages of type m.policy.rule.user originating from both mods and moderation bots, which ban people and servers with sometimes very explicit usernames.<br>I search for the domain of the affected user, but Element will only search through messages of type m.messages and thus the search comes in blank.<br>The usual workaround for when the search doesn't work is to export the chat as HTML, then grep through it in the hope that the relevant message is in the exported range.<br>Luckily, the room export indeed includes all message types, and grepping for the domain gives me seven hits.

It turns out, the homeserver of the affected user accidentally had had open registrations at some point in the past, with the expected consequences.<br>Mystery solved.<br>Getting this info took me roughly 40 minutes. It should have been two at most.

Postscriptum: Two weeks later, I get contacted by that user again, they still struggle with being banned.<br>All I can see is that their domain is still on the ban list.<br>I can't find an easy way of making local overrides to the ban list, so there is little we can do but to unsubscribe from the entire ban list, which would potentially expose the entire community to spam and abuse.

A Wednesday in Matrix

While onboarding a new person to our Matrix space, they don't seem to be able to see one of the rooms, despite being "suggested" for that space.<br>After them manually joining that room, it does show up in the space's room list.<br>The issue can be reproduced from various accounts on different homeservers.

Removing and adding the room to the space again does not seem to help.<br>Even tombstoning and recreating the room does not seem to be a solution.<br>However, if one of the space admins joins the room, it suddenly shows up in the space's room list again.<br>When they leave again, the room disappears anew.

We accept the obvious workaround and move on.

A Thursday in Matrix

After some routine server maintenance, Draupnir stops responding to admin commands.<br>According to the server logs, Draupnir seems to be processing the commands just fine.<br>Some long debugging sessions reveal that this is an outbound federation problem with the Draupnir's homeserver (it is the only account on there).<br>More debugging reveals that this is an issue with the Dendrite default configuration which drops all egress IPv6 traffic for no good reason.

Noticing and debugging the issue took over a month in total, during which the community space was without protection from a moderation bot.<br>I am very glad that we were not hit by a porn&gore spam wave during that time.

Dendrite is kind of deprecated as a homeserver these days, at least it doesn't seem to be the main focus of development and most recent commits are mere dependency bumps.<br>Years ago, when the server was set up,...

matrix room space user from list

Related Articles