Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whitelisting our projects for the Search API #1181

Closed
tseaver opened this issue Oct 14, 2015 · 9 comments
Closed

Whitelisting our projects for the Search API #1181

tseaver opened this issue Oct 14, 2015 · 9 comments
Assignees

Comments

@tseaver
Copy link
Contributor

tseaver commented Oct 14, 2015

@jgeewax When beginning work on gcloud.search (2015-10-01), I requested that my project be whitelisted for the Search API via the form. Today, working on a system test for the API, I see the following:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "gcloud/search/document.py", line 321, in exists
    client.connection.api_request(method='GET', path=self.path)
  File "gcloud/connection.py", line 337, in api_request
    error_info=method + ' ' + url)
gcloud.exceptions.Forbidden: 403 The caller does not have permission (GET https://cloudsearch.googleapis.com/v1/projects/citric-celerity-697/indexes/system-tests/documents/aaa)

I do not see "Cloud Search" as an available API from my developer console. We need to get expedited access: I just re-submitted the form with @jgeewax as the "project owner".

@jgeewax
Copy link
Contributor

jgeewax commented Oct 14, 2015

Which project IDs do you need ? Just precise-truck-742 ? @tseaver

@tseaver
Copy link
Contributor Author

tseaver commented Oct 14, 2015

@jgeewax Mine is citric-celerity-697. I'm sure @dhermes will need his, along with the project used when running system tests on Travis.

@dhermes
Copy link
Contributor

dhermes commented Oct 14, 2015

omega-moonlight-697

@jgeewax
Copy link
Contributor

jgeewax commented Oct 14, 2015

OK, requesting whitelisting for all 3 projects. Will update this ticket once it's done.

@dhermes
Copy link
Contributor

dhermes commented Oct 26, 2015

FYI @tseaver to access using your personal account follow http://gcloud-python.readthedocs.org/en/latest/gcloud-auth.html#user-accounts-3-legged-oauth-2-0-with-a-refresh-token

Most importantly, download the gcloud CLI tool and run

$ gcloud auth login

then we'll grab the user credentials.

You probably have GOOGLE_APPLICATION_CREDENTIALS set. I did. So I ran

import os
os.environ.pop('GOOGLE_APPLICATION_CREDENTIALS')
from gcloud.search import client
c = client.Client(project='foo')
print c.connection.credentials.to_json()  # To verify it is a user account
print c.list_indexes()

This actually caused a KeyError. I got {} as the response but the code assumes the indexes key is present.

@dhermes
Copy link
Contributor

dhermes commented Dec 31, 2015

Closing because I am assuming we are whitelisted. @tseaver or @jgeewax re-open if this is false.

@dhermes dhermes closed this as completed Dec 31, 2015
@tseaver
Copy link
Contributor Author

tseaver commented Jan 7, 2016

Project-based access is still not working.

@tseaver tseaver reopened this Jan 7, 2016
@dhermes
Copy link
Contributor

dhermes commented Aug 11, 2016

@jgeewax we can close this out right? API removed in #1750

@dhermes dhermes closed this as completed Aug 11, 2016
@jgeewax
Copy link
Contributor

jgeewax commented Aug 13, 2016

Yep. This is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants