2021-09-19 09:12:36 +02:00
|
|
|
# Template power levels event for quick copy-pasting
|
|
|
|
|
|
|
|
The main point I do this for is users `users`
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"users": {
|
|
|
|
"@Ciblia:matrix.org": 100,
|
2021-09-23 09:20:41 +02:00
|
|
|
"@aminda:matrix.org": 100,
|
2022-05-15 13:10:55 +02:00
|
|
|
"@aminda:mozilla.org": 100,
|
|
|
|
"@aminda:pikaviestin.fi": 100,
|
|
|
|
"@aminda:tedomum.net": 100,
|
2021-09-19 09:12:36 +02:00
|
|
|
"@mikaela:pirateriot.net": 100,
|
2021-09-23 09:20:41 +02:00
|
|
|
"@mikaela:tchncs.de": 100,
|
2022-05-09 22:14:04 +02:00
|
|
|
"@mkaysi:fedora.im": 100,
|
2022-05-15 13:10:55 +02:00
|
|
|
"@mikaela.suomalainen:matrix.org": 100,
|
2021-10-19 17:33:34 +02:00
|
|
|
"@mikaela.matterbridge:converser.eu": 100,
|
2022-05-15 13:10:55 +02:00
|
|
|
"@mikaela.matterbridge:tedomum.net": 100,
|
2021-09-23 09:20:41 +02:00
|
|
|
"@leon:the-apothecary.club": 100
|
2021-09-19 09:12:36 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
```
|
|
|
|
|
2021-11-23 11:32:11 +01:00
|
|
|
## Completeish event
|
|
|
|
|
|
|
|
This has the rest event in two forms, but doesn't duplicate the above.
|
|
|
|
|
2022-05-07 11:06:22 +02:00
|
|
|
Generic notes:
|
|
|
|
|
2022-05-07 16:28:53 +02:00
|
|
|
* Don't have anything in `events {}` as `0` or otherwise users will be
|
|
|
|
able to send state events with that name including gigabytes of
|
|
|
|
data breaking the room.
|
|
|
|
* Refer to security considerations of MSC 3779.
|
2022-05-07 11:06:22 +02:00
|
|
|
|
2021-11-23 11:32:11 +01:00
|
|
|
### Reasonable version
|
|
|
|
|
|
|
|
This is not the Element/Synapse default as that would be pointless to list.
|
2021-09-19 09:12:36 +02:00
|
|
|
|
2022-04-22 16:55:04 +02:00
|
|
|
```json5
|
2021-09-19 09:12:36 +02:00
|
|
|
{
|
2021-11-23 11:32:11 +01:00
|
|
|
"ban": 50,
|
|
|
|
"events": {
|
|
|
|
"im.vector.modular.widgets": 50,
|
|
|
|
"m.room.avatar": 50,
|
2022-05-03 10:17:29 +02:00
|
|
|
"m.room.canonical_alias": 13,
|
2021-11-23 11:32:11 +01:00
|
|
|
"m.room.encryption": 100,
|
2022-05-03 10:36:14 +02:00
|
|
|
"m.room.history_visibility": 99,
|
2022-05-07 11:06:22 +02:00
|
|
|
"m.room.join_rules": 50,
|
2021-11-23 11:32:11 +01:00
|
|
|
"m.room.name": 50,
|
2022-05-03 10:49:40 +02:00
|
|
|
"m.room.pinned_events": 25,
|
2022-03-09 15:56:04 +01:00
|
|
|
"m.room.power_levels": 50,
|
2021-11-23 11:32:11 +01:00
|
|
|
"m.room.retention": 100,
|
|
|
|
"m.room.server_acl": 100,
|
|
|
|
"m.room.tombstone": 100,
|
2022-05-01 22:48:34 +02:00
|
|
|
"m.room.topic": 25,
|
2021-11-23 11:32:11 +01:00
|
|
|
"m.space.child": 50
|
|
|
|
},
|
|
|
|
"events_default": 0,
|
|
|
|
"historical": 100,
|
|
|
|
"invite": 0,
|
2022-05-01 22:48:34 +02:00
|
|
|
"kick": 25,
|
2022-05-07 10:14:59 +02:00
|
|
|
"redact": 25,
|
2021-11-23 11:32:11 +01:00
|
|
|
"state_default": 50,
|
|
|
|
"users": {
|
2022-04-22 16:55:04 +02:00
|
|
|
// READ THE BEGINNING OF THE FILE FOR THIS SECTION AND PROPER FORMAT! OR SEE YOUR CURRENT EVENT!
|
2021-11-23 11:32:11 +01:00
|
|
|
},
|
|
|
|
"users_default": 0
|
2021-09-19 09:12:36 +02:00
|
|
|
}
|
|
|
|
```
|
2021-10-06 23:45:57 +02:00
|
|
|
|
2022-05-03 10:36:14 +02:00
|
|
|
* `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
|
|
|
|
PPFI repo as PL100 vs PL99.
|
2022-03-09 15:56:04 +01:00
|
|
|
* `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.
|
|
|
|
On matrix side immune mods, could be PL52.
|
|
|
|
* invite commonly defaults to `50`, but I haven't seen abuse through it
|
2022-05-01 22:48:34 +02:00
|
|
|
* PL25, half-moderator is introduced (inspired from Ergo/IRC halfop), with powers to:
|
2022-05-07 10:14:59 +02:00
|
|
|
change room topic, pinned messages, remove messages and kick users (but not ban).
|
2022-05-17 11:52:20 +02:00
|
|
|
* 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
|
|
|
|
meeting time or update a version number? :shrug:
|
2022-05-07 10:14:59 +02:00
|
|
|
Alternatively someone not wanting full moderator responsibility could remove
|
|
|
|
spam while not participating in banning discussions.
|
2022-05-03 10:17:29 +02:00
|
|
|
* 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).
|
|
|
|
* 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,
|
|
|
|
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
|
|
|
|
the alias. Most importantly **don't give permissions to entirely untrusted users.**
|
2022-03-09 15:56:04 +01:00
|
|
|
|
2022-04-22 16:58:24 +02:00
|
|
|
### Medium version
|
|
|
|
|
|
|
|
```json5
|
|
|
|
{
|
|
|
|
"ban": 50,
|
|
|
|
"events": {
|
|
|
|
"im.vector.modular.widgets": 50,
|
|
|
|
"m.room.avatar": 50,
|
2022-05-03 10:17:29 +02:00
|
|
|
"m.room.canonical_alias": 13,
|
2022-04-22 16:58:24 +02:00
|
|
|
"m.room.encryption": 100,
|
2022-05-03 10:36:14 +02:00
|
|
|
"m.room.history_visibility": 99,
|
2022-05-07 11:06:22 +02:00
|
|
|
"m.room.join_rules": 50,
|
2022-04-22 16:58:24 +02:00
|
|
|
"m.room.name": 50,
|
2022-05-03 10:49:40 +02:00
|
|
|
"m.room.pinned_events": 25,
|
2022-04-22 16:58:24 +02:00
|
|
|
"m.room.power_levels": 50,
|
|
|
|
"m.room.retention": 100,
|
|
|
|
"m.room.server_acl": 100,
|
|
|
|
"m.room.tombstone": 100,
|
2022-05-01 22:48:34 +02:00
|
|
|
"m.room.topic": 25,
|
2022-04-22 16:58:24 +02:00
|
|
|
"m.space.child": 50
|
|
|
|
},
|
|
|
|
"events_default": 0,
|
|
|
|
"historical": 100,
|
|
|
|
"invite": 50,
|
2022-05-01 22:48:34 +02:00
|
|
|
"kick": 25,
|
2022-05-07 10:14:59 +02:00
|
|
|
"redact": 25,
|
2022-04-22 16:58:24 +02:00
|
|
|
"state_default": 50,
|
|
|
|
"users": {
|
|
|
|
// READ THE BEGINNING OF THE FILE FOR THIS SECTION AND PROPER FORMAT! OR SEE YOUR CURRENT EVENT!
|
|
|
|
},
|
|
|
|
"users_default": 0
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
* Otherwise "Reasonable version", but
|
|
|
|
* Only moderators can invite
|
|
|
|
|
2021-11-23 11:32:11 +01:00
|
|
|
### Paranoid version
|
|
|
|
|
2022-04-22 16:55:04 +02:00
|
|
|
```json5
|
2021-11-23 11:32:11 +01:00
|
|
|
{
|
|
|
|
"ban": 50,
|
|
|
|
"events": {
|
|
|
|
"im.vector.modular.widgets": 100,
|
|
|
|
"m.room.avatar": 100,
|
|
|
|
"m.room.canonical_alias": 100,
|
|
|
|
"m.room.encryption": 100,
|
|
|
|
"m.room.history_visibility": 100,
|
2022-05-07 11:06:22 +02:00
|
|
|
"m.room.join_rules": 100,
|
2021-11-23 11:32:11 +01:00
|
|
|
"m.room.name": 100,
|
2022-05-03 10:49:40 +02:00
|
|
|
"m.room.pinned_events": 100,
|
2021-11-23 11:32:11 +01:00
|
|
|
"m.room.power_levels": 100,
|
|
|
|
"m.room.retention": 100,
|
|
|
|
"m.room.server_acl": 100,
|
|
|
|
"m.room.tombstone": 100,
|
|
|
|
"m.room.topic": 100,
|
|
|
|
"m.space.child": 100
|
|
|
|
},
|
|
|
|
"events_default": 0,
|
|
|
|
"historical": 100,
|
|
|
|
"invite": 100,
|
|
|
|
"kick": 50,
|
|
|
|
"redact": 50,
|
|
|
|
"state_default": 100,
|
|
|
|
"users": {
|
2022-04-22 16:55:04 +02:00
|
|
|
// READ THE BEGINNING OF THE FILE FOR THIS SECTION AND PROPER FORMAT! OR SEE YOUR CURRENT EVENT!
|
2021-11-23 11:32:11 +01:00
|
|
|
},
|
|
|
|
"users_default": 0
|
|
|
|
}
|
|
|
|
```
|