Skip to content

chore(storage): update cloudbuild yaml to include cloudkms scope#16745

Merged
parthea merged 1 commit intomainfrom
update-zb-cloudbuild
Apr 21, 2026
Merged

chore(storage): update cloudbuild yaml to include cloudkms scope#16745
parthea merged 1 commit intomainfrom
update-zb-cloudbuild

Conversation

@nidhiii-27
Copy link
Copy Markdown
Contributor

Added cloudkms scope to the zb-cloudbuild.yaml file to enable KMS integration system tests for appendable objects.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds the cloudkms scope to the VM configuration in the system tests Cloud Build file. Feedback suggests simplifying the --scopes list by removing redundant storage scopes that are already covered by full_control and recommends using the cloud-platform scope as a best practice.

- "--image-project=debian-cloud"
- "--service-account=${_ZONAL_VM_SERVICE_ACCOUNT}"
- "--scopes=https://www.googleapis.com/auth/devstorage.full_control,https://www.googleapis.com/auth/devstorage.read_only,https://www.googleapis.com/auth/devstorage.read_write"
- "--scopes=https://www.googleapis.com/auth/devstorage.full_control,https://www.googleapis.com/auth/devstorage.read_only,https://www.googleapis.com/auth/devstorage.read_write,https://www.googleapis.com/auth/cloudkms"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The storage scopes read_only and read_write are redundant because full_control already encompasses all storage permissions. Removing them simplifies the configuration. As a further improvement, consider using the cloud-platform scope, which is the recommended best practice for managing permissions via IAM roles.

      - "--scopes=https://www.googleapis.com/auth/devstorage.full_control,https://www.googleapis.com/auth/cloudkms"

@nidhiii-27 nidhiii-27 marked this pull request as ready for review April 21, 2026 08:35
@nidhiii-27 nidhiii-27 requested a review from a team as a code owner April 21, 2026 08:35
@parthea parthea merged commit d937b8a into main Apr 21, 2026
30 checks passed
@parthea parthea deleted the update-zb-cloudbuild branch April 21, 2026 14:02
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