Page MenuHomePhabricator

[reports-service] Endpoint for uploading reports
ClosedPublic

Authored by bartek on Aug 28 2023, 2:44 AM.
Tags
None
Referenced Files
F3366440: D8970.id30428.diff
Mon, Nov 25, 11:26 AM
Unknown Object (File)
Fri, Nov 22, 10:03 AM
Unknown Object (File)
Fri, Nov 22, 4:32 AM
Unknown Object (File)
Sun, Oct 27, 3:42 PM
Unknown Object (File)
Sep 27 2024, 10:56 PM
Unknown Object (File)
Sep 27 2024, 10:56 PM
Unknown Object (File)
Sep 27 2024, 10:56 PM
Unknown Object (File)
Sep 27 2024, 10:50 PM
Subscribers

Details

Summary

HTTP endpoint for uploading new reports. Counterpart to keyserver's send_report and send_reports endpoints.
This endpoint can handle both single and multiple reports at once.

Reports are processed concurrently, in separate Tokio tasks - this speeds up the processing of multiple reports in case they need to be uploaded to Blob service.

Depends on D8968, D8940

Test Plan

Used Postman to send requests.

  • Sent a single report (example content copied from local mariadb) - ensured it was stored in DDB
  • Sent multiple reports - ensured they were all saved
  • Sent malfolmed requests (missing fields, invalid fields, etc.) - responds HTTP 400 Bad Request

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable