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
Unknown Object (File)
Thu, Dec 19, 11:07 AM
Unknown Object (File)
Thu, Dec 19, 11:07 AM
Unknown Object (File)
Thu, Dec 19, 11:07 AM
Unknown Object (File)
Thu, Dec 19, 11:07 AM
Unknown Object (File)
Thu, Dec 19, 11:07 AM
Unknown Object (File)
Fri, Dec 6, 7:22 AM
Unknown Object (File)
Thu, Nov 28, 5:10 PM
Unknown Object (File)
Thu, Nov 28, 3:09 PM
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