Requests for comment/Opt-in site registration during installation

Description
This is an RFC to provide a MediaWiki API call that would be part of a statistics gathering extension. This extension would be installed on Wikimedia equipment (in WMF labs initially).

Rationale
Currently there is no method to collect statistics on wiki installations built into MediaWiki. This means that a lot (probably the majority) of wikis get installed and, unless they are discovered somehow, tools that track wiki installations (like wikistats or WikiApiary) cannot find them. This is a method that would enable us to better estimate the number of users of MediaWiki.

To provide an obvious benefit to the person installing MediaWiki, if an end user would opt-in to this notification, we could also use future checks to notify the administrator on-wiki of security updates that they should apply.

Installer implementation
A screen would be added to the installer that would tell the user what information is being sent to the ping server, what purpose it would serve, and request permission to send it. The information sent would be summarized in a human-readable form and access provided, if requested, to the actual JSON strings that would be sent to the ping server. This allows the user to verify, if they are so motivated, that the data we're sending is what we say it is.

The following additional bits of information would be collected:


 * A wiki logo
 * This could be uploaded to the wiki and would provide a good opportunity to verify that the wiki is correctly configured. The logo would be used (if provided) to help identify the wiki.


 * Wiki tagline
 * This would be put in MediaWiki:Tagline and also raise the visibility of this feature.


 * Wiki description
 * Could be used to seed Project:About.

These additional bits of information would be added to the siteinfo api call.

After the user provided this information and agreed to ping ths ping server, the following information would be sent to the ping server:

Alternatively, send only the API url and the properties that the siteinfo API does not provide (bug 54428). This also verifies the server gives a valid response (see Spam the other way).

Ping server implementation
The ping server would be a MediaWiki installation with an extension installed that would be capable of receiving the above pings. Each ping would result in a new row in a database table.

Bugzilla entries

 * Provide an opt-in ability to register the user's MediaWiki installation
 * Create Ping server extension for MediaWiki
 * Create ping.wmflabs.org
 * Expose proposed ping info in the API
 * Ask for wiki logo during installation
 * Ask for oneline wiki tagline during installation
 * Ask for wiki description during installation

Considerations
Here are some considerations that must be dealt with properly before this can be implemented.

Privacy
In an effort to preserve privacy, this should be an opt-in feature. That is, the end user must purposefully checks a box saying “ping wikimedia” (and it is made clear what information is being sent in the ping) before the ping is executed.

Spam
Spam is already a problem for many new Wiki users. If there was a place to get new wiki installations shortly after they happened, the spammers could bomb them almost instantaneously. For this reason, access to real-time data should be limited initially. Perhaps if we have better mechanisms for fighting spam, access to real-time data could be allowed.

Alternatively, some users may want us to advertise their wiki upgrade or installation, so perhaps there should be a “make this installation public” option with requisite warnings.

Spam the other way
It would be very easy for someone to spam this database by sending false "pings", either with completely bogus data or with data pointing to a (possibly non-wiki) spam site.

This is another reason not to publish all the pings received without at least verifying that it is a MediaWiki site.

Discussion
I agree with the use for easy to find/use registration for MW installs, especially in regards to keeping site operators up to date with relevant security releases and anti-spam tools they could be using. However, one potential issue with the flow of registration described: Often a new wiki will, in my experience (started one small and one mid sized wiki, helped on a handful of others including wikiapiary where I'm a sysop), want to remain non-public for a few days/weeks during the initial setup phase (adding extensions, creating basic templates, making some seed content with already trusted community members), but would benefit from registration. Having a way to either give delayed registration (i.e. "Register in one week, Register in two weeks, etc") along with clarification of possible reasons to delay (something like "register this site when you expect to have anti-spam measures configured and want it to be findable by the public") or give the option to register immediately but have the wiki non-public (does not appear on any public facing lists/searches) until an administrator alters the setting may avoid many sites slipping through the cracks due to the person setting up the install wanting to keep the site hidden initially and just not bothering to/forgetting to register it later. An alternative solution would be to move registration from install to a special page accessible only by bureaucrats and add a "register this wiki (founder only)" or similar link to the default main page. An added bonus of moving the registration to later is that the tagline and logo are more likely to be stable later on than immediately after install (even if tagline and logo are requested at the start of install, on many sites they will be revised during the "private beta" setup stage).--Esp261 (talk) 15:06, 25 October 2013 (UTC)