镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Implement IAM API #1192

Closed
Closed

Description

@stephenplusplus

IAM is currently buried inside of our Pub/Sub code, but should be abstracted to be used with any API that supports it:

Activity

  1. dhermes commented on Mar 30, 2016

    @dhermes
    Contributor
  2. stephenplusplus commented on Apr 14, 2016

    @stephenplusplus
    ContributorAuthor

    I haven't been able to get through to IAM with gRPC: stephenplusplus/grpc-usage-question#1

    // @jgeewax

  3. stephenplusplus commented on Jul 13, 2016

    @stephenplusplus
    ContributorAuthor

    @jgeewax for the libraries that use gRPC, there are no IAM endpoints defined within each service's proto files. For an HTTP API like Compute, can you give me an example of a URL where you think I can find an IAM endpoint?

    I've tried on an autoscaler to test, https://www.googleapis.com/compute/v1/projects/nth-circlet-705/zones/us-central1-a/autoscalers/gcloud-tests-autoscaler-1468433795482/getIamPolicy -- 404, but I'm not sure if that was a good guess for where I could find an IAM endpoint.

  4. jgeewax commented on Jul 14, 2016

    @jgeewax
    Contributor
  5. stephenplusplus commented on Jul 14, 2016

    @stephenplusplus
    ContributorAuthor

    Pub/Sub is supported using IAM: https://github.com/GoogleCloudPlatform/gcloud-node/blob/master/lib/pubsub/iam.js. It's Logging that's been an issue.

    Maybe you can take a look at the repo I put together to demonstrate the problem. If it's an easy solution, it should be easy to catch where I went wrong. https://github.com/stephenplusplus/grpc-usage-question -- you can replace the URL at line 19 to send the request to a different "base URL". In my experience, I either get a "Not Implemented" error when I send the request to a Logging URL, or an error like the ones I describe in the issue: stephenplusplus/grpc-usage-question#1

    Just worth mentioning, all of the above only affects the gRPC APIs (Logging, PubSub) -- there is still Compute, Resource Manager, and Storage that I don't know how to make IAM requests for.

  6. jgeewax commented on Jul 14, 2016

    @jgeewax
    Contributor
  7. stephenplusplus commented on Jul 14, 2016

    @stephenplusplus
    ContributorAuthor

    The demo looks like it's dealing with resource manager -- which you're
    saying is giving you a cancelled error (in the issue), right?

    Yeah, I just wanted to make the repo as easy as possible to reproduce, since everyone should have a "Project" resource (but maybe not a "Sink" or "Log", etc)

    For Logging, I don't see any IAM support there -- what resource are you
    trying to :getIamPolicy on ?

    I don't see any IAM support either, which is what I'm saying... only Pub/Sub seems to have a way to use IAM.

  8. stephenplusplus commented on Jul 14, 2016

    @stephenplusplus
    ContributorAuthor

    I get a Not Implemented API error when I try to send this request to the Logging base URL:

    var protoOpts = {
      service: 'IAMPolicy',
      method: 'getIamPolicy'
    };
    
    var reqOpts = {
      resource: 'a/log/resource'
    };
  9. jgeewax commented on Jul 14, 2016

    @jgeewax
    Contributor
  10. jgeewax commented on Jul 14, 2016

    @jgeewax
    Contributor
  11. stephenplusplus commented on Jul 14, 2016

    @stephenplusplus
    ContributorAuthor

    Cool, thanks for checking into this stuff!

  12. jgeewax commented on Jul 14, 2016

    @jgeewax
    Contributor

    OK -- Resource Manager's docs are lying : they don't support gRPC today. Carry on.

  13. 13 remaining items

  14. stephenplusplus commented on Dec 19, 2017

    @stephenplusplus
    ContributorAuthor

    Only Compute remains. Issue opened: googleapis/nodejs-compute#28

  15. added a commit that references this issue on Feb 26, 2026
  16. added a commit that references this issue on May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api: computeIssues related to the Compute Engine API.api: pubsubIssues related to the Pub/Sub API.api: storageIssues related to the Cloud Storage API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions