Page MenuHomePhabricator

[backup] Introduce download endpoints
ClosedPublic

Authored by michal on Aug 28 2023, 1:49 AM.
Tags
None
Referenced Files
F3346320: D8964.diff
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
Unknown Object (File)
Sep 27 2024, 11:57 PM
Unknown Object (File)
Sep 27 2024, 11:49 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
No Lint Coverage
Unit
No Test Coverage

Event Timeline

michal added inline comments.
services/comm-services-lib/src/blob/client.rs
87

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