HomePhabricator
Diffusion Comm 856b61cb9083

[keyserver] sync platform details on keyserver start

Description

[keyserver] sync platform details on keyserver start

Summary:
if the primary node is able to fetch auth metadata from mariadb when the process starts, we should try syncing the keyserver's platform details.

if the node is unable to fetch auth metadata from mariadb, then the login or registration RPC will handle syncing platform details

Depends on D13666

Test Plan:

  1. ran yarn dev and my keyserver code version in ddb was updated to 129.
  2. logged out of keyserver, cleared access token from metadata table, and ran yarn dev again. keyserver logged in to identity and platform details looked right in devices table. syncPlatformDetails function was not called

Reviewers: ashoat, will

Reviewed By: ashoat

Subscribers: tomek

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

Details

Provenance
varunAuthored on Oct 9 2024, 12:13 PM
Reviewer
ashoat
Differential Revision
D13667: [keyserver] sync platform details on keyserver start
Parents
rCOMM43ddf8b93c57: [keyserver] factor out identity auth and saveIdentityInfo from…
Branches
Unknown
Tags
Unknown