Page MenuHomePhabricator

[backup] Introduce download endpoints
ClosedPublic

Authored by michal on Aug 28 2023, 1:49 AM.
Tags
None
Referenced Files
F3368292: D8964.diff
Mon, Nov 25, 7:08 PM
Unknown Object (File)
Fri, Nov 22, 6:59 PM
Unknown Object (File)
Fri, Nov 22, 8:20 AM
Unknown Object (File)
Sun, Oct 27, 5:01 PM
Unknown Object (File)
Oct 18 2024, 10:39 AM
Unknown Object (File)
Oct 12 2024, 10:45 PM
Unknown Object (File)
Sep 27 2024, 11:58 PM
Unknown Object (File)
Sep 27 2024, 11:57 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