Skip to content

Enforce GCS Public Access Prevention#3133

Merged
gbrodman merged 1 commit into
google:masterfrom
gbrodman:gcs
Jul 7, 2026
Merged

Enforce GCS Public Access Prevention#3133
gbrodman merged 1 commit into
google:masterfrom
gbrodman:gcs

Conversation

@gbrodman

@gbrodman gbrodman commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Implement programmatic verification of Public Access Prevention (PAP) on all GCS buckets before performing write operations via GcsUtils.

  • Add verifyPublicAccessPrevention(String bucketName) to GcsUtils.java, querying the bucket's IAM configuration and asserting that PAP is ENFORCED.

  • Call verifyPublicAccessPrevention in all output stream and byte creation write paths in GcsUtils.

note: verified that we have no publicly-accessible files in our prod buckets in GCS, and set all of them to have PAP enforced


This change is Reviewable

@gbrodman
gbrodman force-pushed the gcs branch 3 times, most recently from 6b02075 to 36677ef Compare July 7, 2026 15:44
Implement programmatic verification of Public Access Prevention (PAP) on all GCS buckets before performing write operations via GcsUtils.

- Add verifyPublicAccessPrevention(String bucketName) to GcsUtils.java, querying the bucket's IAM configuration and asserting that PAP is ENFORCED.

- Call verifyPublicAccessPrevention in all output stream and byte creation write paths in GcsUtils.

@weiminyu weiminyu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@weiminyu reviewed 2 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on gbrodman).

@gbrodman
gbrodman added this pull request to the merge queue Jul 7, 2026
Merged via the queue into google:master with commit 1fe1043 Jul 7, 2026
16 checks passed
@gbrodman
gbrodman deleted the gcs branch July 7, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants