Page MenuHomePhabricator

[keyserver] delete marking prekeys as published each time `olm` account is accessed
ClosedPublic

Authored by kamil on Oct 9 2023, 7:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 9, 6:46 AM
Unknown Object (File)
Sun, Mar 16, 11:14 PM
Unknown Object (File)
Mar 4 2025, 8:35 PM
Unknown Object (File)
Mar 4 2025, 8:35 PM
Unknown Object (File)
Mar 4 2025, 8:34 PM
Unknown Object (File)
Mar 4 2025, 8:27 PM
Unknown Object (File)
Feb 22 2025, 6:00 AM
Unknown Object (File)
Jan 13 2025, 12:41 AM
Subscribers

Details

Summary

Issue: ENG-3944.

This is part of D8476 (breaking this for smaller diffs because it's complex).

Keys should be marked as published only on:

Depends on D9421

Test Plan

N/A (but tested in previous diff that after actual publishing, keys are marked as published).

Diff Detail

Repository
rCOMM Comm
Branch
publish-prekey-rotation
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Oct 9 2023, 8:19 AM
This revision is now accepted and ready to land.Oct 10 2023, 3:33 AM

I noticed that when Jon was first working on this, he copy-pasted some of @marcin's functions and kept the same name. Since that point, it appears that the copy-pasted functions have diverged. I think we should look to deduplicate them, or maybe have one call the other. We should certainly rename them to have different names if we are going to keep both.

I found retrieveAccountKeysSet to be duplicated like this. I'm not sure, but there may be more. Separately, it looks like there is a lot of code duplication between getOlmSessionInitializationDataResponder and registerOrLogin.

No need to block landing this stack on this – feel free to create a follow-up task or another diff (before landing) if preferred.

I noticed that when Jon was first working on this, he copy-pasted some of @marcin's functions and kept the same name. Since that point, it appears that the copy-pasted functions have diverged. I think we should look to deduplicate them, or maybe have one call the other. We should certainly rename them to have different names if we are going to keep both.

I found retrieveAccountKeysSet to be duplicated like this. I'm not sure, but there may be more. Separately, it looks like there is a lot of code duplication between getOlmSessionInitializationDataResponder and registerOrLogin.

No need to block landing this stack on this – feel free to create a follow-up task or another diff (before landing) if preferred.

D9450