Page MenuHomePhabricator

[backup-service] implement endpoint to upload User Keys
ClosedPublic

Authored by kamil on Nov 5 2024, 9:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 9:01 PM
Unknown Object (File)
Sat, Dec 14, 7:19 PM
Unknown Object (File)
Sat, Dec 14, 4:57 PM
Unknown Object (File)
Sun, Dec 8, 3:44 PM
Unknown Object (File)
Sun, Dec 8, 4:20 AM
Unknown Object (File)
Fri, Nov 29, 3:28 PM
Unknown Object (File)
Thu, Nov 28, 12:52 AM
Unknown Object (File)
Wed, Nov 27, 2:51 AM
Subscribers

Details

Summary

Part of ENG-6145.

Tracked in ENG-9672.

image.png (818×2 px, 211 KB)

Depends on D13875

Test Plan

Tested in D13879

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Nov 6 2024, 3:41 AM
kamil edited the summary of this revision. (Show Details)
kamil added inline comments.
services/backup/src/http/handlers/backup.rs
111–122 ↗(On Diff #45615)

We need an old backup item to add new holder to user data

124–158 ↗(On Diff #45615)

this could probably implemented better but not sure - curious for reviewers perspective

bartek added inline comments.
services/backup/src/http/handlers/backup.rs
124–158 ↗(On Diff #45615)

From data safety and consistency perspective, this code makes a lot of sense - we make sure each backup has its own attachment holders. It's slightly worse about performance due to multiple Blob service calls, however this code won't be run frequently.
A potential improvement would be to use the batch-holder endpoints, but this is a follow-up for a separate diff, it can be deferred.

This revision is now accepted and ready to land.Nov 6 2024, 6:12 AM
services/backup/src/http/handlers/backup.rs
124–158 ↗(On Diff #45615)

Good call, created ENG-9874