Skip to main content

Capabilities

Additional functionality: Supports automatic account provisioning Notes:
  • Roles sync from the ClickHouse Cloud Role Management API and cover both built-in system roles and custom roles created in the ClickHouse console.
  • Invitations sync as pending accounts. An invited person becomes a member after accepting the invitation.
  • The connector governs the ClickHouse Cloud organization, not database-level users and roles. SQL users and SQL RBAC are outside its scope.

Understanding roles and account provisioning in ClickHouse Cloud

ClickHouse Cloud assigns each organization member a set of roles rather than a single role. The connector reads that set live, so ten built-in system roles — Admin, Billing, Member, Organization API Reader, Service Admin, Service API Admin, Service API Reader, Service Reader, Basic Service API Reader, and Basic Service Reader — sync alongside every custom role an administrator creates in the ClickHouse console. Two profile fields carry role information on a synced account:
  • assigned_roles lists the roles the member currently holds. Build access rules on this field.
  • role is deprecated by ClickHouse. On an organization that has migrated to custom roles, ClickHouse freezes this field at its pre-migration value, so it can name a role the member does not hold. Do not build access rules on it.
To provision an account, the connector sends a ClickHouse invitation instead of creating a user directly. Account provisioning takes three fields: Role UUIDs come from GET /v1/organizations/{organizationId}/roles in the ClickHouse Cloud API. The connector does not accept role names.

Gather ClickHouse configuration information

Configuring the connector requires you to pass in information from ClickHouse. Gather these configuration details before you move on. Here’s the information you’ll need:
  • API Key ID
  • API Key Secret
See the ClickHouse docs for information on how to acquire credentials: View the documentation

Configure the ClickHouse connector

To complete this task, you’ll need:
  • The Connector Administrator or Super Administrator role in C1
  • Access to the set of ClickHouse configuration information gathered by following the instructions above
Follow these instructions to use a built-in, no-code connector hosted by C1.
1
In C1, navigate to Integrations > Connectors and click Add connector.
2
Search for ClickHouse and click Add.
3
Choose how to set up the new ClickHouse connector:
  • Add the connector to a currently unmanaged app (select from the list of apps that were discovered in your identity, SSO, or federation provider that aren’t yet managed with C1)
  • Add the connector to a managed app (select from the list of existing managed apps)
  • Create a new managed app
4
Set the owner for this connector. You can manage the connector yourself, or choose someone else from the list of C1 users. Setting multiple owners is allowed.If you choose someone else, C1 will notify the new connector owner by email that their help is needed to complete the setup process.
5
Click Next.
6
Find the Settings area of the page and click Edit.
7
Enter the configuration information from the previous section.
8
The connector’s label changes to Syncing, followed by Connected. You can view the logs to ensure that information is syncing.
Done. Your ClickHouse connector is now pulling access data into C1.