Encryption fails for group chats when joining after initial backfill #1

Open
opened 2021-03-31 02:02:08 -04:00 by fair · 3 comments
Owner

"Own LINE puppet" = the puppet for your own LINE user.

Whenever that puppet is present in a (Matrix) room with encryption enabled, no message is able to be decrypted.

This might be caused by giving that puppet a different mxid than other puppets.

"Own LINE puppet" = the puppet for your own LINE user. Whenever that puppet is present in a (Matrix) room with encryption enabled, no message is able to be decrypted. This might be caused by giving that puppet a different mxid than other puppets.
Author
Owner

Actually, the encryption works as long as the room is joined before the first backfill happens. It has nothing to do with which puppets are in the room.

Actually, the encryption works as long as the room is joined before the first backfill happens. It has nothing to do with which puppets are in the room.
fair changed title from Encryption fails for rooms where own LINE puppet is present to Encryption fails for group chats when joining after initial backfill 2021-04-01 01:56:02 -04:00
Author
Owner

No longer reproducible.

No longer reproducible.
fair closed this issue 2021-06-16 02:25:02 -04:00
fair reopened this issue 2021-07-05 02:39:04 -04:00
Author
Owner

Actually, this can still happen, including when being auto-invited to a new group chat.

[INFO@mau.portal.<REDACTED>] Handling new message 69186 in chat !DVfGfDkMNPrOGOIWan:lecris.me
[DEBUG@mau.crypto] Encrypting event of type m.room.message for !DVfGfDkMNPrOGOIWan:lecris.me
[DEBUG@mau.bridge.e2ee] Got EncryptionError, sharing group session and trying again
[DEBUG@mau.crypto] Created inbound group session !DVfGfDkMNPrOGOIWan:lecris.me/K8G1uHMl/ecrP1mW4q3Bfgo6zAmxtST3/1XG4TxR>
[DEBUG@mau.crypto] Sharing group session 3Pikjiyep1cPCZrh4H099aEZjGb84b0MH6RFMNBCWNQ for room !DVfGfDkMNPrOGOIWan:lecri>
[DEBUG@mau.crypto] Got stored encryption state event and configured session to rotate after 100 messages or 7 days, 0:0>
[DEBUG@mau.crypto] Trying to encrypt group session 3Pikjiyep1cPCZrh4H099aEZjGb84b0MH6RFMNBCWNQ for @lecris:lecris.me
[INFO@aiohttp.access] 127.0.0.1 [05/Jul/2021:04:10:32 +0000] "PUT /transactions/6876?access_token=QkSD1KqWRGeGjbSvPVTpK>
[DEBUG@mau.crypto] Sending to-device events to 11 devices of 1 users to share 3Pikjiyep1cPCZrh4H099aEZjGb84b0MH6RFMNBCW>
[INFO@mau.crypto] Group session 3Pikjiyep1cPCZrh4H099aEZjGb84b0MH6RFMNBCWNQ for !DVfGfDkMNPrOGOIWan:lecris.me successfu>
[DEBUG@mau.crypto] Encrypting event of type m.room.message for !DVfGfDkMNPrOGOIWan:lecris.me
[DEBUG@mau.portal.<REDACTED>] Handled remote message 69186 -> $9L3TOxcUEvPOJ21i6acH8nRnxlIzP17Ds>
[INFO@mau.portal.<REDACTED>] Backfilled 1 messages through @lecris:lecris.me
[INFO@aiohttp.access] 127.0.0.1 [05/Jul/2021:04:10:32 +0000] "PUT /transactions/6877?access_token=QkSD1KqWRGeGjbSvPVTpK>
[INFO@aiohttp.access] 127.0.0.1 [05/Jul/2021:04:10:32 +0000] "PUT /transactions/6878?access_token=QkSD1KqWRGeGjbSvPVTpK>
[INFO@aiohttp.access] 127.0.0.1 [05/Jul/2021:04:10:32 +0000] "PUT /transactions/6879?access_token=QkSD1KqWRGeGjbSvPVTpK>
[DEBUG@mau.portal.<REDACTED>] Ignoring duplicate message 69186
[INFO@aiohttp.access] 127.0.0.1 [05/Jul/2021:04:10:40 +0000] "PUT /transactions/6880?access_token=QkSD1KqWRGeGjbSvPVTpK>
[DEBUG@mau.crypto] Sync response said we have 49 signed curve25519 keys left, sharing new ones...
[DEBUG@mau.crypto] Uploading 1 one-time keys
[DEBUG@mau.crypto] Created inbound session uTpV+MhMhHRkbd/q7ktj44pI6ajInKIRPkFeMSGwV80 for @lecris:lecris.me (sender ke>
[DEBUG@mau.crypto] Shared keys and saved account
[WARNING@mau.portal.<REDACTED>] Could not find ID of LINE user who sent message 69189
[INFO@mau.portal.<REDACTED>] Handling new message 69189 in chat !DVfGfDkMNPrOGOIWan:lecris.me
[DEBUG@mau.crypto] Encrypting event of type m.room.message for !DVfGfDkMNPrOGOIWan:lecris.me
[DEBUG@mau.portal.<REDACTED>] Handled remote message 69189 -> $ctE4hb48Lmg8zYSUjwCA6o839TxVDARlw>
[INFO@aiohttp.access] 127.0.0.1 [05/Jul/2021:04:11:44 +0000] "PUT /transactions/6881?access_token=QkSD1KqWRGeGjbSvPVTpK>
Actually, this can still happen, including when being auto-invited to a new group chat. ``` [INFO@mau.portal.<REDACTED>] Handling new message 69186 in chat !DVfGfDkMNPrOGOIWan:lecris.me [DEBUG@mau.crypto] Encrypting event of type m.room.message for !DVfGfDkMNPrOGOIWan:lecris.me [DEBUG@mau.bridge.e2ee] Got EncryptionError, sharing group session and trying again [DEBUG@mau.crypto] Created inbound group session !DVfGfDkMNPrOGOIWan:lecris.me/K8G1uHMl/ecrP1mW4q3Bfgo6zAmxtST3/1XG4TxR> [DEBUG@mau.crypto] Sharing group session 3Pikjiyep1cPCZrh4H099aEZjGb84b0MH6RFMNBCWNQ for room !DVfGfDkMNPrOGOIWan:lecri> [DEBUG@mau.crypto] Got stored encryption state event and configured session to rotate after 100 messages or 7 days, 0:0> [DEBUG@mau.crypto] Trying to encrypt group session 3Pikjiyep1cPCZrh4H099aEZjGb84b0MH6RFMNBCWNQ for @lecris:lecris.me [INFO@aiohttp.access] 127.0.0.1 [05/Jul/2021:04:10:32 +0000] "PUT /transactions/6876?access_token=QkSD1KqWRGeGjbSvPVTpK> [DEBUG@mau.crypto] Sending to-device events to 11 devices of 1 users to share 3Pikjiyep1cPCZrh4H099aEZjGb84b0MH6RFMNBCW> [INFO@mau.crypto] Group session 3Pikjiyep1cPCZrh4H099aEZjGb84b0MH6RFMNBCWNQ for !DVfGfDkMNPrOGOIWan:lecris.me successfu> [DEBUG@mau.crypto] Encrypting event of type m.room.message for !DVfGfDkMNPrOGOIWan:lecris.me [DEBUG@mau.portal.<REDACTED>] Handled remote message 69186 -> $9L3TOxcUEvPOJ21i6acH8nRnxlIzP17Ds> [INFO@mau.portal.<REDACTED>] Backfilled 1 messages through @lecris:lecris.me [INFO@aiohttp.access] 127.0.0.1 [05/Jul/2021:04:10:32 +0000] "PUT /transactions/6877?access_token=QkSD1KqWRGeGjbSvPVTpK> [INFO@aiohttp.access] 127.0.0.1 [05/Jul/2021:04:10:32 +0000] "PUT /transactions/6878?access_token=QkSD1KqWRGeGjbSvPVTpK> [INFO@aiohttp.access] 127.0.0.1 [05/Jul/2021:04:10:32 +0000] "PUT /transactions/6879?access_token=QkSD1KqWRGeGjbSvPVTpK> [DEBUG@mau.portal.<REDACTED>] Ignoring duplicate message 69186 [INFO@aiohttp.access] 127.0.0.1 [05/Jul/2021:04:10:40 +0000] "PUT /transactions/6880?access_token=QkSD1KqWRGeGjbSvPVTpK> [DEBUG@mau.crypto] Sync response said we have 49 signed curve25519 keys left, sharing new ones... [DEBUG@mau.crypto] Uploading 1 one-time keys [DEBUG@mau.crypto] Created inbound session uTpV+MhMhHRkbd/q7ktj44pI6ajInKIRPkFeMSGwV80 for @lecris:lecris.me (sender ke> [DEBUG@mau.crypto] Shared keys and saved account [WARNING@mau.portal.<REDACTED>] Could not find ID of LINE user who sent message 69189 [INFO@mau.portal.<REDACTED>] Handling new message 69189 in chat !DVfGfDkMNPrOGOIWan:lecris.me [DEBUG@mau.crypto] Encrypting event of type m.room.message for !DVfGfDkMNPrOGOIWan:lecris.me [DEBUG@mau.portal.<REDACTED>] Handled remote message 69189 -> $ctE4hb48Lmg8zYSUjwCA6o839TxVDARlw> [INFO@aiohttp.access] 127.0.0.1 [05/Jul/2021:04:11:44 +0000] "PUT /transactions/6881?access_token=QkSD1KqWRGeGjbSvPVTpK> ```
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: fair/matrix-puppeteer-line#1
No description provided.