HomePhabricator
Diffusion Comm de9ea3310c90

[keyserver] Persist `signedIdentityKeysBlob` in `keyserver` on `login`

Tags
None
Referenced Files
F404710: 52524c.png
Feb 27 2023, 7:47 PM
File Not Attached
F404714: adaa17.png
Feb 27 2023, 7:47 PM
File Not Attached
Subscribers
None

Description

[keyserver] Persist signedIdentityKeysBlob in keyserver on login

Summary:
On login (for new clients), we persist signedIdentityKeysBlob in the signed_identity_keys column of the cookies table.

Next up is handling SIWE on web. Then will handle the native client. Then will add some validation regex tests just to make things a bit more robust.

Test Plan:
Log in succeeds and signed_identity_keys is populated as expected when signedIdentityKeysBlob is included in login request:

adaa17.png (550×5 px, 273 KB)

Log in succeeds and signed_identity_keys is <null> when signedIdentityKeysBlob is NOT included in login request (EG old clients):

52524c.png (236×1 px, 47 KB)

Reviewers: ashoat, tomek

Reviewed By: ashoat

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

Details