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

roles/redis.dbConnectionUser is not supported for this resource #3942

Open
shvkumara opened this issue Mar 10, 2025 · 0 comments
Open

roles/redis.dbConnectionUser is not supported for this resource #3942

shvkumara opened this issue Mar 10, 2025 · 0 comments
Labels
question Further information is requested

Comments

@shvkumara
Copy link

Describe your question

I am trying to add roles/redis.dbConnectionUser to a service account in GCP but I am getting an error.

apiVersion: iam.cnrm.cloud.google.com/v1beta1
kind: IAMPartialPolicy
metadata:
  name: roles-at-sa-level
spec:
  resourceRef:
    kind: IAMServiceAccount
    external: projects/my-project/serviceAccounts/[email protected]
  bindings:
  - role: roles/redis.dbConnectionUser
    members:
    - member: "serviceAccount:[email protected]"

Error:

Events:
  Type     Reason        Age   From                         Message
  ----     ------        ----  ----                         -------
  Warning  UpdateFailed  12s   iampartialpolicy-controller  Update call failed: error setting policy: error applying changes: summary: Error setting IAM policy for service account 'projects/my-project/serviceAccounts/[email protected]': googleapi: Error 400: Role roles/redis.dbConnectionUser is not supported for this resource., badRequest

However, I can assign the below roles successful

  - role: roles/iam.serviceAccountTokenCreator
  - role: roles/iam.workloadIdentityUser

I think this is because the role is not yet GA as shown inthe documentation

ID - roles/redis.dbConnectionUser
Role launch stage - Beta
@shvkumara shvkumara added the question Further information is requested label Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant