golang / gddo

Go Doc Dot Org
https://godoc.org
BSD 3-Clause "New" or "Revised" License
1.1k stars 266 forks source link

Add extra scopes #634

Open jen-obyrne opened 5 years ago

jen-obyrne commented 5 years ago

After trying to deploy this project with remote search enabled I encountered permissions errors when trying to run the gddo server.

I have tried granting the service account different roles (App Engine Admin, Cloud Datastore Owner, Storage Admin, Owner role) but whenever you start the gddo server it returns a 401 error - error creating server:open database: unable to contact server: bad response 401; body: "You must be logged in as an administrator to access this.\n"

I think this is happening because the Default client is missing these two scopes

googlebot commented 5 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

jen-obyrne commented 5 years ago

Signed the CLA ✔️

googlebot commented 5 years ago

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

gopherbot commented 5 years ago

This PR (HEAD: 288d53a55a598b9ff7515b573eff7fa79f53aae2) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/gddo/+/187097 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off) See the Wiki page for more info

gopherbot commented 5 years ago

Message from Gobot Gobot:

Patch Set 1:

Congratulations on opening your first change. Thank you for your contribution!

Next steps: Within the next week or so, a maintainer will review your change and provide feedback. See https://golang.org/doc/contribute.html#review for more info and tips to get your patch through code review.

Most changes in the Go project go through a few rounds of revision. This can be surprising to people new to the project. The careful, iterative review process is our way of helping mentor contributors and ensuring that their contributions have a lasting impact.

During May-July and Nov-Jan the Go project is in a code freeze, during which little code gets reviewed or merged. If a reviewer responds with a comment like R=go1.11, it means that this CL will be reviewed as part of the next development cycle. See https://golang.org/s/release for more details.


Please don’t reply on this GitHub thread. Visit golang.org/cl/187097. After addressing review feedback, remember to publish your drafts!

jen-obyrne commented 4 years ago

This scopes are being suggested to use when configuring the remote api locally - https://cloud.google.com/appengine/docs/standard/go/tools/remoteapi/ so for consistency it would be great if this pull request could be merged

gopherbot commented 4 years ago

Message from Andrew Bonventre:

Patch Set 1:

(2 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/187097. After addressing review feedback, remember to publish your drafts!

gopherbot commented 4 years ago

Message from Jen O'Byrne:

Patch Set 1:

Hey Andrew

Sorry the issue link wasn't clear enough! Here is the issue I raised: https://github.com/golang/gddo/issues/631 and another issue I commented on https://github.com/golang/gddo/issues/531#issuecomment-510974567

I have given the service account all of the permissions as arnottcr said to give it but it doesn't work. I have given it the owner role, editor role and it still has the "must be an admin" error.

I made these changes locally, and then I was able to start the GDDO server as it had the extra scopes that it was missing.


Please don’t reply on this GitHub thread. Visit golang.org/cl/187097. After addressing review feedback, remember to publish your drafts!

gopherbot commented 3 years ago

Message from Go Bot:

Patch Set 1:

Congratulations on opening your first change. Thank you for your contribution!

Next steps: Within the next week or so, a maintainer will review your change and provide feedback. See https://golang.org/doc/contribute.html#review for more info and tips to get your patch through code review.

Most changes in the Go project go through a few rounds of revision. This can be surprising to people new to the project. The careful, iterative review process is our way of helping mentor contributors and ensuring that their contributions have a lasting impact.

During May-July and Nov-Jan the Go project is in a code freeze, during which little code gets reviewed or merged. If a reviewer responds with a comment like R=go1.11, it means that this CL will be reviewed as part of the next development cycle. See https://golang.org/s/release for more details.


Please don’t reply on this GitHub thread. Visit golang.org/cl/187097. After addressing review feedback, remember to publish your drafts!