Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Mahmoud Rahbar Azad <[email protected]>
  • Loading branch information
grzr and mrahbar authored Apr 24, 2024
1 parent b1f8360 commit 5a42393
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/processor/creating_processor_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ func prepareSink(ctxIn context.Context, cloudStorageClient gcs.CloudStorageClien
projectNumber := strings.ReplaceAll(project.Name, "projects/", "")
bucketPolicy := &iam.Policy{}
// Storage Transfer Service needs to write to and read from the sink bucket
// based on https://cloud.google.com/storage-transfer/docs/sink-cloud-storage#required_permissions
storageTransferGSABinding := "serviceAccount:" + fmt.Sprintf(sinkSTSAccountScheme, projectNumber)
bucketPolicy.Add(storageTransferGSABinding, "roles/storage.legacyBucketWriter")
bucketPolicy.Add(storageTransferGSABinding, "roles/storage.legacyBucketReader")
Expand Down

0 comments on commit 5a42393

Please sign in to comment.