Page MenuHomePhabricator

[keyserver] check if there are any unpublished prekeys and publish them during rotation
ClosedPublic

Authored by varun on Fri, Jun 14, 9:40 AM.
Tags
None
Referenced Files
F2078360: D12442.id41413.diff
Sat, Jun 22, 4:02 PM
Unknown Object (File)
Fri, Jun 21, 5:23 PM
Unknown Object (File)
Thu, Jun 20, 6:35 PM
Unknown Object (File)
Thu, Jun 20, 6:20 AM
Unknown Object (File)
Wed, Jun 19, 10:07 AM
Unknown Object (File)
Tue, Jun 18, 1:19 PM
Unknown Object (File)
Tue, Jun 18, 1:19 PM
Unknown Object (File)
Tue, Jun 18, 1:18 PM
Subscribers

Details

Summary

during prekey rotation on keyserver, check if we have an unpublished prekey, and if we do, upload and mark them as published, then return

this matches the rotation logic on native

Depends on D12441

Resolves https://linear.app/comm/issue/ENG-6490/resolve-discrepancy-between-prekey-rotation-logics-on-native-and-the

Test Plan

called generate_prekey() to generate new content and notif prekeys. confirmed that the if condition was satisfied and the newly generated prekeys were uploaded to identity and marked as published

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable