Ensure that Public Access Prevention feature is enabled for your Google Cloud Storage buckets in order to restrict public access to your buckets and objects, protecting your sensitive data from accidental or malicious public exposure.
Public Access Prevention safeguards Google Cloud Storage buckets and objects from unintended public exposure via the internet. This feature restricts public access to data within specified buckets, preventing unauthorized individuals from viewing or accessing sensitive information. It can be applied to individual buckets or enforced organization-wide through policy constraints. While effective in protecting data, public access prevention disables web hosting capabilities for affected buckets.
Audit
To determine if Public Access Prevention is enabled for your Cloud Storage buckets, perform the following operations:
Remediation / Resolution
To ensure that the Public Access Prevention feature is enabled for your Google Cloud Storage buckets in order to restrict data from being publicly accessible via the Internet, perform the following operations:
References
- Google Cloud Platform (GCP) Documentation
- Overview of access control
- Public access prevention
- Use public access prevention
- Using constraints