Per T125459, we should create an API request proxy so that Tool Labs tools can access the Yandex API from a single IP address, as their API only allows one IP per subscription.
Description
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | None | T116957 Plagiarism detection tools for text (tracking) | |||
| Resolved | kaldari | T131169 Help CorenBot migrate to a new API | |||
| Resolved | kaldari | T125459 Investigation: Can we find a new search API for CorenSearchBot and Copyvio Detector tool? | |||
| Resolved | • bd808 | T132943 Create an API request proxy so that Tool Labs tools can access the Yandex API from a single IP address | |||
| Resolved | • bd808 | T132950 Create project Yandex-proxy | |||
| Resolved | yuvipanda | T132982 Static IP for yandex-proxy01.yandex-proxy.eqiad.wmflabs |
Event Timeline
I have a proxy up and running at https://yandex-proxy.wmflabs.org that will allow access from inside Labs. The proxy will present all requests to https://yandex.ru as being from the ip address 208.80.155.189.
The configuration used on the instance can be found at https://github.com/bd808/labs-yandex-proxy.
@kaldari and @Niharika: I think this is ready for review. You should be able to hit the new proxy from any host in Labs and see it respond. The next logic step would be to follow the instructions at https://tech.yandex.com/xml/doc/dg/task/registration-docpage/ and get a set of credentials for actually using the service.
@bd808: Sorry I didn't get you the docs earlier. Nothing but meetings and interviews today. I can go ahead and register credentials for the service. I set up an account there a couple weeks ago. I just need to know what IP address the requests are going to come from.
@bd808: Sorry I didn't notice this earlier, but we need to send the requests to https://yandex.com rather than https://yandex.ru. https://yandex.ru is specifically for the Russian-only search feature, while https://yandex.com is for the worldwide search.
Created documentation at https://wikitech.wikimedia.org/wiki/Nova_Resource:Yandex-proxy