Page MenuHomePhabricator

Allow secret data sources
Closed, ResolvedPublicFeature

Description

Allow configuring in $wgExternalDatasources in LocalSettings.php data sources with their very nature hidden from wikiuser.

These data sources should be invoked with wiki markup like {{#get_external_data:source=Secret source no. 1}}, with any other parametres, usually passed to {{#get_*_data:}} functions, set in $wgExternalDatasources['Secret source no. 1'].

Event Timeline

What would be the benefit of this?

What would be the benefit of this?

The wiki admin or author may be unwilling to disclose his external data sources, or the fact that he uses them, or the way they are parsed. This information may either be an asset he doesn't want to share, or too sensitive and potentially leading to DOSing the data source or his being banned from it.

@alex-mashin - okay, that makes sense. For some reason, I was thinking that all the get_..._data functions let you use an ID in place of the source, but actually I think only get_db_data does that. So this seems reasonable - there's no reason for regular users to even know what type of source is being accessed.

alex-mashin changed the task status from Open to In Progress.Aug 23 2022, 4:52 PM
alex-mashin claimed this task.

Change 825872 had a related patch set uploaded (by Alex Mashin; author: mashin):

[mediawiki/extensions/ExternalData@master] Enable setting up queries to discreet data sources

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

Change 825872 merged by jenkins-bot:

[mediawiki/extensions/ExternalData@master] Enable setting up queries to discreet data sources

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

Change 826958 had a related patch set uploaded (by Alex Mashin; author: mashin):

[mediawiki/extensions/ExternalData@master] Further improvements to the obscure data sources

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

Change 826958 merged by jenkins-bot:

[mediawiki/extensions/ExternalData@master] Further improvements to the obscure data sources

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

Change 828483 had a related patch set uploaded (by Alex Mashin; author: mashin):

[mediawiki/extensions/ExternalData@master] Further improvements to obscure data sources

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

Change 828483 merged by jenkins-bot:

[mediawiki/extensions/ExternalData@master] Further improvements to hidden data sources

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

Change 829845 had a related patch set uploaded (by Alex Mashin; author: mashin):

[mediawiki/extensions/ExternalData@master] Suppress errors for hidden data sources

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

Change 829845 merged by jenkins-bot:

[mediawiki/extensions/ExternalData@master] Suppress errors for hidden data sources

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