Page MenuHomePhabricator

[keyserver] Introduce `setCookieSignedIdentityKeysBlob`
ClosedPublic

Authored by atul on Sun, Mar 12, 3:36 PM.
Tags
None
Referenced Files
F445909: D7049.id23725.diff
Sun, Mar 26, 8:22 AM
Unknown Object (File)
Sat, Mar 25, 9:28 AM
Unknown Object (File)
Sat, Mar 25, 5:07 AM
Unknown Object (File)
Fri, Mar 24, 7:14 PM
Unknown Object (File)
Tue, Mar 21, 11:06 PM
Unknown Object (File)
Sat, Mar 18, 5:13 PM
Unknown Object (File)
Sat, Mar 18, 5:13 PM
Unknown Object (File)
Sat, Mar 18, 5:13 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul requested review of this revision.Sun, Mar 12, 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 ↗(On Diff #23653)

Nit: I find SQL to be more readable this way

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

address feedback

keyserver/src/session/cookies.js
801–805 ↗(On Diff #23653)

Definitely, will make that change before landing

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