Page MenuHomePhabricator

Investigate how users perform actions logged in CheckUser, ahead of UA deprecation [8H]
Closed, DeclinedPublic

Description

Introduction

The user agent (UA) string is currently used to fight vandalism via CheckUser. It is stored for 90 days in the cu_changes table, and available to view by checkusers via the CheckUser extension. The UA is only stored in cu_changes for requests that perform a loggable action (e.g. editing, page creation, blocking, logging in, etc).

The UA string is passively received for all requests. Google Chrome intends to deprecate the UA string, and replace it with client hints. Client hint data must be actively asked for, via a header in the response. See T242825 for full details.

Loggable actions

Client hint data are not available on the first request, only subsequent requests. Loggable actions could be performed:

  1. On the first request (e.g. via an API)
  2. After a request that indicates it's about to be performed (e.g. posting an edit after requesting an edit page)
  3. Not on the first request, but also not after any requests that indicate it will be performed

Situation (3) led to a suggestion to ask for client hints in all responses - T257893

However, doing this could pose a risk to Wikimedia's perceived privacy practices because:

  • Our actively asking for the data could be flagged to users
  • Most of the requests we get are for reading articles and won't be followed up by loggable actions
  • Client hints are being introduced to try to persuade sites to ask only for the data they need, when they need it

Investigation

This task is for investigating how to determine how common the 3 situations are relative to each other.

Note that client hints are new and experimental, and their use will be investigated in T258591

Event Timeline

ARamirez_WMF renamed this task from Investigate how users perform actions logged in CheckUser, ahead of UA deprecation to Investigate how users perform actions logged in CheckUser, ahead of UA deprecation [8H].Jul 23 2020, 3:59 PM

@Tchanders I think we can decline this task, what do you think?

This investigation was to help us define a strategy for asking for client hints. That has been/is being worked out in T257893: [EPIC] Support User-Agent Client Hints header in CheckUser so this is no longer needed.