Managed Mjolnirs are being informed of every event sent to the appservice #412
Labels
A-Appservice
S-Critical
Prevents work, causes data loss and/or has no workaround
T-Task
Refactoring, enabling or disabling functionality, other engineering tasks
X-Release-Blocker
This issue must be resolved before the next release can be made
The mjolnirs will still compare the event against their joined/protected rooms deeper in the chain, so they won't act on any events in rooms they're not joined to or protecting, but this still is problematic and we should have defence in depth.
mjolnir/src/Mjolnir.ts
Lines 533 to 558 in 818e4cf
mjolnir/src/ProtectedRoomsSet.ts
Lines 176 to 178 in 818e4cf
Inspiration should be taken from bridges on how they manage tracking of rooms. The thing is you shouldn't do this naively because it does duplicate effort. Mjolnir instance already track which rooms they are joined to and are protecting, we just don't have a way to map from a roomId to a set of Mjolnirs that are joined to that room.
mjolnir/src/appservice/MjolnirManager.ts
Lines 99 to 104 in 818e4cf
The text was updated successfully, but these errors were encountered: