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

WebR full support for dehydrated device v2 #2278

Closed
6 of 7 tasks
Tracked by #922
pmaier1 opened this issue Jan 25, 2024 · 6 comments
Closed
6 of 7 tasks
Tracked by #922

WebR full support for dehydrated device v2 #2278

pmaier1 opened this issue Jan 25, 2024 · 6 comments
Assignees

Comments

@pmaier1
Copy link
Contributor

pmaier1 commented Jan 25, 2024

Tasks

@uhoreg uhoreg self-assigned this Feb 12, 2024
@BillCarsonFr
Copy link
Member

Adding the dehydrated flag on the device keys payload will break SQL lite store matrix-org/matrix-rust-sdk#3132

=> We have to release EAR and EIR with a new sdk version before starting creating web dehydrated device

@uhoreg
Copy link
Member

uhoreg commented Mar 11, 2024

Current status:

  • dehydration only enabled by setting well-known (or if dehydration key is in SSSS)
  • dehydrated device is displayed differently in device lists (if the user only has one device marked as dehydrated) -- as a localizable string in device list, and hidden in session manager but shown as an enabled feature in encryption settings
  • only enabled when unlocking SSSS by passphrase/key (not enabled when verifying with another device)
  • creates new dehydrated device once a week, but only if Element is not restarted/reloaded (dehydration key only stored in memory)

Work for future phases

  • persist dehydration key, so that dehydrated devices can be recreated even after restarts
  • add UI to enable dehydration (don't require enabling in well-known)
  • gossip dehydration key?
  • look into possibility of not encrypting to dehydrated device if recipient has enough other devices available

@uhoreg
Copy link
Member

uhoreg commented Mar 16, 2024

Screenshots:

Dehydrated device is removed from list of devices in Sessions tab.

Image

Presence of dehydrated device is indicated in Security & Privacy tab (called "Offline device" for now)

Image

In user info sidebar, dehydrated device is shown as "Offline device" (maybe we want to add some help text somehow?)

Image

@pmaier1
Copy link
Contributor Author

pmaier1 commented Mar 18, 2024

Thanks! I think we can find a better design for this but it's good enough for now. We should think about improvements once we plan delabsing it.

@uhoreg
Copy link
Member

uhoreg commented Apr 17, 2024

I've documented what's left to be done for phase 2 at element-hq/element-web#27336

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants