Skip to content

Attempt to allow Draupnir to use room V12. #918

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2025
Merged

Conversation

Gnuxie
Copy link
Member

@Gnuxie Gnuxie commented Jul 16, 2025

  • Updated to matrix-basic-types 1.4.0 which changes the regex validating room ids.

  • Changed the package override so that all dependencies use matrix-basic-types 1.4.0, including the matrix-protection-suite.

  • Removed code that tries to store details about discovered rooms in the room takdedown protection. These were unreliable for so many reasons and also are now broken given the room origin cannot be extracted from the room id. Details for why this is can be found in the reviews of MSC4291: Room IDs as hashes of the create event matrix-org/matrix-spec-proposals#4291.

@Gnuxie Gnuxie requested a review from nexy7574 July 16, 2025 18:58
@Gnuxie Gnuxie force-pushed the gnuxie/room-v12-compat branch from 8457d50 to ca1fa2c Compare July 16, 2025 19:11
Comment on lines 79 to 78
const storeResult = await this.hashStore.storeRoomIdentification({
creator: details.creator,
roomID: details.room_id,
server: roomIDServerName(details.room_id),
});
if (isError(storeResult)) {
log.error(
"Error storing room details for a room",
roomID,
details,
storeResult
);
}
// TODO: normally we would store details about the room, such as the creator,
// and the server, but currently this is unviable.
// https://matrix.org/blog/2025/07/security-predisclosure/
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok this grand idea doesn't work, we actually do depend on being able to extract the creator in tests.. even though in reality this code is probably populating the database with bad data....

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could always provide a bogus server name if it's not critical

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok no there is a check for that above, my bad.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok so all of these changes were unecessary lemao

- Updated to matrix-basic-types 1.4.0 which changes
  the regex validating room ids.

- Changed the package override so that all dependencies
  use matrix-basic-types 1.4.0, including the matrix-protection-suite.

- Removed code that tries to store details about discovered rooms in
  the room takdedown protection. These were unreliable for so many
  reasons and also are now broken given the room origin cannot be
  extracted from the room id. Details for why this is can be found in
  the reviews of
  matrix-org/matrix-spec-proposals#4291.
@Gnuxie Gnuxie force-pushed the gnuxie/room-v12-compat branch from ca1fa2c to b3ebec5 Compare July 16, 2025 19:30
@Gnuxie Gnuxie merged commit 1f8da29 into main Jul 16, 2025
6 checks passed
@Gnuxie Gnuxie deleted the gnuxie/room-v12-compat branch July 16, 2025 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants