matrix/m.room.power_levels: adjust powers, retab

This commit is contained in:
Aminda Suomalainen 2023-02-14 10:04:28 +02:00
parent d7c56bd8b8
commit df76051c77
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -4,24 +4,28 @@ The main point I do this for is users `users`
```json ```json
{ {
"users": { "users": {
"@Ciblia:matrix.org": 100, "@Ciblia:matrix.org": 100,
"@aminda:dendrite.matrix.org": 100, "@aminda:dendrite.matrix.org": 100,
"@aminda:matrix.org": 100, "@aminda:matrix.org": 100,
"@aminda:mozilla.org": 100, "@aminda:mozilla.org": 100,
"@aminda:pikaviestin.fi": 100, "@aminda:pikaviestin.fi": 100,
"@aminda:tedomum.net": 100, "@aminda:tedomum.net": 100,
"@mikaela:pirateriot.net": 100, "@mikaela:pirateriot.net": 100,
"@mikaela:tchncs.de": 100, "@mikaela:tchncs.de": 100,
"@mkaysi:fedora.im": 100, "@mikaela-5756df8cc43b8c6019785660:gitter.im": 100,
"@aminda:the-apothecary.club": 100, "@mkaysi:fedora.im": 100,
"@mikaela.suomalainen:matrix.org": 100, "@mikaela.suomalainen:matrix.org": 100,
"@mikaela.matterbridge:converser.eu": 100, "@mikaela.matterbridge:converser.eu": 100,
"@mikaela.matterbridge:tedomum.net": 100, "@mikaela.matterbridge:tedomum.net": 100,
"@aminda.matterbridge:jae.fi": 100, "@aminda.matterbridge:jae.fi": 100,
"@leon:the-apothecary.club": 100, "@aminda:the-apothecary.club": 99,
"@fidino:artemislena.eu": 100 "@aminda:masfloss.net": 99,
} "@leon:the-apothecary.club": 99,
"@leon:masfloss.net": 99,
"@fidino:artemislena.eu": 99,
"@mjolnir_3671ee5a-cd2a-47c0-97da-e5662f3324d9:mjolnir.matrix.org": 99
}
}, },
``` ```
@ -32,9 +36,9 @@ This has the rest event in two forms, but doesn't duplicate the above.
Generic notes: Generic notes:
* Don't have anything in `events {}` as `0` or otherwise users will be * Don't have anything in `events {}` as `0` or otherwise users will be
able to send state events with that name including gigabytes of able to send state events with that name including gigabytes of
data breaking the room. data breaking the room.
* Refer to security considerations of MSC 3779. * Refer to security considerations of MSC 3779.
### Reasonable version ### Reasonable version
@ -73,26 +77,26 @@ This is not the Element/Synapse default as that would be pointless to list.
``` ```
* `m.room.history_visibility` is lowered to 99 as it's a less permanent action than * `m.room.history_visibility` is lowered to 99 as it's a less permanent action than
many of the others. I am not sure on my initial logic, but it's documented in many of the others. I am not sure on my initial logic, but it's documented in
PPFI repo as PL100 vs PL99. PPFI repo as PL100 vs PL99.
* `m.room.power_levels` is set to `50` so moderators can raise others to moderators * `m.room.power_levels` is set to `50` so moderators can raise others to moderators
for example matrix-appservice-irc, which I would then give PL51 for ops syncing. for example matrix-appservice-irc, which I would then give PL51 for ops syncing.
On matrix side immune mods, could be PL52. On matrix side immune mods, could be PL52.
* invite commonly defaults to `50`, but I haven't seen abuse through it * invite commonly defaults to `50`, but I haven't seen abuse through it
* PL25, half-moderator is introduced (inspired from Ergo/IRC halfop), with powers to: * PL25, half-moderator is introduced (inspired from Ergo/IRC halfop), with powers to:
change room topic, pinned messages, remove messages and kick users (but not ban). change room topic, pinned messages, remove messages and kick users (but not ban).
* Maybe this could be used e.g. in an association where a secretary/someone * Maybe this could be used e.g. in an association where a secretary/someone
unwilling to be a full moderator wants to update room topic for next unwilling to be a full moderator wants to update room topic for next
meeting time or update a version number? :shrug: meeting time or update a version number? :shrug:
Alternatively someone not wanting full moderator responsibility could remove Alternatively someone not wanting full moderator responsibility could remove
spam while not participating in banning discussions. spam while not participating in banning discussions.
* PL13 gets access to change main alias and add/remove published room aliases alongside * PL13 gets access to change main alias and add/remove published room aliases alongside
(at least on Synapse) [un/publish the room in the room directory](https://github.com/vector-im/element-web/issues/13835). (at least on Synapse) [un/publish the room in the room directory](https://github.com/vector-im/element-web/issues/13835).
* This can be used with e.g. [altalias maubot plugin](https://matrix.org/blog/2020/06/19/this-week-in-matrix-2020-06-19#alt-alias-maubot-plugin). * This can be used with e.g. [altalias maubot plugin](https://matrix.org/blog/2020/06/19/this-week-in-matrix-2020-06-19#alt-alias-maubot-plugin).
I don't care about room directory or the main alias as it doesn't affect ctrl-k that much anyway, I don't care about room directory or the main alias as it doesn't affect ctrl-k that much anyway,
rooms are generally discovered through Spaces and I use Matrix URI scheme rooms are generally discovered through Spaces and I use Matrix URI scheme
which takes room internal ID and servers to find it from instead of caring about which takes room internal ID and servers to find it from instead of caring about
the alias. Most importantly **don't give permissions to entirely untrusted users.** the alias. Most importantly **don't give permissions to entirely untrusted users.**
### Medium version ### Medium version