Page MenuHomePhabricator

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

Authored by atul on Feb 27 2023, 5:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 16, 12:35 PM
Unknown Object (File)
Tue, Jun 11, 8:21 PM
Unknown Object (File)
Sat, Jun 1, 12:06 PM
Unknown Object (File)
May 11 2024, 10:31 AM
Unknown Object (File)
May 11 2024, 10:31 AM
Unknown Object (File)
May 11 2024, 10:31 AM
Unknown Object (File)
May 11 2024, 10:31 AM
Unknown Object (File)
May 10 2024, 6:18 PM
Subscribers
None

Details

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)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Feb 27 2023, 5:49 PM
atul edited the test plan for this revision. (Show Details)
atul attached a referenced file: F404710: 52524c.png. (Show Details)
This revision is now accepted and ready to land.Feb 27 2023, 7:09 PM
This revision was landed with ongoing or failed builds.Feb 27 2023, 7:47 PM
This revision was automatically updated to reflect the committed changes.

Missed this previously

keyserver/src/session/cookies.js
650–653

This should've been made $ReadOnly... going forward, whenever you touch a type, please take that moment to update it