Background
From T422880: Dumps user identification monitoring
Hypothesis WE5.2.13 will introduce user-agent enforcement for the dumps website. This work is being done because 70% of deduplicated dumps requests are automated in nature, and of that 70%, 69% are completely unidentifiable. This is largely the case because the dumps website exists outside of the CDN, meaning the previous iterations of user-agent policy enforcement did not apply. The scope of the related work will follow the initial pattern for user-agent enforcement. It will be a simple approach where requests from missing and non-compliant user-agents will simply be blocked. No tiered access will be implemented at this time.
Additionally, Dumps metrics are also also part of PP3 metric calculations for FY 26-27.
Scope
While the parent task captures the required work for more detailed metrics and analyses, this is specifically about extending the User-Agent classification to Dumps logs, so that can we can calculate the required metrics.
Since Dumps logs are not part of the webrequest logs, they won't be captured as part of the existing user-agent compute pipeline. It needs to be extended.
Proposed steps
Completed
- DPE SRE made dumps logs available in the Data Lake, with T425087
- currently at, event.webrequest_dumps_dev0 (will soon be promoted from dev namespace)
- We have the current User Agent classification pipeline: compute_user_agent_compliance_hourly
Required
(proposal)
What we really need is a classified User-Agents table, which can then be used for calculating downstream metrics with dbt.
- Create a new user agents classified table for Dumps:
- wmf_traffic.dumps_user_agent_compliance_classified_hourly
- We can have a new DDL or reuse the existing one, create_user_agent_compliance_classified_hourly_table.hql
- This separates the output from webrequest logs.
- Extend the current pipeline with a new task to classify dumps user-agents, that writes to the new destination table.
- Doesn't need backfill, as the data in the event table is only available from June 10.
- It will be a manual backfill from the notebook for data prior to that, which is already complete.
- Alternatively, we have a separate DAG independent for Dumps UA classification.