Page MenuHomePhabricator

Add information about installed extensions to MediaWiki's Pingback
Open, LowPublic

Description

Third-party installations can opt to providing pingback, which informs us about how MediaWiki installations exists. It also gives us certain information about what the wikis run on (in terms of version used, memory limit, RDBMS etc). I propose to expand this set of information by including some details about the extensions the wiki runs on.

Reasoning

The Growth-Team would appreciate having this information in order to facilitate making technical decisions. Several features in GrowthExperiments are deliberately filled in a Wikimedia-specific way, but there are known third party users regardless of this. Unfortunately, without implementing a similar mechanism, there is no way to know how many third party installations exist (even under those circumstances). We would also appreciate knowing more about adoption of CommunityConfiguration outside of Wikimedia.

Information like this used to be provided by Wikiapiary, but that site appears to be unaccessible (according to https://www.mediawiki.org/wiki/WikiApiary, the site should be in read only mode, but in practice, I'm unable to load eg. https://wikiapiary.com/wiki/Extension:Echo).

Options

There are two ways how Pingback scope can be increased:

  1. Announce all extensions: This is more privacy invasive, but it gives us information about all extensions. This would also include extensions not developed by us; the name of those extensions could contain information that could identify the third party wiki (such as, were it to be called UniversityXFeatures, for example).
  2. Announce opted-in extensions: If we want to be more careful, we can only include information about a specific subset of extensions. That way, we only collect the data we need, and we also do not leak anything about extensions we didn't provide. In this scenario, we would need to maintain the opt in list and we would also need to have a process for updating it (or some sort of criteria an extension needs to meet to be included).

The scope of Pingback is defined within the Pingback Privacy Statement. Before going forward, we should have WMF Legal's approval to collect the extra data. We also need Legal to update the Privacy Statement to formally authorise the data collection.

Decision

The Growth-Team raised this request with WMF Legal and Privacy Engineering in October 2024. A formal review of the expansion was scheduled to take place in Q3 FY24-25 (ends on March 31, 2025). As part of this review, WMF Legal approved the implementation of option 1: announce all extensions, provided we inform the end users about the change via the release notes. More details about the expansion are available in the policy diff at foundation.wikimedia.org; full details are confidential and available to authorised WMF staff via Asana.

Implementation

To implement the change, we will need to make two changes:

  1. Update the schema: Pingback data collected according to the mediawikipingback schema, which will need to be updated to cover the newly collected data.
  2. Make the update in Pingback class: To actually start collecting the data, the Pingback class in core needs to be updated to include the list of extensions.

This change can be done as early as MediaWiki 1.44 (the very next release).

Event Timeline

As the WMF-Legal project tag was added to this task, some general information to avoid wrong expectations:
Please note that public tasks in Wikimedia Phabricator are in general not a place where to expect feedback from the Legal Team of the Wikimedia Foundation due to the scope of the team and/or nature of legal topics. See the project tag description.
Please see https://meta.wikimedia.org/wiki/Legal for when and how to contact the Legal Team. Thanks!

@Urbanecm_WMF Would the second option work by us whitelisting which extensions we want to receive from the third-party Wiki?

@Urbanecm_WMF Would the second option work by us whitelisting which extensions we want to receive from the third-party Wiki?

It would definitely work for us, we would just need to include our extensions in the opt-in list. We use some opt-in instrumentation already, such as PrefUpdateInstrumentation (see source), so this is not-so-new approach for us.

Good to know we have a patter for that. So if we have the extensions added in the same format as the PrefUpdateInstrumentation, any time someone installs or uninstalls the extensions we've added in the opt-in list we'll receive the data?

@Reedy do we need a legal review if we want to include our extensions in the opt-in list for the pingback extension? I tagged you since you have worked on a patch related to MediaWiki pingback

Good to know we have a patter for that. So if we have the extensions added in the same format as the PrefUpdateInstrumentation, any time someone installs or uninstalls the extensions we've added in the opt-in list we'll receive the data?

No. MediaWiki PingBack works by sending a heartbeat every ~month, including all data it found for that wiki. Currently, the data includes information about hardware the wiki runs on as well as available memory. My suggestion is to add (some) information about extensions (either all of them or limited to an opt-in list). Consequently, we would receive a list of installed extensions at wikis who opted-in every ~month, possibly filtered down to only include certain extensions.

(The good technical question is where would the opt in reside; whether directly within the code, or within some sort of WMF config, but that is something we can probably decide after we decide for one approach or the other)

@Reedy do we need a legal review if we want to include our extensions in the opt-in list for the pingback extension? I tagged you since you have worked on a patch related to MediaWiki pingback

I'm not Reedy, but I'd like to note that collection of this data is based on the MediaWiki Pingback Privacy Statement issued by WMF Legal. That statement explicitly enumerates all collected data and as far as I can see, it does not authorise collecting information about installed extensions in any way. As a result, including that information in PingBack would require that statement to be updated, which needs to be done by WMF Legal.

That said, I'd be curious to hear if there are any other ways how to get the data we're looking for here (other than PingBack).

Yes Martin, you are not @Reedy 😂. When I went through the schema, my limited understanding was that there's more that's still being sent. For instance, when I saw that it's sending the Mediawiki version, I assumed that it somehow sends more stuff about the MediaWiki installation with the version.

So it's the schema has to be changed, to allow whitelisting of extensions which pingback can then send back?

Submitted a L3SC, to learn more about Legal's standpoint on this suggestion. Link for WMF staff: https://app.asana.com/0/1200593981796154/1208524172805723/f.

Submitted a L3SC, to learn more about Legal's standpoint on this suggestion. Link for WMF staff: https://app.asana.com/0/1200593981796154/1208524172805723/f.

WMF Legal said this will require a more in-depth privacy review, which can be scheduled for mid to late November. In the meantime, this is blocked.

WMF Legal said this will require a more in-depth privacy review, which can be scheduled for mid to late November. In the meantime, this is blocked.

Did this take place?

WMF Legal said this will require a more in-depth privacy review, which can be scheduled for mid to late November. In the meantime, this is blocked.

Did this take place?

It was scheduled for Q3 of this FY, and it is currently happening. I'll post the result of the review once it is finished.

The Legal review is now completed. WMF Legal approved option 1 (announce all extensions), provided we inform end users about the change within the release notes. Considering option 1 is significantly easier than option 2, this task should be relatively straightforward to implement. For more details about what Legal cleared, please see the policy update at foundation.wikimedia.org. Full details are confidential and available to authorised WMF staff via the Asana ticket.

Technically speaking, this would need someone to update the Pingback class and the relevant schema. Because this work is no longer blocked on Legal, I'm moving this to Backlog, so it can be prioritized.

Krinkle renamed this task from Add information about installed extensions to MediaWiki's PingBack to Add information about installed extensions to MediaWiki's Pingback.Mar 21 2025, 8:43 AM