GCP
Definition
Google Cloud Platform (GCP) is a suite of cloud computing services provided by Google. It offers a range of services including computing, data storage, data analytics, and machine learning. GCP provides infrastructure as a service (IaaS), platform as a service (PaaS), and serverless computing environments. It is designed to help businesses build, deploy, and scale applications, websites, and services on the same infrastructure that Google uses internally.
Secure Settings Example
# Example of a secure IAM policy for a GCP service account
bindings:
- members:
- serviceAccount:my-service-account@my-project.iam.gserviceaccount.com
role: roles/storage.objectViewer
- members:
- user:admin@example.com
role: roles/owner
Insecure Settings Example
# Example of an insecure IAM policy with overly permissive roles
bindings:
- members:
- allUsers
role: roles/editor
- members:
- serviceAccount:my-service-account@my-project.iam.gserviceaccount.com
role: roles/owner