Skip to main content
This page gives the permissions, scope, and purpose of each custom role, service account, and IAM grant that ClickHouse BYOC uses in your Google Cloud project. For a high-level summary of the BYOC permission model, see BYOC privilege.

Bootstrap service account

The following table describes each custom role of the bootstrap service account, clickhouse-management@<project>.iam.gserviceaccount.com. Only the ClickHouse provisioning service accounts can impersonate it, through roles/iam.serviceAccountTokenCreator on this service account. GCP custom roles cannot be limited by resource name, so each role applies to the whole project. For this reason, we recommend a Google Cloud project for BYOC only. If you use a Shared VPC, the module also gives these roles in the host project: For the exact role definitions, see the Terraform module.

Additional service accounts created by the controller

In addition to the clickhouse-management service account created via Terraform, the controller creates several additional service accounts and roles for each BYOC infrastructure. Each service account has the name <infra>-<suffix>. <infra> is the name of your BYOC infrastructure, for example infra-ab-123. All ClickHouse services on the infrastructure share these service accounts. ClickHouse does not create service account keys. All access uses short-lived tokens. The controller also makes the following grants in your project for each BYOC infrastructure: