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

Update service account roles #903

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,33 +39,86 @@ The following roles enable identities to impersonate all service account identit
The following list includes our *current* recommendations for dangerous roles, however, it is not exhaustive as permissions and roles change frequently.

*Primitive Roles*:

* roles/owner
* roles/editor

*Predefined Roles*:
*Predefined Roles and Service Agent Roles*:

Service agent roles should not be used for any identities other than the Google managed service account they are associated with.

* roles/iam.securityAdmin
* roles/iam.serviceAccountAdmin
* roles/iam.serviceAccountKeyAdmin
* roles/iam.serviceAccountUser
* roles/iam.serviceAccountTokenCreator
* roles/iam.serviceAccountKeyAdmin
* roles/iam.serviceAccountAdmin
* roles/iam.workloadIdentityUser
* roles/dataproc.editor
* roles/dataproc.admin
* roles/deploymentmanager.editor
* roles/cloudbuild.builds.editor
* roles/aiplatform.customCodeServiceAgent
* roles/aiplatform.extensionServiceAgent
* roles/aiplatform.serviceAgent
* roles/apigateway.serviceAgent
* roles/apigee.serviceAgent
* roles/appengine.serviceAgent
* roles/appengineflex.serviceAgent
* roles/bigquerycontinuousquery.serviceAgent
* roles/bigquerydatatransfer.serviceAgent
* roles/bigqueryspark.serviceAgent
* roles/cloudbuild.serviceAgent
* roles/cloudconfig.serviceAgent
* roles/clouddeploy.serviceAgent
* roles/cloudfunctions.serviceAgent
* roles/cloudscheduler.serviceAgent
* roles/cloudtasks.serviceAgent
* roles/composer.serviceAgent
* roles/compute.serviceAgent
* roles/connectors.serviceAgent
* roles/dataflow.serviceAgent
* roles/dataproc.serviceAgent
* roles/eventarc.serviceAgent
* roles/integrations.serviceAgent
* roles/ml.serviceAgent
* roles/notebooks.serviceAgent
* roles/pubsub.serviceAgent
* roles/run.serviceAgent
* roles/serverless.serviceAgent
* roles/sourcerepo.serviceAgent
* roles/workflows.serviceAgent
* roles/iam.serviceAccountOpenIdTokenCreator
* roles/aiplatform.colabServiceAgent
* roles/backupdr.computeEngineOperator
* roles/backupdr.serviceAgent
* roles/batch.serviceAgent
* roles/clouddeploymentmanager.serviceAgent
* roles/cloudtpu.serviceAgent
* roles/compute.instanceGroupManagerServiceAgent
* roles/configdelivery.serviceAgent
* roles/container.serviceAgent
* roles/datapipelines.serviceAgent
* roles/dataplex.serviceAgent
* roles/dataprep.serviceAgent
* roles/dataproc.hubAgent
* roles/firebaseapphosting.serviceAgent
* roles/firebasemods.serviceAgent
* roles/gameservices.serviceAgent
* roles/genomics.serviceAgent
* roles/krmapihosting.anthosApiEndpointServiceAgent
* roles/krmapihosting.serviceAgent
* roles/lifesciences.serviceAgent
* roles/osconfig.serviceAgent
* roles/runapps.serviceAgent
* roles/securitycenter.securityResponseServiceAgent
* roles/workstations.serviceAgent
* roles/securesourcemanager.serviceAgent
* roles/assuredoss.admin
* roles/securitycenter.admin
* roles/vpcaccess.serviceAgent
* roles/cloudbuild.builds.builder
* roles/composer.worker
* roles/dataflow.admin
* roles/dataflow.developer
* roles/resourcemanager.folderAdmin
* roles/resourcemanager.folderIamAdmin
* roles/resourcemanager.projectIamAdmin
* roles/resourcemanager.organizationAdmin
* roles/cloudasset.viewer
* roles/cloudasset.owner

*Service Agent Roles*:
* roles/run.sourceDeveloper

Service agent roles should not be used for any identities other than the Google managed service account they are associated with.

* roles/serverless.serviceAgent
* roles/dataproc.serviceAgent

=== Fix - Buildtime

Expand Down Expand Up @@ -95,4 +148,4 @@ resource "google_folder_iam_binding" "example" {
"user:[email protected]",
]
}
----
----
Original file line number Diff line number Diff line change
Expand Up @@ -42,30 +42,82 @@ The following list includes our *current* recommendations for dangerous roles, h
* roles/owner
* roles/editor

*Predefined Roles*:
*Predefined Roles and Service Agent Roles*:

Service agent roles should not be used for any identities other than the Google managed service account they are associated with.

* roles/iam.securityAdmin
* roles/iam.serviceAccountAdmin
* roles/iam.serviceAccountKeyAdmin
* roles/iam.serviceAccountUser
* roles/iam.serviceAccountTokenCreator
* roles/iam.serviceAccountKeyAdmin
* roles/iam.serviceAccountAdmin
* roles/iam.workloadIdentityUser
* roles/dataproc.editor
* roles/dataproc.admin
* roles/deploymentmanager.editor
* roles/cloudbuild.builds.editor
* roles/aiplatform.customCodeServiceAgent
* roles/aiplatform.extensionServiceAgent
* roles/aiplatform.serviceAgent
* roles/apigateway.serviceAgent
* roles/apigee.serviceAgent
* roles/appengine.serviceAgent
* roles/appengineflex.serviceAgent
* roles/bigquerycontinuousquery.serviceAgent
* roles/bigquerydatatransfer.serviceAgent
* roles/bigqueryspark.serviceAgent
* roles/cloudbuild.serviceAgent
* roles/cloudconfig.serviceAgent
* roles/clouddeploy.serviceAgent
* roles/cloudfunctions.serviceAgent
* roles/cloudscheduler.serviceAgent
* roles/cloudtasks.serviceAgent
* roles/composer.serviceAgent
* roles/compute.serviceAgent
* roles/connectors.serviceAgent
* roles/dataflow.serviceAgent
* roles/dataproc.serviceAgent
* roles/eventarc.serviceAgent
* roles/integrations.serviceAgent
* roles/ml.serviceAgent
* roles/notebooks.serviceAgent
* roles/pubsub.serviceAgent
* roles/run.serviceAgent
* roles/serverless.serviceAgent
* roles/sourcerepo.serviceAgent
* roles/workflows.serviceAgent
* roles/iam.serviceAccountOpenIdTokenCreator
* roles/aiplatform.colabServiceAgent
* roles/backupdr.computeEngineOperator
* roles/backupdr.serviceAgent
* roles/batch.serviceAgent
* roles/clouddeploymentmanager.serviceAgent
* roles/cloudtpu.serviceAgent
* roles/compute.instanceGroupManagerServiceAgent
* roles/configdelivery.serviceAgent
* roles/container.serviceAgent
* roles/datapipelines.serviceAgent
* roles/dataplex.serviceAgent
* roles/dataprep.serviceAgent
* roles/dataproc.hubAgent
* roles/firebaseapphosting.serviceAgent
* roles/firebasemods.serviceAgent
* roles/gameservices.serviceAgent
* roles/genomics.serviceAgent
* roles/krmapihosting.anthosApiEndpointServiceAgent
* roles/krmapihosting.serviceAgent
* roles/lifesciences.serviceAgent
* roles/osconfig.serviceAgent
* roles/runapps.serviceAgent
* roles/securitycenter.securityResponseServiceAgent
* roles/workstations.serviceAgent
* roles/securesourcemanager.serviceAgent
* roles/assuredoss.admin
* roles/securitycenter.admin
* roles/vpcaccess.serviceAgent
* roles/cloudbuild.builds.builder
* roles/composer.worker
* roles/dataflow.admin
* roles/dataflow.developer
* roles/resourcemanager.folderAdmin
* roles/resourcemanager.folderIamAdmin
* roles/resourcemanager.projectIamAdmin
* roles/resourcemanager.organizationAdmin
* roles/cloudasset.viewer
* roles/cloudasset.owner

*Service Agent Roles*:

Service agent roles should not be used for any identities other than the Google managed service account they are associated with.
* roles/run.sourceDeveloper

* roles/serverless.serviceAgent
* roles/dataproc.serviceAgent

=== Fix - Buildtime

Expand Down
Loading