Cloud Function V2 Default Service Account

MEDIUM
Source
CloudSploit
ID
cloud-function-v2-default-service-account

Cloud Function V2 Default Service Account

Ensure that Cloud Functions V2 are not using the default service account.

Using the default service account for Cloud Functions V2 can lead to privilege escalation and overly permissive access. It is recommended to use a user-managed service account for each function in a project instead of the default service account. A managed service account allows more precise access control by granting only the necessary permissions through Identity and Access Management (IAM).

Ensure that no Cloud Functions V2 are using the default service account.