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

IAM Bindings Failing for Service Management Role #84

Open
allisonis opened this issue Apr 15, 2020 · 1 comment
Open

IAM Bindings Failing for Service Management Role #84

allisonis opened this issue Apr 15, 2020 · 1 comment

Comments

@allisonis
Copy link

allisonis commented Apr 15, 2020

When attempting to create a project level role bindings with the roles/servicemanagement.serviceConsumer role, the GCP secrets backend returns the following error:

could not write to vault Error making API request.

URL: PUT https:/<vaullt_server>/v1/gcp/roleset/<roleset_name>
Code: 400. Errors:

* unable to set policy: googleapi: Error 400: Role (roles/servicemanagement.serviceConsumer) does not exist in the resource's hierarchy.

Roleset binding:

    "bindings": "resource \"\/\/cloudresourcemanager.googleapis.com/projects/<project_id>\" {\r\n  roles = [\r\n    \"roles\/servicemanagement.serviceConsumer\"]\r\n}"

This error indicates that the roles/servicemanagement.serviceConsumer cannot be set in the project IAM policy.

The error in StackDriver when the SetIamPolicy method is invoked results in an invalid argument error.

  status: {
   code: 3    
   message: "INVALID_ARGUMENT"    
  }
 }

The binding successfully is applied to the Vault managed service account manually and indicates the role is supported for project level bindings.

@allisonis allisonis changed the title IAM Bindings Failing with False IAM Error IAM Bindings Failing for Service Management Role Apr 15, 2020
@watacroft
Copy link

Having the same error, same policy. Only I'm trying to bing a whole domain to the role.

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

2 participants