Page MenuHomePhabricator

[keyserver] Introduce `setCookieSignedIdentityKeysBlob`
ClosedPublic

Authored by atul on Mar 12 2023, 3:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 2:26 AM
Unknown Object (File)
Sat, Nov 9, 2:26 AM
Unknown Object (File)
Sat, Nov 9, 2:26 AM
Unknown Object (File)
Sat, Nov 9, 2:25 AM
Unknown Object (File)
Sat, Nov 9, 12:42 AM
Unknown Object (File)
Tue, Nov 5, 10:12 PM
Unknown Object (File)
Tue, Nov 5, 10:12 PM
Unknown Object (File)
Tue, Nov 5, 10:12 PM
Subscribers
None

Details

Summary

Introduce setCookieSignedIdentityKeysBlob to update signed_identity_keys column of row in cookies table with id=cookieID.

This is to update serverDB when client SIGNED_IDENTITY_KEYS_BLOB response is received.


Depends on D7048

Test Plan

Ran query of that form manually in query console and it worked as expected. Will be tested implicitly by subsequent diffs in this stack.

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul requested review of this revision.Mar 12 2023, 3:52 PM

I think this diff would be easier to review if you included this new function's usage in the same diff

keyserver/src/session/cookies.js
801–805

Nit: I find SQL to be more readable this way

This revision is now accepted and ready to land.Mar 13 2023, 11:55 AM

address feedback

keyserver/src/session/cookies.js
801–805

Definitely, will make that change before landing

This revision was landed with ongoing or failed builds.Mar 14 2023, 10:03 AM
This revision was automatically updated to reflect the committed changes.