Page MenuHomePhabricator

[blob] Add support for removing holders by tags
ClosedPublic

Authored by bartek on Oct 9 2024, 1:22 AM.
Tags
None
Referenced Files
F3338186: D13647.id45162.diff
Thu, Nov 21, 5:45 PM
F3335845: D13647.diff
Thu, Nov 21, 11:27 AM
Unknown Object (File)
Fri, Nov 15, 7:03 AM
Unknown Object (File)
Thu, Nov 14, 6:57 PM
Unknown Object (File)
Thu, Nov 14, 3:51 PM
Unknown Object (File)
Tue, Nov 12, 2:39 PM
Unknown Object (File)
Sat, Nov 9, 3:56 AM
Unknown Object (File)
Sat, Nov 9, 2:23 AM
Subscribers

Details

Summary

In D13646, a request format was extended to support removing holders by tags. Now server-side support is added.

Depends on D13646, D13618

Test Plan

Played with the DELETE /holders endpoint in Postman. Added some prefixed holders and verified that they were removed from DDB

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Oct 9 2024, 2:20 AM
bartek added inline comments.
services/blob/src/service.rs
50–54 ↗(On Diff #44997)

We should always map these explicitly, so from(ignore) makes sense to disable auto-conversion

kamil requested changes to this revision.Oct 10 2024, 2:16 AM
kamil added inline comments.
services/blob/src/http/handlers/holders.rs
62 ↗(On Diff #44997)

since we can query holders, we should make sure this is called only by service to forbid malicious users from deleting other user's holders

This revision now requires changes to proceed.Oct 10 2024, 2:16 AM

Address feedback. Deleting holders by querying tags now requires a s2s token.

This revision is now accepted and ready to land.Oct 10 2024, 7:40 AM