marmotdata/gcs
Discover buckets from Google Cloud Storage
The Google Cloud Storage plugin discovers buckets from GCP projects. It captures bucket metadata including location, storage class, encryption settings, and lifecycle rules.
Connection Examples
Required Permissions
The service account needs the following IAM roles:
- Storage Bucket Viewer (
roles/storage.bucketViewer) - For discovering and listing buckets
Or use a custom role with these permissions:
storage.buckets.liststorage.buckets.getstorage.objects.list(if using object count)
Keyless authentication
On Marmot Cloud or Marmot Enterprise the pipeline can present its own identity instead of a service account key. Set workload_identity_provider to a Workload Identity Federation provider that trusts your Marmot instance as an OIDC issuer, and grant the pipeline's subject, pipeline:<name> as reported by the pipeline API, the role above directly (principal://iam.googleapis.com/<pool>/subject/pipeline:<name>), or grant it roles/iam.workloadIdentityUser on a service account named in service_account. No key exists anywhere; Marmot mints a short-lived token for each run.
In the UI
Point and click, no config file needed.
- Open Runs and choose Create pipeline.
- Pick Google Cloud Storage from the plugin list.
- Fill in the settings, set a schedule and save.
With the CLI
Save a YAML config, then run marmot ingest.
Not using plugins? Other ways to populate Marmot
Configuration
Fields marked Required must be set.
tagsList of textTags to apply to discovered assets
external_linksList of groupsExternal links to show on all assets
nameTextDisplay name for the link
iconTextIcon identifier for the link
urlTextURL to the external resource
filterGroup of settingsFilter discovered assets by name (regex)
includeList of textInclude patterns for resource names (regex)
excludeList of textExclude patterns for resource names (regex)
zoneTextTells this system apart from others of the same technology and becomes part of every asset's MRN
audienceTextAudience of the Marmot identity token. Derived from the credentials' federation settings; set it only when the cloud side expects another
project_idText RequiredGoogle Cloud project ID
credentials_fileTextPath to service account JSON file
credentials_jsonSecretService account JSON content
workload_identity_providerTextWorkload Identity Federation provider to exchange the Marmot identity token at, projects/<number>/locations/global/workloadIdentityPools/<pool>/providers/<provider>. Setting it federates: no key is needed; bind the pipeline's subject on the Google Cloud side
service_accountTextService account to impersonate after the exchange; empty acts as the federated principal directly
endpointTextCustom endpoint URL (for fake-gcs-server or other emulators)
disable_authYes or noDisable authentication (for local emulators)
include_metadataYes or noInclude bucket metadata like labels
include_object_countYes or noCount objects in each bucket (can be slow for large buckets)
Assets emitted
Metadata this plugin attaches to each discovered asset.
Bucket
GCSBucketFields defines metadata fields for GCS buckets