Skip to content

Ecryption key ratcheting dev tools #3214

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

Open
wants to merge 2 commits into
base: livekit
Choose a base branch
from
Open

Conversation

toger5
Copy link
Contributor

@toger5 toger5 commented Apr 15, 2025

This sets the ratchedWindowSize to >0 so the livekit client will try to ratchet keys before logging a unable to decrypt error.
It also exposes a ratchet button in the developer ui. Clients that do not support the ratched window > 0 will fail to decrypt once that button is pressed.

Supporting clients will jump to the next index.

This is a first step to support ratcheting and explore how it would work.
Since this just improves our devtools with a potentially helpful feature, we can consider merging it even though its mostly intended as a test.

A finding is, that the key material is extractable: false so we need to see if there is a solution how we could send the derived keys from the ratcheting to new joiners if we cannot extract it from the matrerial...

@toger5
Copy link
Contributor Author

toger5 commented Apr 18, 2025

Do we want this in the v0.10.0 release to make it possible to introduce ratcheting without breaking compatibility with v0.10.0?
If yes, then we should also do a backport for this and get it reviewed+merged.
To track it I will add it to the release tracker issue.

@toger5 toger5 changed the title set ratchet window to be 100. Ratcheting dev tools Apr 23, 2025
@toger5 toger5 changed the title Ratcheting dev tools Ecryption key ratcheting dev tools Apr 23, 2025
@toger5
Copy link
Contributor Author

toger5 commented May 13, 2025

@BillCarsonFr from the testing today this seems to still be a okay idea right?
Should this be adapted to match the new encryption manager an lk patch?

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

Successfully merging this pull request may close these issues.

2 participants