We no longer rely on keyserver to keep the keys - this is a responsibility of Identity service.
https://linear.app/comm/issue/ENG-6521/check-serverrequesttypesmore-one-time-keys
Depends on D11176
Paths
| Differential D11177 Authored by tomek on Feb 26 2024, 8:20 AM.
Details Summary We no longer rely on keyserver to keep the keys - this is a responsibility of Identity service. https://linear.app/comm/issue/ENG-6521/check-serverrequesttypesmore-one-time-keys Depends on D11176 Test Plan Check if keyserver DB migration deletes the table.
Diff Detail
Event TimelineHerald added a subscriber: ashoat. · View Herald TranscriptFeb 26 2024, 8:20 AM2024-02-26 08:20:38 (UTC-8) Harbormaster returned this revision to the author for changes because remote builds failed.Feb 26 2024, 8:27 AM2024-02-26 08:27:22 (UTC-8) Comment Actions Looks good, just want to make sure that this won't break any older clients? I see the following in Test Plan:
so I'm assuming this table and functionality was never used? This revision is now accepted and ready to land.Feb 26 2024, 2:21 PM2024-02-26 14:21:29 (UTC-8) Harbormaster completed remote builds in B27181: Diff 37613.Feb 26 2024, 3:55 PM2024-02-26 15:55:28 (UTC-8) Comment Actions
MORE_ONE_TIME_KEYS request is sent by the server - so if a new version of the server is deployed, clients will no longer need to support responding to it. But the table was used in a way - the server was writing to it, but noone asked for the keys. getSessionPublicKeys endpoint was never used - verified that by searching git git log -S getSessionPublicKeys --source --all - it was modified in a couple of diffs where the validators were introduced. It appeared for the first time in https://phab.comm.dev/D2933, where it was renamed, but there were no usages at that point. Closed by commit rCOMM1d74ee4f6ed5: [lib][keyserver] Delete MORE_ONE_TIME_KEYS mechanism (authored by tomek). · Explain WhyFeb 27 2024, 1:41 AM2024-02-27 01:41:08 (UTC-8) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 37646 keyserver/src/creators/one-time-keys-creator.js
keyserver/src/database/migration-config.js
keyserver/src/database/setup-db.js
keyserver/src/endpoints.js
keyserver/src/fetchers/key-fetchers.js
|