Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.83 KB

2261-fix-alias-redaction.md

File metadata and controls

41 lines (29 loc) · 1.83 KB

MSC2261: Allow m.room.aliases events to be redacted by room admins

Currently, the content of m.room.aliases events are protected from redaction by the redaction algorithm.

This opens it as an abuse vector where users can add spam or offensive aliases to the room state, which room adminstrators cannot remove.

Proposal

content.aliases should no longer be preserved when an m.room.aliases event is redacted.

This will require a new room version, since changes to the redaction algorithm also change the way that event hashes (and hence event IDs) are calculated.

TODO: should the room directory be updated to match the new room state, where possible? It kinda makes sense when the redaction is used to undo an accidental addition, but in general it might not be a great plan, particularly if we are switching to a world in which m.room.aliases is very much advisory. Also, bear in mind that redacting the removal of an alias would mean re-adding the alias.

Potential issues

See also

  • MSC2176, which proposes other changes to the redaction rules.
  • MSC2260, which suggests changes to the auth rules for m.room.aliases events.