gist/matrix/m.policy.rule.server
Aminda Suomalainen b07fac01ad
matrix/m.policy.rule.server: warn about the-draupnir-project/Draupnir#56
2024-01-31 15:05:03 +02:00
..
README.md matrix/m.policy.rule.server: warn about the-draupnir-project/Draupnir#56 2024-01-31 15:05:03 +02:00

README.md

m.policy.rule.server

This event is the language of Draupnir/Mjolnir and experimental Mjolnir style ignore in Element Web labs when speaking of homeservers.

TL;DR

  • Event type: m.policy.rule.server
  • State key: example.net (server name goes here)

Allowing all servers

WARNING! This is poorly supported and operations such as unban may unexpectedly remove this rule!

  • Event type: m.policy.rule.server
  • State key: *
{
  "entity": "*",
  "reason": "Default ACL allow all",
  "recommendation": "org.matrix.mjolnir.allow"
}

Allowing server mjolnir.matrix.org

  • Event type: m.policy.rule.server
  • State key: mjolnir.matrix.org
{
  "entity": "mjolnir.matrix.org",
  "reason": "Mjolnir for all!",
  "recommendation": "org.matrix.mjolnir.allow"
}

Banning evil example.org

Well, the example organization domain is now evil 😼

  • Event type: m.policy.rule.server
  • State key: example.org
{
  "entity": "*",
  "reason": "Evil example homeserver",
  "recommendation": "m.ban"
}