-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
admin/directory: unable to authenticate requests #465
Comments
I will try to take a look at this today and get back to you. Sounds like it should be easy to reproduce. |
Could you please share a code snippet of how you are creating your client and what types of options you might be passing in? |
Same issue as googleapis/google-cloud-go#1892. Will keep both open temporarily while I try to figure out where the problem is. |
Let's have all relevant discussion over on the other issue. |
Ok, will do. Thanks |
Moving the discussion back over here as we have ruled out an Workload Identity issue. The issue seems to be proper scoping. Look around I have noticed similar issues in other repositories of ours as well. |
Also, I suggest taking a look at this thread: #379 |
Thanks for finding those references. Copying the Google issue tracker link here for reference: https://issuetracker.google.com/issues/113755665
That seems like an unreasonable policy as it defeats the entire purpose of service accounts. Assuming that they're not going to fix that server-side, we're now prevented from using the SDK until this is resolved: #378 |
Thanks again @codyoss. We had just been switching to Workload Identity so I just assumed that we had misconfigured something there. I never dreamed that the server would just not allow for service accounts to access the api. I'll go ahead and close this for now in favor of the linked issue, and hopefully this helps somebody else save a couple of days of figuring out auth. |
I am sorry this api caused so much trouble. I have started some talks internally to at least provide some helpers for this api until we have better support for impersonating credentials. This feature still should eventually land, just not sure when right now. |
I'll post back here once we decide on a workaround. We'll be checking out this library mentioned in one of the other issues. I'm not in love with importing a package for auth impersonation on a service account we're granting G Suite God mode to, so maybe we'll just copy and audit it. |
@derekperkins Thanks for bringing this up. If we truly believe in Least Privilege then we need to have this API do things appropriately. Please let us know when this can be resolved. Thanks. |
We're trying to use the
admin/directory
package on GKE using Workload Identity, and it doesn't appear to be working. We use multiple other Google Cloud apis, though I believe all of them are using the proto generated clients at google.golang.org/genproto/googleapis/.After a lot of trials and searching, I believe that this library suffers from the same issue with Workload Identity on GKE as both the Java and .Net SDKs.
googleapis/google-auth-library-java#283
googleapis/google-api-dotnet-client#1409
I tracked it down and submitted a PR for that, but that didn't seem to solve the issue.
googleapis/google-cloud-go#1891
Really baffled by what could be causing this.
The text was updated successfully, but these errors were encountered: