Page MenuHomePhabricator

[keyserver] Block creating invite links for which an entry in Blob service already exists
ClosedPublic

Authored by tomek on Nov 21 2023, 8:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 7, 8:03 AM
Unknown Object (File)
Tue, Apr 30, 8:12 AM
Unknown Object (File)
Sun, Apr 28, 2:39 AM
Unknown Object (File)
Thu, Apr 25, 8:10 PM
Unknown Object (File)
Mon, Apr 22, 4:47 PM
Unknown Object (File)
Sun, Apr 21, 9:49 AM
Unknown Object (File)
Wed, Apr 17, 4:02 PM
Unknown Object (File)
Wed, Apr 17, 12:11 PM
Subscribers

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

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Nov 21 2023, 8:45 AM
This revision is now accepted and ready to land.Nov 21 2023, 11:29 AM
keyserver/src/creators/invite-link-creator.js
152 ↗(On Diff #33584)

This doesn't need to be an async function