HomePhabricator
Diffusion Comm 9fc405d0fda4

[backup] Add endpoint to delete user data

Description

[backup] Add endpoint to delete user data

Summary:
Added a DELETE /user_data/{user_id} Backup service endpoint that takes care of deleting all service user data.

Depends on D12970

Test Plan:
Created two backups for user, and some logs (used Commtest to generate data). Called the endpoint in Postman

  • Verified that DDB data was deleted
  • Verified that blobs were removed from Blob service
  • Verified that only service-to-service token is accepted. HTTP 403 otherwise

Reviewers: kamil, marcin, varun

Reviewed By: kamil

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D12971

Details

Provenance
bartekAuthored on Aug 5 2024, 3:52 AM
Reviewer
kamil
Differential Revision
D12971: [backup] Add endpoint to delete user data
Parents
rCOMM32dbc25d2be6: [backup] Extract function to query DDB index
Branches
Unknown
Tags
Unknown