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

/make_join responses should not include signatures on events. #202

Closed
wants to merge 1 commit into from

Conversation

clokep
Copy link
Member

@clokep clokep commented Aug 30, 2021

This corresponds to matrix-org/synapse#10404 which shipped with Synapse 1.39.0.

I confirmed that Synapse 1.38.0 fails this test.

I'm not 100% sure we want to assert this via complement, but it seems like a bit of a tricky thing that's "wrong" to do.

@clokep clokep requested a review from a team August 30, 2021 18:11
@richvdh
Copy link
Member

richvdh commented Aug 31, 2021

I'm not 100% sure of this, either. We don't normally enforce the absence of fields in any API response.

I kinda wonder if we should make it the joining server's problem, in that if it wants to modify the event, it needs to remove any existing signatures so that there are no invalid sigs.

@clokep
Copy link
Member Author

clokep commented Aug 31, 2021

I kinda wonder if we should make it the joining server's problem, in that if it wants to modify the event, it needs to remove any existing signatures so that there are no invalid sigs.

That could work too. I guess we can't error and try another server since that wouldn't be backwards compatible with older Synapses.

@clokep
Copy link
Member Author

clokep commented Sep 1, 2021

Note that I originally wanted to write this since it was non-obvious that Synapse was even sending these signatures so my hope was that we could stop other homeservers from running into the same implementation issue. 🤷 I do agree that I don't like asserting things aren't there though. I can close this then.

Do you have thoughts on a next step? Is it clarifying the spec? An MSC for a joining server rejecting (or stripping) a response that includes signatures?

@clokep
Copy link
Member Author

clokep commented Sep 1, 2021

Based on conversations with Synapse, Dendrite, and Conduit devs it doesn't seem we want to be asserting this.

@clokep clokep closed this Sep 1, 2021
@clokep clokep deleted the clokep/join-sigs branch September 1, 2021 17:05
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