/make_join responses should not include signatures on events.#202
/make_join responses should not include signatures on events.#202clokep wants to merge 1 commit into
Conversation
|
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. |
That could work too. I guess we can't error and try another server since that wouldn't be backwards compatible with older Synapses. |
|
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? |
|
Based on conversations with Synapse, Dendrite, and Conduit devs it doesn't seem we want to be asserting this. |
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.