Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5354 from matrix-org/rav/server_keys/99-room-v5
Browse files Browse the repository at this point in the history
Implement room v5 which enforces signing key validity
  • Loading branch information
richvdh committed Jun 6, 2019
2 parents 2eb47e5 + d18e4ea commit 99d3497
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions changelog.d/5354.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Add a new room version where the timestamps on events are checked against the validity periods on signing keys.

10 changes: 5 additions & 5 deletions synapse/api/room_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ class RoomVersions(object):
StateResolutionVersions.V2,
enforce_key_validity=False,
)
VDH_TEST_KEY_VALIDITY = RoomVersion(
"vdh-test-key-validity",
RoomDisposition.UNSTABLE,
V5 = RoomVersion(
"5",
RoomDisposition.STABLE,
EventFormatVersions.V3,
StateResolutionVersions.V2,
enforce_key_validity=False,
enforce_key_validity=True,
)


Expand All @@ -97,6 +97,6 @@ class RoomVersions(object):
RoomVersions.V2,
RoomVersions.V3,
RoomVersions.V4,
RoomVersions.VDH_TEST_KEY_VALIDITY,
RoomVersions.V5,
)
} # type: dict[str, RoomVersion]

0 comments on commit 99d3497

Please sign in to comment.