Skip to content

Documentation

GCP permissions

The predefined viewer roles or custom role definition Jetscale requests on Google Cloud, for security review.

This page is the reference for the access Jetscale requests on Google Cloud, so your security team can review it before or after the service account is created. For the connection walkthrough, see the GCP setup guide.

Review the current values supplied by Jetscale before you grant anything here. The Jetscale team provides the role list and any custom role definition for your onboarding; the listings below are a placeholder copy for review.

The grants are made at project scope, or at folder or organization scope to cover several projects at once.

Option A: Predefined roles

RoleGrants
roles/browserProject discovery: listing the projects this identity can reach
roles/billing.viewerRead access to billing accounts and cost metadata
roles/cloudasset.viewerCloud Asset Inventory across the project
roles/compute.viewerCompute Engine instances, disks, networks, commitments
roles/container.viewerGKE clusters, node pools, and workloads
roles/cloudsql.viewerCloud SQL instances and backup metadata
roles/storage.bucketViewerCloud Storage bucket inventory and configuration
roles/monitoring.viewerCloud Monitoring metrics and dashboards
roles/recommender.viewerRecommender insights
roles/bigquery.dataViewerReading FOCUS cost export rows; grant on the export dataset
roles/bigquery.jobUserRunning read queries against the export; grant on the export project
roles/bigquery.metadataViewerListing datasets and tables so the FOCUS export can be located

Grant the project-scoped roles with gcloud:

for role in \
  roles/browser \
  roles/billing.viewer \
  roles/cloudasset.viewer \
  roles/compute.viewer \
  roles/container.viewer \
  roles/cloudsql.viewer \
  roles/storage.bucketViewer \
  roles/monitoring.viewer \
  roles/recommender.viewer \
  roles/bigquery.jobUser \
  roles/bigquery.metadataViewer
do
  gcloud projects add-iam-policy-binding "$PROJECT_ID" \
    --member="serviceAccount:${SA_EMAIL}" \
    --role="$role"
done

Two roles sit outside that loop:

  • roles/bigquery.dataViewer is granted on the FOCUS export dataset rather than project-wide. See Step 4 of the setup guide.
  • roles/billing.viewer also has to be granted on every billing account in scope, or once at organization level.

Option B: Custom role

A custom role narrows the grant to individual permissions. Save the following as jetscale-custom-role.json:

{
  "title": "Jetscale Read Only Access",
  "description": "Custom role for Jetscale read only access",
  "stage": "GA",
  "includedPermissions": [
    "resourcemanager.projects.get",
    "resourcemanager.projects.getIamPolicy",
    "cloudasset.assets.searchAllResources",
    "cloudasset.assets.searchAllIamPolicies",
    "billing.accounts.get",
    "billing.accounts.getIamPolicy",
    "billing.resourceCosts.get",
    "billing.accounts.list",
    "billing.resourceAssociations.list",
    "resourcemanager.projects.list",
    "bigquery.datasets.get",
    "bigquery.tables.list",
    "bigquery.tables.get",
    "bigquery.tables.getData",
    "bigquery.jobs.create",
    "compute.instances.list",
    "compute.instances.get",
    "compute.disks.list",
    "compute.disks.get",
    "compute.snapshots.list",
    "compute.images.list",
    "compute.machineTypes.list",
    "compute.regions.list",
    "compute.zones.list",
    "compute.networks.list",
    "compute.subnetworks.list",
    "compute.addresses.list",
    "compute.routers.list",
    "compute.commitments.list",
    "compute.reservations.list",
    "container.clusters.list",
    "container.clusters.get",
    "container.nodes.list",
    "container.pods.list",
    "cloudsql.instances.list",
    "cloudsql.instances.get",
    "cloudsql.backupRuns.list",
    "storage.buckets.list",
    "storage.buckets.get",
    "storage.buckets.getIamPolicy",
    "monitoring.metricDescriptors.list",
    "monitoring.timeSeries.list",
    "logging.logEntries.list",
    "recommender.computeInstanceMachineTypeRecommendations.list",
    "recommender.computeInstanceIdleResourceRecommendations.list",
    "recommender.computeDiskIdleResourceRecommendations.list",
    "recommender.computeImageIdleResourceRecommendations.list",
    "recommender.cloudsqlInstanceIdleRecommendations.list",
    "recommender.cloudsqlInstanceOverprovisionedRecommendations.list"
  ]
}

billing.accounts.list and billing.resourceAssociations.list only take effect when the role is granted at billing-account or organization scope. A project-level binding surfaces no billing accounts.

# Create the custom role
gcloud iam roles create jetscalereadonly \
  --project="$PROJECT_ID" \
  --file=jetscale-custom-role.json

# Bind it to the service account
gcloud projects add-iam-policy-binding "$PROJECT_ID" \
  --member="serviceAccount:${SA_EMAIL}" \
  --role="projects/${PROJECT_ID}/roles/jetscalereadonly"

What these grants do not include

  • Object contents in Cloud Storage; the storage roles cover bucket inventory and configuration.
  • Data inside Cloud SQL databases; the Cloud SQL role covers instance and backup metadata.
  • Secret Manager values and service account keys.

Access ends when you remove the role bindings, delete the service account, or remove the federation binding that allows impersonation.

Returning the details

The Workload Identity provider resource name, the service account email, and the FOCUS export location go back to the Jetscale team through the secure channel agreed during onboarding, as described in Step 8 of setup. Raise role changes your security review requires with your Jetscale contact before granting them.

For the access model in conceptual terms rather than the exact role list, see security and trust.