element-hq / element-meta

Shared/meta documentation and project artefacts for Element clients
75 stars 12 forks source link

Implement a mechanism for resyncing One-Time Keys between clients and servers #2587

Open richvdh opened 1 month ago

richvdh commented 1 month ago

Various things can cause servers to end up holding the public parts of one-time keys that clients have since forgotten the private parts of. For example:

It is proposed that we could implement a mechanism to detect such desyncronisation, and fix it.

https://github.com/matrix-org/matrix-spec-proposals/pull/4162 proposes a mechanism for this.

There has been significant discussion at https://github.com/element-hq/element-meta/issues/2406.

richvdh commented 1 month ago

I am not hugely in favour of this, as I believe it risks masking the underlying bugs. However, there might be merit in making it a configurable option which is only enabled on certain deployments.