Google Cloud Storage (GCS) Permissions
Configuring Google Cloud Storage (GCS) permissions establishes secure access between Publisher and your cloud storage resources. These permissions define how Publisher can interact with your buckets and objects, using service accounts and custom roles to ensure controlled access.
This guide outlines the minimum permissions needed to connect Publisher to specific GCS resources, including credential creation and bucket-level access configuration.
Concepts
Service Account (SA): This is an identity generated in Google Cloud that can be used to interact with GCP services. Each SA has a unique email (identity) and one or more JSON keys.
Data Project: A project that houses the target bucket(s).
Permission: Granular actions that a user can perform on a given resource.
Role: A collection of permissions typically needed for specific interactions against one or more resources: “Data Viewer,” “Storage Reader,” etc.
Minimal Configuration
Creating Credentials
Create a new Service Account (SA) in any project.
gcloud iam service-accounts create publisher-connectors \
--project=${PROJECT} \
--display-name="Publisher Data Connections"Generate a new JSON key and download it.
Granting Bucket List Access in Data Project
Publisher needs permission to list the buckets in the Data Project. Google Cloud now provides the Storage Bucket Viewer (roles/storage.bucketViewer) predefined role, which grants exactly the storage.buckets.list and storage.buckets.get permissions Publisher requires.
Assign the predefined role to the SA you created in "Creating Credentials":
Data Project
For each bucket that you want to connect to Publisher, assign the Storage Object Viewer policy to the service account:
Last updated
Was this helpful?

