Page MenuHomePhabricator

Purge rows from cu_useragent
Open, Needs TriagePublic

Description

The cu_useragent table added in T359312: Create cu_useragent table has private data (user agent strings) which, per DBA and to ensure privacy, must be purged. The exact strategy to do this has not been decided and needs consideration because when implementing Client Hints, we did not purge rows from cu_useragent_client_hints because of the difficulty in reliably deleting rows.

The following strategies could be used:

  1. Only deleting when the primary key is below 99% (as suggested in T359312#9614750)
  2. Using a "pending deletion" column strategy:
    1. If a cu_useragent row is un-used, mark the row as "pending deletion" by updating a column for the row to be deleted in the cu_useragent table - A dedicated column would need to be added for this.
    2. Wait for this change to be applied to all replicas
    3. Check if the row pending deletion is being used again
      1. If the row is being used, then mark the row as no longer pending deletion
      2. If the row isn't being used, then delete it.

Related Objects

StatusSubtypeAssignedTask
OpenFeatureNone
OpenFeatureNone
Resolved TBolliger
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedMarostegui
DeclinedNone
ResolvedPapaul
Resolvedtaavi
ResolvedMarostegui