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 query secret storage status #2471

Closed
Nyanraltotlapun opened this issue Jul 13, 2024 · 7 comments
Closed

Unable to query secret storage status #2471

Nyanraltotlapun opened this issue Jul 13, 2024 · 7 comments
Labels
A-E2EE A-E2EE-Key-Backup O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect

Comments

@Nyanraltotlapun
Copy link

Steps to reproduce

  1. I probably used Nheko to create account initially. Signing other client works.
  2. Try to login with Element-desktop, or Web, or Element X
  3. Choose to enter recovery key or to reset keys

Outcome

What did you expect?

Element accepts recovery key or resets it

What happened instead?

Element did not accepts recovery key (Invalid key)
And cannot reset it (Unable to query secret storage status)

But Nheko accepts recovery key and works as expected.

Operating system

Arch Linux, Android, Web

Application version

Element version: 1.11.69 Crypto version: Rust SDK 0.7.0 (068a0af), Vodozemac 0.6.0

How did you install the app?

Arch repos, F-Droid

Homeserver

matrix.org

Will you send logs?

Yes

@dosubot dosubot bot added A-E2EE A-E2EE-Key-Backup O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround labels Jul 13, 2024
@t3chguy t3chguy transferred this issue from element-hq/element-web Jul 13, 2024
@Nyanraltotlapun
Copy link
Author

In logs I see such messages:

Error fetching backup data from server Error: Failed decoding Curve25519 key from base64: Invalid number of bytes for Curve25519, expected 32, got 45.
Error: Error: Failed decoding Curve25519 key from base64: Invalid number of bytes for Curve25519, expected 32, got 45.

Maybe make change to reset secret storage without checking how correct is what inside?

@Nyanraltotlapun
Copy link
Author

Ok. I deleted keys buck-up by using API directly from python. But bloody hell! This needs to be fixed!

@dal00
Copy link

dal00 commented Aug 8, 2024

I have the same issue, could you please elaborate on what you did to solve this?

@Nyanraltotlapun
Copy link
Author

I have the same issue, could you please elaborate on what you did to solve this?

I am embarrassed to admit I deleted the code.... I thought that I never need it again because issue would be solved...
Maybe this can be helpful - https://playground.matrix.org/#delete-/_matrix/client/v3/room_keys/version/-version-

@bonswouar
Copy link

Same issue here Invalid number of bytes for Curve25519, expected 32, got 45.
I hope this can be fixed without using the api, I don't think users should need to use the API directly at any point

@wj25czxj47bu6q
Copy link

Two users on the homeserver I administer have also experienced this error.

One of them definitely used Nheko in some capacity (I didn't ask for details) and successfully reconfigured key backup from Element after the DELETE /_matrix/client/v3/room_keys/version/{version} API was used.

Regarding the second user, I am not sure what clients besides Element they have used and have not attempted to erase their key backup at this time. (I will edit this comment with any updates.)

@richvdh
Copy link
Member

richvdh commented Oct 31, 2024

I was able to reproduce this by configuring a backup with a malformed public_key in the auth_data. More to the point, I was not able to reproduce it on develop (the backup doesn't work, obviously, but I was able to successfully reset secret storage).

I think this has been fixed by element-hq/element-web#28290.

@richvdh richvdh closed this as completed Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-E2EE A-E2EE-Key-Backup O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect
Projects
None yet
Development

No branches or pull requests

5 participants