This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Log when we see a to device message which contains unknown devices #6671
Labels
A-Logging
Synapse's logs (structured or otherwise). Not metrics.
When we receive a to device message we should look at all the device IDs and device keys in it to make sure they match what the server expects. If they don't match then a device list on somewhere is out of sync, and we should log to aid debugging.
(We may also want to think about proactively trying to repair the problem, but that is a next step).
e.g. a
m.room.encrypted
message with analgorithm: m.olm.v1.curve25519-aes-sha2
has:user_id
andsender_key
which we should have in ourdevice_lists_remote_cache
(if populated).content.ciphertext
should match device keys of other users in the room (and so should be indevice_lists_remote_cache
ore2e_device_keys
). If we don't recognise any other device keys then it may mean that ourdevice_lists_remote_cache
is out of date for a user in the room, or if there are device keys missing for our local users then the remote server's/client's device list may be out of date.The text was updated successfully, but these errors were encountered: