HomePhabricator
Diffusion Comm 4f215ab1cbc7

[keyserver] cron job to refresh account prekeys

Description

[keyserver] cron job to refresh account prekeys

Summary:
Issue: ENG-3944.

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

Diff which publishes keys to Identity service.

Depends on D9420

Test Plan:

  1. Call revalidateAccountPrekeys() to make sure checks work properly
  2. Call publishNewPrekeys() to make sure upload works properly.
  3. Check Identity logs for Refreshing prekeys for user: ...
  4. Check if time (last_prekey_publish_time) is updated after successful upload.

Test error:

  1. Delete user credentials (identity will fail to auth while refreshing keys)
  2. Trigger cron job
  3. check logs for encountered error while trying to validate prekeys

Reviewers: varun, marcin, ashoat

Reviewed By: varun, marcin, ashoat

Subscribers: tomek, wyilio

Differential Revision: https://phab.comm.dev/D9421

Details

Provenance
kamilAuthored on Oct 9 2023, 6:07 AM
Reviewer
varun
Differential Revision
D9421: [keyserver] cron job to refresh account prekeys
Parents
rCOMMab54e7f4f946: [keyserver] implement function to get account prekey and prekey signature
Branches
Unknown
Tags
Unknown