Overview of the CockroachDB Cloud authorization model
The CockroachDB Cloud console, found athttps://cockroachlabs.cloud/, is a ‘single pane of glass’ for managing users, billing, and all functions for administering clusters in CockroachDB Cloud. When accessing the console, users must sign in to a CockroachDB Cloud organization (or create a new one).
You can also execute many administrative commands using the ccloud command-line utility and the CockroachDB Cloud API:
ccloudallows human users to authenticate their terminal via a browser token from the CockroachDB Cloud console.- The CockroachDB Cloud API allows service accounts to authenticate via API keys, which are issued through the console.
- You can use Terraform to provision users and other aspects of your CockroachDB Cloud clusters. However, note that currently Terraform can only be used to provision admin SQL users, as this is a current limitation of the API, on which Terraform depends.
- Organization: A CockroachDB Cloud organization assigns permissions based on roles assigned to a Cloud Console user account, which allow these accounts to perform administrative tasks relating to the management of clusters, Console user management, SQL user management, and billing.
- Folder: Cloud Console roles can be assigned to a folder containing a group of clusters. Role inheritance is transitive; a role applied with the organization or folder scope is inherited by descendent resources.
- Cluster: Each CockroachDB cluster defines its own set of SQL users and SQL user roles which manage permission to execute SQL statements on the cluster.
SQL users are granted a distinct set of roles and privileges that are specific to data management on the cluster, independent of the Cloud user roles and permissions described on this page. For the main pages covering users and roles at the SQL level within a specific database cluster, refer to the main Authorization in CockroachDB documentation
Organization user roles
When a user or service account is first added to an organization, they are assigned the default Console role, Organization Member, which adds no permissions and only indicates membership in the organization. Users with the Organization or Cluster Admin role may edit the roles assigned to organization users in the CockroachDB Cloud Console’s Access Management page, or using the CockroachDB Cloud API or Terraform Provider.The user who creates a new organization is assigned the following roles at the organization scope:Any of these roles may subsequently be removed by a user with both the Organization Admin role and the Cluster Admin role at the organization scope. This is to ensure that at least one user has both of these roles.
Some roles can be assigned to users at specific levels of scope to provide more granular permission control:
The following sections describe the available CockroachDB Cloud roles in more detail:
Organization Member
The Organization Member role is assigned by default to all organization users when they are invited or provisioned. This role gives no additional permissions.Organization Admin
The Organization Admin role allows users to perform the following actions:- Invite users to join that organization.
- Create service accounts.
- Assign and revoke Cloud roles for both users and service accounts.
Auditor
The Auditor role is in limited access and is not enabled by default. To enroll your organization, contact your Cockroach Labs account team.
- Organization settings, licenses, and alert configuration.
- Audit logs.
- Organization members and their role assignments, pending invitations, user groups, and the SCIM directory.
- Authentication configuration: Cloud Organization SSO authentication methods, JWT issuer configuration, and MFA enforcement status.
- Service accounts and API key metadata, such as key names and creation dates. API key secrets are never visible.
- The folder hierarchy, the list of clusters, and each cluster’s metadata, node status, and cluster settings.
- Each cluster’s network authorization configuration: IP allowlist, VPC peering, private endpoint trusted owners, and egress rules.
- Each cluster’s backups, backup configuration, and restore history; maintenance windows, blackout windows, and version deferral settings; CMEK configuration; PCI DSS readiness status; log export and OpenTelemetry integration configuration; and jobs.
- Any write or management action.
- Access to the DB Console, the SQL Shell, or any other SQL or data access.
- Performance monitoring: metrics, SQL Activity, or Insights.
- Billing details.
- Migration Assistant artifacts, which can contain schema and statement content.
The Auditor role is not a subset of the Organization Admin role. It includes read access to per-cluster configuration, such as networking, backups, and CMEK, that the Organization Admin role does not have.
Billing Coordinator
The Billing Coordinator role allows users to manage and view billing details, invoices, and usage for that organization through the CockroachDB Cloud console billing page athttps://cockroachlabs.cloud/billing/overview.
Billing Viewer
The Billing Viewer role allows users to view billing details, invoices, and usage for that organization through the CockroachDB Cloud console billing page athttps://cockroachlabs.cloud/billing/overview.
Cluster Operator
The Cluster Operator role allows actions that are dependent on whether it is assigned to a user or a service account.- Users with this role can perform the following console operations:
- View a cluster’s Overview page, which displays its settings, attributes and statistics, including cloud provider, region topography, and available and maximum storage and request units.
- Manage a cluster’s databases from the Databases Page.
- Scale a cluster’s nodes.
- View and configure a cluster’s authorized networks from the Networking Page.
- Manage network authorization for a cluster.
- View backups in a cluster’s Backup and Restore Page.
- Restore a cluster from a backup.
- View a cluster’s Jobs from the Jobs page.
- View a cluster’s Metrics from the Metrics page.
- View a cluster’s Insights from the Insights page.
- Upgrade a cluster’s major version of CockroachDB.
- View a cluster’s PCI-readiness status (Advanced clusters with Security add-on only).
- Send a test alert from the Alerts Page.
- Configure single sign-on (SSO) enforcement.
- Access the DB Console.
- Configure a cluster’s maintenance window.
- Edit a cluster’s labels.
- Service accounts with this role can perform the following API operations:
- Read a cluster summary.
- Manage Customer-Managed Encryption Keys (CMEK) for Advanced Clusters
- Export a cluster’s logs.
- Export a cluster’s metrics.
- Manage network authorization for a cluster.
- View and configure a cluster’s Egress Rules.
- Configure the export of metrics to DataDog or Amazon CloudWatch.
- Manage cluster-scoped roles on organization users.
- Manage SQL users from the cloud console.
- Create or delete a cluster.
Cluster Admin
The Cluster Admin role allows users to perform all Cluster Operator actions, as well as the following:- Provision SQL users for a cluster using the console.
- Create Service Accounts.
- Edit cluster-scope role assignments (specifically, the Cluster Admin, Cluster Operator, and Cluster Developer roles) on users, and service accounts.
- Edit or delete a cluster.
- Cluster Admins for the whole organization (rather than scoped to a single cluster) can create new clusters.
- Access the DB Console.
- Configure a cluster’s maintenance window.
Cluster Data Accessor
The Cluster Data Accessor role is in limited access and is not enabled by default. To enroll your organization, contact your Cockroach Labs account team.
- Execute SQL statements from the Cloud Console SQL Shell, using the Cloud API, or through the CockroachDB Cloud MCP server.
- Authenticate to the cluster’s SQL interface using Cluster SSO.
- Manage a cluster’s databases from the Databases page.
- Access the DB Console, including admin-level DB Console access. Refer to the note below.
- View cluster information, node status, cluster settings (read-only), and the folder hierarchy.
The Cluster Data Accessor role holds the permissions required to use the DB Console, but the Cloud Console does not currently display the DB Console button or the Connect dialog for users with only this role, because those controls also require read access to the cluster’s IP allowlist and SQL users. Users with only this role can connect using the Cloud Console SQL Shell, cluster SSO with
ccloud cluster sql --sso, or a connection string provided by a cluster administrator.- SQL user management from the Cloud Console (the cluster’s SQL Users page), or role and membership management.
- The cluster monitoring pages: SQL Activity, Insights, and Jobs.
- Cluster management, including creating, editing, scaling, or deleting clusters; backups and restores; network authorization (IP allowlist, VPC peering, private endpoints, and egress rules), including viewing it; CMEK; versions and maintenance; metrics and log export; physical cluster replication; and usage and billing.
Cluster Creator
The Cluster Creator role allows users to create clusters in an organization. A cluster’s creator is automatically assigned the Cluster Admin role for that cluster upon creation. This role can be assigned at the scope of the organization or on a folder. If assigned to a folder, it is inherited on the folder’s clusters, descendent folders, and their descendants.Cluster Developer
The Cluster Developer role allows users to view cluster details and access the DB Console, allowing them to export a connection string from the cluster page UI, although they will still need a Cluster Admin to provision their SQL credentials for the cluster. This role can be assigned at the scope of the organization, on an individual cluster, or on a folder. If assigned to a folder, it is inherited on the folder’s clusters, descendent folders, and their descendants.Cluster Monitor
The Cluster Monitor role provides read‑only visibility into SQL activity and workload health without broader administrative privileges. Users with this role can view the SQL Activity pages (Sessions, Statements, and Transactions), the Jobs page, and the Insights page. This role can be assigned at the scope of the organization, on an individual cluster, or on a folder. If assigned to a folder, it is inherited on the folder’s clusters, descendent folders, and their descendants.Metrics Viewer
The Metrics Viewer role grants read‑only access to observability metrics for a cluster without any administrative or data‑manipulation privileges.- Users with this role can view a cluster’s Metrics from the Metrics page.
- Service accounts with this role can access the metrics export API and the log export API to integrate with external observability systems.
To give a developer the ability to both connect to a cluster and monitor performance with least privilege, combine Cluster Developer with Metrics Viewer (and optionally Cluster Monitor).
Folder Admin
The Folder Admin role allows users to create, rename, move, delete, and manage access to folders where they are assigned the role. Users can also edit folder labels. This role can be assigned at the level of the organization or on a specific folder. If assigned at the level of the organization, the role allows users to view all users and service accounts in the organization. If assigned to a specific folder, the role is inherited by descendant folders. A user with the Organization Admin role can assign themselves, another user, or a service account the Folder Admin role. To create or manage clusters in a folder, a Folder Admin also needs the Cluster Admin or Cluster Creator role on that folder directly or by inheritance. To delete a cluster, the Cluster Admin role is required on the cluster directly or by inheritance.Folder Mover
The Folder Mover role allows users to rename or move descendant folders, and move clusters within the folder hierarchy where they have the role. However, a Folder Mover cannot create or delete folders or clusters and cannot assign roles. A Folder Mover can move clusters within the folder hierarchy even if they do not have a role that allows them to connect to the cluster, such as Cluster Creator or Cluster Operator.A cluster inside a folder cannot be renamed.
Service accounts
Service accounts authenticate with API keys to the CockroachDB Cloud API, rather than to the CockroachDB Cloud Console UI. Service accounts operate under a unified authorization model with organization users, and can be assigned all of the same roles as users, but note that some actions are available in the console but not the API, or vice versa (For example, in the Cluster Operator Role). Refer to Manage Service Accounts.Cluster roles for organization users using cluster SSO
Cluster Single Sign-On (SSO) for CockroachDB Cloud allows authorized organization users to directly access clusters within the organization viaccloud, the CockroachDB Cloud command line interface.
However, because organization users and cluster SQL users are logically separate, a corresponding SQL user must be created for each SSO organization user, on each particular cluster.
This correspondence lies in the SQL user name, which must be in the format sso_{email_name}. Replace (email_name} with the portion of the user’s email address before @. For example, the SQL username of a user with the email address docs@cockroachlabs.com is sso_docs. If the role is not set up correctly, ccloud prompts you to create or add it. Only an SQL admin can manage SQL users.
