-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dce9c97
commit b5f1938
Showing
4 changed files
with
8 additions
and
1,239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# queryservice | ||
# Query Service | ||
> ℹ️ Issues for this repository are tracked on [Phabricator](https://phabricator.wikimedia.org/project/board/5563/) - ([Click here to open a new one](https://phabricator.wikimedia.org/maniphest/task/edit/form/1/?tags=wikibase_cloud | ||
)) | ||
|
||
## Allowlist | ||
The allowlist determines to which queryservices federated queries can be made. | ||
This list should contain at least the services that are allowed on the wikidata | ||
queryservice and any Wikibase Cloud hosted Wikibases | ||
|
||
To update the list to include new Wikibase Cloud wikis one can run the following: | ||
```lang=bash | ||
kubectl exec -it deployment/api-app-backend -- php artisan tinker --execute '\App\Wiki::all()->pluck("domain")->each(function ($i, $k) { echo "https://".$i."/query/sparql".PHP_EOL; })' > allowlist.txt | ||
cat allowlist-static.txt >> allowlist.txt | ||
The allowlist determines which query services can be used for federated queries. This list is provided at runtime by mounting a newline-delimited text file of endpoints to `/wdqs/allowlist.txt`. It should include all instances hosted by Wikibase Cloud. | ||
|
||
Example for `allowlist.txt`: | ||
``` | ||
https://query.wikidata.org/bigdata/namespace/dcatap/sparql | ||
https://query.wikidata.org/bigdata/namespace/wdq/sparql | ||
https://query.wikidata.org/sparql | ||
``` |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.