GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Implement IAM API · Issue #1192 · googleapis/google-cloud-node

Implement IAM API #1192

New issue
Copy link
New issue
Copy link
Closed
Closed
Implement IAM API#1192
Copy link
Assignees
stephenplusplus
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.

Description

@stephenplusplus
stephenplusplus
opened on Mar 30, 2016
Issue body actions

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

  • Compute
  • Logging (not supported)
  • Pub/Sub
  • Resource Manager (not supported)
  • Storage
    • Bucket
    • Object

Activity

Next
  1. stephenplusplus
    added
    enhancement
    on Mar 30, 2016
  2. stephenplusplus
    self-assigned this
    on Mar 30, 2016
  3. dhermes commented on Mar 30, 2016

    @dhermes
    dhermes
    on Mar 30, 2016
    Contributor
    More actions

    /cc @tseaver

  4. stephenplusplus commented on Apr 14, 2016

    @stephenplusplus
    stephenplusplus
    on Apr 14, 2016
    ContributorAuthor
    More actions

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

    // @jgeewax

  5. stephenplusplus
    added
    status: blockedResolving the issue is dependent on other work.
    on Apr 14, 2016
  6. stephenplusplus commented on Jul 13, 2016

    @stephenplusplus
    stephenplusplus
    on Jul 13, 2016
    ContributorAuthor
    More actions

    @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.

  7. jgeewax commented on Jul 14, 2016

    @jgeewax
    jgeewax
    on Jul 14, 2016 via email
    Contributor
    More actions
    I'm pretty sure that you use the iam_policy.proto file to send the request with the right resource name, but to the pubsub endpoint... ( https://cloud.google.com/pubsub/reference/rpc/google.iam.v1 and https://github.com/googleapis/googleapis/blob/master/google/iam/v1/iam_policy.proto ) No?
  8. stephenplusplus commented on Jul 14, 2016

    @stephenplusplus
    stephenplusplus
    on Jul 14, 2016
    ContributorAuthor
    More actions

    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.

  9. jgeewax commented on Jul 14, 2016

    @jgeewax
    jgeewax
    on Jul 14, 2016 via email
    Contributor
    More actions
    The demo looks like it's dealing with resource manager -- which you're saying is giving you a cancelled error (in the issue), right? For Logging, I don't see any IAM support there -- what resource are you trying to :getIamPolicy on ?
  10. stephenplusplus commented on Jul 14, 2016

    @stephenplusplus
    stephenplusplus
    on Jul 14, 2016
    ContributorAuthor
    More actions

    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.

  11. stephenplusplus commented on Jul 14, 2016

    @stephenplusplus
    stephenplusplus
    on Jul 14, 2016
    ContributorAuthor
    More actions

    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'
    };
  12. jgeewax commented on Jul 14, 2016

    @jgeewax
    jgeewax
    on Jul 14, 2016 via email
    Contributor
    More actions
    Right -- the frame error for gRPC with IAM on Resource Manager is legit, going to dig more. The Logging piece... I don't believe it supports IAM. AKA, your work is done for Logging.... If the REST methods aren't defined in the docs, then it's not supported.
  13. jgeewax commented on Jul 14, 2016

    @jgeewax
    jgeewax
    on Jul 14, 2016 via email
    Contributor
    More actions
    Good - that's what's expected.
  14. stephenplusplus commented on Jul 14, 2016

    @stephenplusplus
    stephenplusplus
    on Jul 14, 2016
    ContributorAuthor
    More actions

    Cool, thanks for checking into this stuff!

  15. jgeewax commented on Jul 14, 2016

    @jgeewax
    jgeewax
    on Jul 14, 2016
    Contributor
    More actions

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

  16. 13 remaining items

  17. stephenplusplus
    removed
    api: loggingIssues related to the Cloud Logging API.
    resource manager
    on Oct 24, 2017
  18. stephenplusplus commented on Dec 19, 2017

    @stephenplusplus
    stephenplusplus
    on Dec 19, 2017
    ContributorAuthor
    More actions

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

  19. stephenplusplus
    closed this as completedon Dec 19, 2017
  20. stephenplusplus
    removed
    priority: p2Moderately-important priority. Fix may not be included in next release.
    type: enhancement
    on Dec 19, 2017
  21. JustinBeckwith
    assigned
    stephenplusplus
    on Feb 1, 2021
  22. sofisl
    added a commit that references this issue on Feb 3, 2026

    feat: add support for microseconds precision (#1192)

    e30413a
  23. sofisl
    added a commit that references this issue on Feb 26, 2026

    chore: add dev deps for cloud rad (#1192)

    7a2d2ed
  24. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    chore(deps): update dependency sinon to v15 (#1192)

    3c8bc1d

    chore(deps): update dependency sinon to v15 (#1192)

    c850255
  25. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    chore(deps): update dependency sinon to v15 (#1192)

    73a5f22
  26. thiyaguk09
    added a commit that references this issue on May 5, 2026

    chore(deps): update dependency sinon to v15 (googleapis#1192)

    713c02d
  27. pearigee
    added a commit that references this issue on May 13, 2026

    feat: [compute] Update Compute Engine v1beta API to revision 20260422 (…

    33fbecc
  28. gcf-merge-on-green
    added a commit that references this issue on May 14, 2026

    chore: release main (#8264)

    09905d1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @stephenplusplus
    stephenplusplus

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

    You are visitor 01402792 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.