I have created a Google Cloud Platform service account, $GCP_SERVICE_ACCOUNT
, with the Storage Admin (roles/storage.admin
) role.
Now I wish to restrict this account so that it can only access a specific Google Cloud Storage (GCS) Bucket ($GCS_BUCKET_NAME
).
The problem now is that $GCP_SERVICE_ACCOUNT
has access to all GCS Buckets. I can't remove $GCP_SERVICE_ACCOUNT
from other GCS Buckets because roles/storage.admin
is inherited.
What should I do?