[keyserver] Handle SIGNED_IDENTITY_KEYS_BLOB response
Summary:
When we receive a SIGNED_IDENTITY_KEYS_BLOB response from the client, we want to verify the signature of the payload and then update the signed_identity_keys column of the cookies row in the DB.
(I didn't know what the right approach for error-handling here was, so I'm just continueing through the loop if the signedIdentityKeysBlob object is malformed?)
Depends on D7070
Test Plan:
- Nuke signed_identity_keys column for all rows of cookies table:
- Refresh the page on web so handleInitialClientSocketMessage gets hit on the keyserver
- Observe that the web client constructs and sends a valid signedIdentityKeysBlob by setting breakpoints in keyserver:
- Step through processClientResponses on the keyserver and make sure cookies table is updated as expected:
- "Refresh" the native app running in iOS Simulator so handleInitialClientSocketMessage gets hit on the keyserver.
- Observe that the native client constructs and sends a valid signedIdentityKeysBlob by setting breakpoints in keyserver:
- Step through processClientResponses on the keyserver and make sure cookies table is updated as expected:
Reviewers: ashoat, marcin
Reviewed By: ashoat
Subscribers: tomek
Differential Revision: https://phab.comm.dev/D7082