Page MenuHomePhabricator

[backup] Add /prepare_user_keys endpoint
ClosedPublic

Authored by bartek on Jan 30 2025, 1:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Feb 26, 2:07 PM
Unknown Object (File)
Wed, Feb 19, 6:17 AM
Unknown Object (File)
Tue, Feb 18, 11:25 AM
Unknown Object (File)
Tue, Feb 18, 10:43 AM
Unknown Object (File)
Mon, Feb 17, 1:34 PM
Unknown Object (File)
Mon, Feb 17, 12:15 PM
Unknown Object (File)
Mon, Feb 17, 9:26 AM
Unknown Object (File)
Sun, Feb 16, 12:10 AM
Subscribers

Details

Summary

This endpoint is very similiar to the POST /backups/user_keys with the following differences:

  • Is only callable by other services
  • User ID is passed in the form, instead of being retrieved from auth header
  • Doesn't save keys in DDB, instead returns BackupItem payload in response

Depends on D14275

Test Plan

Used Postman to call the endpoint:

  • Confirmed that user keys blob was stored in Blob Service
  • Confirmed that BackupItem payload JSON was returned in response

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.Jan 30 2025, 3:29 AM
bartek edited the summary of this revision. (Show Details)
bartek edited the test plan for this revision. (Show Details)
kamil added inline comments.
services/backup/src/http/mod.rs
98–102 ↗(On Diff #46861)

I would add comment explaining purpose of this endpoint

This revision is now accepted and ready to land.Jan 30 2025, 4:36 AM
This revision was automatically updated to reflect the committed changes.