Page MenuHomePhabricator

Record CDN/Backend api and IP reputation values in editattemptsblocked schema
Closed, ResolvedPublic

Description

Summary

The editattemptsblocked schema is one of our primary views into blocked edit attempts. If we enrich this schema with x_is_browser, x_trusted_request, x_provenance, and IP reputation variables, we'll be able to more easily filter out noise from bots, to understand the impact on humans from IP and IP range blocks.

Acceptance criteria

  • x_trusted_request, x_provenance and x_is_browser are recorded in the editattemptsblocked event logging stream
  • IP Reputation variables are recorded in the editattemptsblocked event logging stream

Event Timeline

I didn't tag https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikimediaEvents/+/1230918 correctly with this task, but that's the patch that logs the values

Change #1234916 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/WikimediaEvents@master] BlockUtils: Remove x-provenance

https://gerrit.wikimedia.org/r/1234916

Change #1234918 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/WikimediaEvents@wmf/1.46.0-wmf.13] BlockUtils: Remove x-provenance

https://gerrit.wikimedia.org/r/1234918

Change #1234918 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@wmf/1.46.0-wmf.13] BlockUtils: Remove x-provenance

https://gerrit.wikimedia.org/r/1234918

Mentioned in SAL (#wikimedia-operations) [2026-01-29T08:36:33Z] <kharlan@deploy2002> Started scap sync-world: Backport for [[gerrit:1234918|BlockUtils: Remove x-provenance (T415354)]]

Mentioned in SAL (#wikimedia-operations) [2026-01-29T08:38:55Z] <kharlan@deploy2002> kharlan: Backport for [[gerrit:1234918|BlockUtils: Remove x-provenance (T415354)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-01-29T08:44:18Z] <kharlan@deploy2002> Finished scap sync-world: Backport for [[gerrit:1234918|BlockUtils: Remove x-provenance (T415354)]] (duration: 07m 45s)

Change #1234916 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@master] BlockUtils: Remove x-provenance

https://gerrit.wikimedia.org/r/1234916

Change #1235022 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/WikimediaEvents@master] BlockUtils: Log x-provenance and IP reputation fields

https://gerrit.wikimedia.org/r/1235022

Change #1235022 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@master] BlockUtils: Log x-provenance and IP reputation fields

https://gerrit.wikimedia.org/r/1235022

kostajh renamed this task from Record CDN/Backend api values in editattemptsblocked schema to Record CDN/Backend api and IP reputation values in editattemptsblocked schema.Thu, Jan 29, 7:53 PM
kostajh updated the task description. (Show Details)
kostajh updated the task description. (Show Details)

Change #1235458 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/WikimediaEvents@wmf/1.46.0-wmf.13] BlockUtils: Log x-provenance and IP reputation fields

https://gerrit.wikimedia.org/r/1235458

Change #1235459 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/IPReputation@master] GetSecurityLogContextHandler: Add IP reputation organization

https://gerrit.wikimedia.org/r/1235459

Change #1235460 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/WikimediaEvents@master] BlockUtils: Log ip_reputation_organization

https://gerrit.wikimedia.org/r/1235460

Change #1235458 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@wmf/1.46.0-wmf.13] BlockUtils: Log x-provenance and IP reputation fields

https://gerrit.wikimedia.org/r/1235458

Mentioned in SAL (#wikimedia-operations) [2026-02-02T08:46:31Z] <kharlan@deploy2002> Started scap sync-world: Backport for [[gerrit:1235458|BlockUtils: Log x-provenance and IP reputation fields (T415354)]]

Mentioned in SAL (#wikimedia-operations) [2026-02-02T08:48:27Z] <kharlan@deploy2002> kharlan: Backport for [[gerrit:1235458|BlockUtils: Log x-provenance and IP reputation fields (T415354)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-02-02T08:56:36Z] <kharlan@deploy2002> Finished scap sync-world: Backport for [[gerrit:1235458|BlockUtils: Log x-provenance and IP reputation fields (T415354)]] (duration: 10m 05s)

Change #1235459 merged by jenkins-bot:

[mediawiki/extensions/IPReputation@master] GetSecurityLogContextHandler: Add IP reputation organization

https://gerrit.wikimedia.org/r/1235459

Change #1235460 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@master] BlockUtils: Log ip_reputation_organization

https://gerrit.wikimedia.org/r/1235460