gist/matrix/m.policy.rule.server
2023-06-08 11:05:14 +03:00
..
README.md add matrix/m.policy.{server,user}/README.md 2023-06-08 11:05:14 +03:00

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

  • 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"
}