Prerequisites
- A GCS bucket (must already exist).
- A GCP project ID.
GCP Console Setup
- Create a Cloud Storage bucket.
- Create a Service Account:
- IAM & Admin → Service Accounts → Create Service Account.
- Grant storage permissions. Recommended options:
- Storage Admin (simplest, includes
storage.buckets.get), or - Storage Object Admin plus a bucket-level role like
Storage Legacy Bucket Reader/Owner (for
storage.buckets.get), or - Custom roles with:
storage.objects.getstorage.objects.createstorage.objects.deletestorage.objects.liststorage.buckets.get
- Storage Admin (simplest, includes
- Create a JSON key for the service account and download it:
- IAM & Admin → Service Accounts → select account → Keys → Add Key → Create new key → JSON.
UI Configuration
In Settings → Storage:- Enable Custom Storage
- Provider: GCP
- Bucket / Container Name: existing bucket name
- Credential Secret (optional):
- Create a secret of type GCP Service Account and select it
- Or leave empty to use workload identity / default credentials
Notes
- Ensure the service account has storage permissions (read, write, delete, list).