Page MenuHomePhabricator

[backup] Introduce download endpoints
ClosedPublic

Authored by michal on Aug 28 2023, 1:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 27, 5:01 PM
Unknown Object (File)
Fri, Oct 18, 10:39 AM
Unknown Object (File)
Sat, Oct 12, 10:45 PM
Unknown Object (File)
Sep 27 2024, 11:58 PM
Unknown Object (File)
Sep 27 2024, 11:57 PM
Unknown Object (File)
Sep 27 2024, 11:57 PM
Unknown Object (File)
Sep 27 2024, 11:49 PM
Unknown Object (File)
Aug 31 2024, 10:19 AM
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