Page MenuHomePhabricator

Create an API request proxy so that Tool Labs tools can access the Google API from a single IP address
Closed, ResolvedPublic5 Estimated Story Points

Description

Per T125459, we should create an API request proxy so that Tool Labs tools can access the Google API from a single IP address, as their API is restricted to a whitelist of IP addresses.

Event Timeline

kaldari triaged this task as High priority.Jun 1 2016, 6:20 PM
kaldari set the point value for this task to 5.

I'll start with something that is basically a clone of T132943: Create an API request proxy so that Tool Labs tools can access the Yandex API from a single IP address and then we can test to see if more work is needed.

The proxy is up and running at https://google-api-proxy.wmflabs.org/. Access from outside the Labs network will receive a 403 Forbidden response.

Any Google API key can be used with the proxy by adding the IP 208.80.155.245 as an authorized endpoint for the key. See https://wikitech.wikimedia.org/wiki/Nova_Resource:Google-api-proxy for additional information.

Assigning to @kaldari for validation.

MusikAnimal has volunteered to test this.

I tried this out on Tool Labs, using cURL and Ruby's HTTParty and had success