Skip to content

Commit 8e7a639

Browse files
committed
Reduced IAM Policy Role scope to minimal storageAdmin role
1 parent 8dc5223 commit 8e7a639

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

deploy/setup-project.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ gcloud iam service-accounts delete "${IAM_NAME}" --quiet
1313
# Create new Service Account and Keys
1414
gcloud iam service-accounts create "${GCEPD_SA_NAME}"
1515
gcloud iam service-accounts keys create "${SA_FILE}" --iam-account "${IAM_NAME}"
16-
# TODO: Reduce scope of role to only what it necessary when cloud IAM fixes bugs.
17-
gcloud projects add-iam-policy-binding "${PROJECT}" --member serviceAccount:"${IAM_NAME}" --role roles/owner
16+
gcloud projects add-iam-policy-binding "${PROJECT}" --member serviceAccount:"${IAM_NAME}" --role roles/compute.storageAdmin

0 commit comments

Comments
 (0)