No1Lives4Ever
No1Lives4Ever

Reputation: 6883

Google Cloud Bucket with permission for just my user

I have Google Cloud project shared with few collages and few service accounts. I have Owner permission on the GCP project.

I want to create a Google Cloud Storage Bucket that only me will have access to it. So, the other users and service accounts in the projects will can't see it.

I created a new Google Cloud bucket (permission: Uniform) and went into the "Permission" sections. This list was already filled with inherits permissions. Since I want that only me will have access into this bucket:

  1. I was added my self as Storage Admin
  2. I removed the permissions for Owner, Editor and Viewer for this repository.

Now I have list with all the service accounts in the project. Unfortunately, Google not allowing me to remove the access of those service accounts:

enter image description here

How to revoke account to those service-accounts to this bucket?

Upvotes: 1

Views: 524

Answers (1)

Vikram Shinde
Vikram Shinde

Reputation: 1028

These are inherited access which cannot be removed at bucket level. Roles are always inherited, and there is no way to explicitly remove a permission for a lower-level resource that is granted at a higher level in the resource hierarchy. As a principle of least priviledge grant minimum scope to the service accounts.

Upvotes: 1

Related Questions