If a keyserver tries to create a link for which an entry exists, it means that a link was already created by some keyserver. Only one link can exist with a given name, so we have to block such an attempt.
Depends on D9943
Paths
| Differential D9944 Authored by tomek on Nov 21 2023, 8:26 AM.
Details Summary If a keyserver tries to create a link for which an entry exists, it means that a link was already created by some keyserver. Only one link can exist with a given name, so we have to block such an attempt. Depends on D9943 Test Plan Create a blob with invite_${secret} hash and check if it is impossible to create a link with the same secret. Also check if it is still possible to create other links.
Diff Detail
Event TimelineHerald added a subscriber: ashoat. · View Herald TranscriptNov 21 2023, 8:26 AM2023-11-21 08:26:32 (UTC-8) Harbormaster completed remote builds in B24308: Diff 33460.Nov 21 2023, 8:45 AM2023-11-21 08:45:46 (UTC-8) This revision is now accepted and ready to land.Nov 21 2023, 11:29 AM2023-11-21 11:29:05 (UTC-8) tomek removed a child revision: D9960: [keyserver] Add a column to invite_links table with a blob holder.Nov 24 2023, 6:15 AM2023-11-24 06:15:21 (UTC-8) tomek edited parent revisions, added: D9960: [keyserver] Add a column to invite_links table with a blob holder; removed: D9943: [keyserver] Check if a blob exists. Harbormaster completed remote builds in B24386: Diff 33584.Nov 24 2023, 6:32 AM2023-11-24 06:32:40 (UTC-8)
Harbormaster completed remote builds in B26335: Diff 36403.Jan 31 2024, 8:55 AM2024-01-31 08:55:00 (UTC-8) Closed by commit rCOMM649591495a52: [keyserver] Block creating invite links for which an entry in Blob service… (authored by tomek). · Explain WhyFeb 14 2024, 7:58 AM2024-02-14 07:58:19 (UTC-8) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 37079 keyserver/src/creators/invite-link-creator.js
keyserver/src/services/blob.js
|