Skip to content
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

Unable to connect to key backup #26413

Closed
richvdh opened this issue Oct 20, 2023 · 4 comments
Closed

Unable to connect to key backup #26413

richvdh opened this issue Oct 20, 2023 · 4 comments
Labels
O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Critical Prevents work, causes data loss and/or has no workaround T-Defect

Comments

@richvdh
Copy link
Member

richvdh commented Oct 20, 2023

On one of my test accounts, this is shown in backup settings:

image

When I click "Connect to backup", I get:

image

But when I go back to settings, it is still the same as before.

In the console:

22:37:24.716 FetchHttpApi: --> GET http://localhost:8008/_matrix/client/v3/room_keys/version [rageshake.ts:74:27](webpack:///matrix-react-sdk/src/rageshake/rageshake.ts)
22:37:24.745 FetchHttpApi: <-- GET http://localhost:8008/_matrix/client/v3/room_keys/version [30ms 200] [rageshake.ts:74:27](webpack:///matrix-react-sdk/src/rageshake/rageshake.ts)
22:37:24.754 FetchHttpApi: --> GET http://localhost:8008/_matrix/client/v3/room_keys/keys?version=xxx [rageshake.ts:74:27](webpack:///matrix-react-sdk/src/rageshake/rageshake.ts)
22:37:24.811 FetchHttpApi: <-- GET http://localhost:8008/_matrix/client/v3/room_keys/keys?version=xxx [56ms 200] [rageshake.ts:74:27](webpack:///matrix-react-sdk/src/rageshake/rageshake.ts)
22:37:24.820    INFO matrix_sdk_crypto::machine: Successfully imported room keys, total_count: 1, imported_count: 0, room_keys: {}
    at /home/rav/work/matrix-rust-sdk/crates/matrix-sdk-crypto/src/machine.rs:1775 [rageshake.ts:74:27](webpack:///matrix-react-sdk/src/rageshake/rageshake.ts)
22:37:24.820 Checking key backup status... [rageshake.ts:74:27](webpack:///matrix-react-sdk/src/rageshake/rageshake.ts)
22:37:24.821 FetchHttpApi: --> GET http://localhost:8008/_matrix/client/v3/room_keys/version [rageshake.ts:74:27](webpack:///matrix-react-sdk/src/rageshake/rageshake.ts)
22:37:25.028 FetchHttpApi: <-- GET http://localhost:8008/_matrix/client/v3/room_keys/version [208ms 200] [rageshake.ts:74:27](webpack:///matrix-react-sdk/src/rageshake/rageshake.ts)
22:37:25.053 Key backup present on server but not trusted: not enabling key backup [rageshake.ts:74:27](webpack:///matrix-react-sdk/src/rageshake/rageshake.ts)
@weeman1337 weeman1337 added T-Defect S-Critical Prevents work, causes data loss and/or has no workaround O-Uncommon Most users are unlikely to come across this or unexpected workflow Z-Labs A-Element-R Issues affecting the port of Element's crypto layer to Rust labels Oct 23, 2023
@richvdh
Copy link
Member Author

richvdh commented Oct 24, 2023

Legacy crypto behaves much the same way. In the console:

15:06:40.724 Checking key backup status... [rageshake.ts:74:27](webpack:///matrix-react-sdk/src/rageshake/rageshake.ts)
15:06:40.724 FetchHttpApi: --> GET http://localhost:8008/_matrix/client/v3/room_keys/version [rageshake.ts:74:27](webpack:///matrix-react-sdk/src/rageshake/rageshake.ts)
15:06:40.785 FetchHttpApi: <-- GET http://localhost:8008/_matrix/client/v3/room_keys/version [61ms 200] [rageshake.ts:74:27](webpack:///matrix-react-sdk/src/rageshake/rageshake.ts)
15:06:40.787 Backup is trusted locally [rageshake.ts:74:27](webpack:///matrix-react-sdk/src/rageshake/rageshake.ts)
15:06:40.787 Ignoring signature from unknown key ed25519:T4lieB66JX4oVLHGYE7h+19mAX4LRXMh1Bc2vFpznO0 [rageshake.ts:74:27](webpack:///matrix-react-sdk/src/rageshake/rageshake.ts)
15:06:40.787 Ignoring signature from unknown key ed25519:JLBLBBZUGL [rageshake.ts:74:27](webpack:///matrix-react-sdk/src/rageshake/rageshake.ts)
15:06:40.787 No usable key backup: not enabling key backup [rageshake.ts:74:27](webpack:///matrix-react-sdk/src/rageshake/rageshake.ts)
15:06:40.788 RestoreKeyBackupDialog: found cached backup key

@richvdh richvdh removed Z-Labs A-Element-R Issues affecting the port of Element's crypto layer to Rust labels Oct 24, 2023
@richvdh richvdh changed the title Element-R: unable to connect to key backup Unable to connect to key backup Oct 24, 2023
@richvdh
Copy link
Member Author

richvdh commented Oct 24, 2023

The specific problem with this account is that the backup appears to have been signed with an old cross-signing key (and a device that no longer exists).

@BillCarsonFr
Copy link
Member

We should create several issues for that:

  • Create a new settings UX backup
  • Troubleshooting desynchronised backup (bad signature)
  • Define the identity reset sementic properly (reset cross signing keys should sign the exisisting backup? if trusted)

See https://github.com/matrix-org/internal-config/issues/1315

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Critical Prevents work, causes data loss and/or has no workaround T-Defect
Projects
None yet
Development

No branches or pull requests

3 participants