-
Notifications
You must be signed in to change notification settings - Fork 12
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
Rolling a homeserver's database back via backup could cause duplicate OTKs and hence UISIs #2155
Comments
This will happen 100% of the time in cases where the server is rolled back and someone has claimed a OTK during the bad new deployment. |
A fix to #1992 would also solve this. |
@uhoreg proposes an interesting mitigation measure: don't back up the OTKs table |
|
This idea seems good. It will mean that we fall back to fallback keys after the rollback, but that's fine. (Fallback keys are in a separate table to OTKs) We could also document that you could TRUNCATE TABLE on the OTKs table after restore. |
This is somewhat related to https://github.com/vector-im/element-web/issues/3309, in that both are fundamentally about OTKs getting out of sync between client and server.
The text was updated successfully, but these errors were encountered: