Skip to content
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

Remove C-S unsigned data from PDU definitions #3522

Merged
merged 1 commit into from
Nov 24, 2021

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Nov 23, 2021

Remove a bunch of fields from the unsigned property of PDUs. These things shouldn't be passed over the Federation API, and they really shouldn't be trusted if they are sent by another server. (See also matrix-org/synapse#11080)

  • replaces_state is returned by Synapse, but probably shouldn't be.
  • redacted_because, prev_sender and prev_content are not sent by Synapse.

Preview: https://pr3522--matrix-org-previews.netlify.app

Remove a bunch of fields from the `unsigned` property of PDUs. These things
shouldn't be passed over the Federation API, and they *really* shouldn't be
trusted if they are sent by another server.

 * `replaces_state` *is* returned by Synapse, but probably shouldn't
   be.
 * `redacted_because`, `prev_sender` and `prev_content` are not sent by Synapse.
@richvdh richvdh requested a review from a team November 23, 2021 18:34
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