mjolnir/test/integration
Gnuxie 4d5447cb50
Rework the banning and unbanning of entities in PolicyLists. (#345)
* Rework the banning and unbanning of entities in PolicyLists.

1. We keep track of the event that created a list rule so that we
can remove the rule by having a way to determine the original state key for the rule.
This is because the state key of rules can be anything and should not be
relied on by Mjolnir to unban things (which it was doing).

2. The old scheme for producing a state key was causing for some entities to escape bans
https://github.com/matrix-org/mjolnir/issues/322.

We could have used a hash or something similar, but we know that
the reason for the `rule:${entity}` scheme existed was for ease of debugging
and finding rules in devtools. So instead we have followed a scheme simalar to
bridges where the first character of an mxid is replaced with an underscore.
Everything else just gets put into the state key. Since domains can't have '@'
and room ids, aliases can't either.

3. We have stopped the need for Mjolnir to wait for the next response from sync after banning,
unbanning an entity so that we can apply ACL's sooner.

* Use PolicyList's `banEntity` method to create imported rules.
2022-08-19 13:09:08 +01:00
..
commands load config yaml manually, remove more references to static config (#347) 2022-08-16 15:51:18 +01:00
abuseReportTest.ts load config yaml manually, remove more references to static config (#347) 2022-08-16 15:51:18 +01:00
acceptInvitesFromSpaceTest.ts Replace acceptInvitesFromGroup with acceptInvitesFromSpace. (#338) 2022-08-17 10:05:23 +01:00
banListTest.ts Rework the banning and unbanning of entities in PolicyLists. (#345) 2022-08-19 13:09:08 +01:00
clientHelper.ts load config yaml manually, remove more references to static config (#347) 2022-08-16 15:51:18 +01:00
detectFederationLagTest.ts load config yaml manually, remove more references to static config (#347) 2022-08-16 15:51:18 +01:00
fixtures.ts load config yaml manually, remove more references to static config (#347) 2022-08-16 15:51:18 +01:00
helloTest.ts load config yaml manually, remove more references to static config (#347) 2022-08-16 15:51:18 +01:00
manualLaunchScript.ts load config yaml manually, remove more references to static config (#347) 2022-08-16 15:51:18 +01:00
mjolnirSetupUtils.ts load config yaml manually, remove more references to static config (#347) 2022-08-16 15:51:18 +01:00
policyConsumptionTest.ts load config yaml manually, remove more references to static config (#347) 2022-08-16 15:51:18 +01:00
protectionSettingsTest.ts load config yaml manually, remove more references to static config (#347) 2022-08-16 15:51:18 +01:00
reportPollingTest.ts load config yaml manually, remove more references to static config (#347) 2022-08-16 15:51:18 +01:00
roomMembersTest.ts Missing awaits on floating promises in tests. (#359) 2022-08-18 13:09:03 +01:00
standardConsequenceTest.ts load config yaml manually, remove more references to static config (#347) 2022-08-16 15:51:18 +01:00
throttleQueueTest.ts A background queue for kicking (#296) 2022-06-08 11:49:43 +02:00
throttleTest.ts load config yaml manually, remove more references to static config (#347) 2022-08-16 15:51:18 +01:00
timelinePaginationTest.ts load config yaml manually, remove more references to static config (#347) 2022-08-16 15:51:18 +01:00
utilsTest.ts matrix.to urls for aliases don't need a via param (#348) 2022-08-18 09:37:30 +01:00