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)
Wed, Nov 6, 11:03 PM
Unknown Object (File)
Wed, Nov 6, 11:03 PM
Unknown Object (File)
Wed, Nov 6, 11:02 PM
Unknown Object (File)
Wed, Nov 6, 10:19 PM
Unknown Object (File)
Oct 6 2024, 7:14 PM
Unknown Object (File)
Oct 6 2024, 7:14 PM
Unknown Object (File)
Oct 6 2024, 7:13 PM
Unknown Object (File)
Oct 6 2024, 6:49 PM
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.