You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: proposals/4311-stripped-state-create-event.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,9 @@ where available. No other changes are proposed to the Client-Server API.
32
32
Over federation, for room versions affected by [MSC4291](https://github.com/matrix-org/matrix-spec-proposals/pull/4291),
33
33
the `m.room.create` event MUST be included in [`invite_room_state`](https://spec.matrix.org/v1.15/server-server-api/#put_matrixfederationv1inviteroomideventid)
34
34
and [`knock_room_state`](https://spec.matrix.org/v1.15/server-server-api/#get_matrixfederationv1make_knockroomiduserid)
35
-
and MUST be a properly-formatted PDU according to that room version's event format specification.
35
+
and MUST be a properly-formatted PDU according to that room version's event format specification. The
36
+
full PDU format is used to ensure that receiving applications can independently verify the room ID
37
+
by calculating the reference hash of the create event themselves.
36
38
37
39
If the `m.room.create` event is not present, not a PDU, or not for the room ID specified, the server
38
40
MUST fail to continue processing the invite or knock. For invites, this is a `400 M_MISSING_PARAM`
@@ -68,7 +70,11 @@ of the above:
68
70
## Potential issues
69
71
70
72
* This technique is not applied to other state events present in stripped state. A future MSC or
71
-
series of MSCs is expected to address this particular concern.
73
+
series of MSCs is expected to address this particular concern. Specifically, future work is expected
74
+
to make it easier for applications to independently verify other events included in "stripped" state
75
+
when they become formatted as full PDUs too. (A rename from "stripped state" to something else may
76
+
also be required at that stage.) Until then, the other events are left in their stripped form to
77
+
indicate that they are explicitly untrusted data.
72
78
73
79
* Some server implementations allow safety tooling and other applications to hook into them between
74
80
the Federation API and Client-Server API. Such implementations are encouraged to make the create
0 commit comments