Page MenuHomePhabricator

[keyserver] Introduce `setCookieSignedIdentityKeysBlob`
ClosedPublic

Authored by atul on Mar 12 2023, 3:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 12:19 AM
Unknown Object (File)
Mon, Nov 25, 12:06 AM
Unknown Object (File)
Sun, Nov 24, 9:32 PM
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
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
arcpatch-D7049 (branched from 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 ↗(On Diff #23653)

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 ↗(On Diff #23653)

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.