Page MenuHomePhabricator

[backup] Introduce download endpoints
ClosedPublic

Authored by michal on Aug 28 2023, 1:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 14, 7:42 PM
Unknown Object (File)
Sat, Dec 14, 7:42 PM
Unknown Object (File)
Sat, Dec 14, 7:41 PM
Unknown Object (File)
Sat, Dec 14, 7:30 PM
Unknown Object (File)
Mon, Nov 25, 7:08 PM
Unknown Object (File)
Nov 22 2024, 6:59 PM
Unknown Object (File)
Nov 22 2024, 8:20 AM
Unknown Object (File)
Oct 27 2024, 5:01 PM
Subscribers

Details

Summary

ENG-4501

Endpoints for downloading backup blobs: user_keys and user_data.

Test Plan

Run:

GET http://127.0.0.1:50052/backups/id7/user_keys
Authorization: Bearer eyJ1c2VySUQiOiAiMSIsICJhY2Nlc3NUb2tlbiI6ICIyIiwgImRldmljZUlEIjogIjMifQ==

GET http://127.0.0.1:50052/backups/id7/user_data
Authorization: Bearer eyJ1c2VySUQiOiAiMSIsICJhY2Nlc3NUb2tlbiI6ICIyIiwgImRldmljZUlEIjogIjMifQ==

Test if the returned data is correct. Run with non-existant backup id, check if 404 is returned.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

michal added inline comments.
services/comm-services-lib/src/blob/client.rs
87 ↗(On Diff #30422)

Modified so we don't have to unnecessarily allocate a vec.

This revision is now accepted and ready to land.Aug 28 2023, 5:28 AM