Page MenuHomePhabricator

[keyserver] Replace `public_key` column with `signed_identity_keys` in `cookies` table
ClosedPublic

Authored by atul on Feb 27 2023, 4:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 18, 6:49 PM
Unknown Object (File)
Fri, Jun 14, 11:36 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 11 2024, 10:31 AM
Unknown Object (File)
May 11 2024, 10:31 AM
Unknown Object (File)
May 10 2024, 6:04 PM
Subscribers
None

Details

Summary

Remove public_key column from the cookies table and replace with signed_identity_keys which will hold primary + notification (ed25519, curve25519) public key pairs (stringified payload with signature).

Test Plan

Migration:
Run the migration and see that DB is as expected:

edb343.png (1×3 px, 736 KB)

Create DB:
Close reading, made sure to match social_proof line exactly.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Feb 27 2023, 4:08 PM
atul edited the test plan for this revision. (Show Details)
atul added inline comments.
keyserver/src/database/migration-config.js
177–181 ↗(On Diff #23202)

I improvised the "styling" here to keep under 80 characters. Happy to change to whatever.

keyserver/src/database/setup-db.js
37 ↗(On Diff #23202)

This line exceeds 80 characters, but so do many lines in this file so I ascertained that it's chill.

So is the format basically { +payload: string, +signature: string }, where payload is the previously agreed upon JSON format?

This revision is now accepted and ready to land.Feb 27 2023, 4:20 PM

So is the format basically { +payload: string, +signature: string }, where payload is the previously agreed upon JSON format?

Yeah

This revision was landed with ongoing or failed builds.Feb 27 2023, 5:29 PM
This revision was automatically updated to reflect the committed changes.