Page MenuHomePhabricator

[backup] Add endpoint to delete user data
ClosedPublic

Authored by bartek on Aug 5 2024, 4:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 5, 4:21 PM
Unknown Object (File)
Thu, Sep 5, 4:21 PM
Unknown Object (File)
Thu, Sep 5, 4:21 PM
Unknown Object (File)
Thu, Sep 5, 4:20 PM
Unknown Object (File)
Sat, Aug 31, 4:03 PM
Unknown Object (File)
Sat, Aug 31, 2:13 PM
Unknown Object (File)
Fri, Aug 30, 12:58 PM
Unknown Object (File)
Fri, Aug 30, 9:40 AM
Subscribers

Details

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

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Aug 5 2024, 5:08 AM
kamil added inline comments.
services/backup/src/http/handlers/user_data.rs
30 ↗(On Diff #43088)

I would log userID here

This revision is now accepted and ready to land.Aug 5 2024, 5:53 AM
services/backup/src/http/handlers/user_data.rs
30 ↗(On Diff #43088)

We consider userID as sensitive data in logs

This revision was landed with ongoing or failed builds.Aug 5 2024, 6:27 AM
This revision was automatically updated to reflect the committed changes.