Skip to content

Commit a64ca19

Browse files
authored
Merge pull request #4401 from Blargian/sql-console-access
Cloud: add guides for adjusting SQL console access and org and service level role assignment
2 parents fbabe4b + 78af75b commit a64ca19

20 files changed

+171
-3
lines changed

docs/cloud/features/06_security/02_cloud-access-management/cloud-access-management.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@ import Image from '@theme/IdealImage';
99
import user_grant_permissions_options from '@site/static/images/cloud/security/cloud-access-management/user_grant_permissions_options.png';
1010

1111
# Access control in ClickHouse Cloud {#access-control-in-clickhouse-cloud}
12-
ClickHouse controls user access in two places, via the console and via the database. Console access is managed via the clickhouse.cloud user interface. Database access is managed via database user accounts and roles. Additionally, console users can be granted roles within the database that enable the console user to interact with the database via our SQL console.
12+
13+
ClickHouse Cloud controls access to the console itself and the features available within it.
14+
A **console user** is the foundation of this access with all permissions, roles, and access controls assigned to and managed through these users.
15+
When [database-level permissions are associated with console users](/cloud/security/common-access-management-queries#modifying-users-and-roles), those then govern their data access when querying via the SQL console.
1316

1417
## Console users and roles {#console-users-and-roles}
15-
Configure Organization and Service role assignments within the Console > Users and roles page. Configure SQL Console role assignments in the settings page for each service.
18+
19+
[Configure Organization and Service role assignments](/cloud/guides/sql-console/configure-org-service-role-assignments) within the Console > Users and roles page.
20+
[Configure SQL Console role assignments](/cloud/guides/sql-console/config-sql-console-role-assignments) in the settings page for each service.
1621

1722
Users must be assigned an organization level role and may optionally be assigned service roles for one or more services. Service roles may be optionally configured for users to access the SQL console in the service settings page.
1823
- Users assigned the Organization Admin role are granted Service Admin by default.

docs/cloud/features/06_security/02_cloud-access-management/cloud-authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ If your company uses Google Workspace or Microsoft 365, you can leverage your cu
3333
## Multi-factor authentication {#multi-factor-authentication}
3434

3535
Users with email + password or social authentication can further secure their account using multi-factor authentication (MFA). To set up MFA:
36-
1. Log into console.clickhouse.cloud
36+
1. Log into [console.clickhouse.cloud](https://console.clickhouse.cloud/)
3737
2. Click your initials in the upper left corner next to the ClickHouse logo
3838
3. Select Profile
3939
4. Select Security on the left
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"label": "SQL console",
3+
"collapsible": true,
4+
"collapsed": true,
5+
}
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
---
2+
slug: /cloud/guides/sql-console/configure-org-service-role-assignments
3+
sidebar_label: 'Configuring organization and service role assignments'
4+
title: 'Configuring organization and service role assignments within the console'
5+
description: 'Guide showing how to configure org and service role assignments within the console'
6+
---
7+
8+
import Image from '@theme/IdealImage';
9+
import step_1 from '@site/static/images/cloud/guides/sql_console/org_level_access/1_org_settings.png'
10+
import step_2 from '@site/static/images/cloud/guides/sql_console/org_level_access/2_org_settings.png'
11+
import step_3 from '@site/static/images/cloud/guides/sql_console/org_level_access/3_org_settings.png'
12+
import step_4 from '@site/static/images/cloud/guides/sql_console/org_level_access/4_org_settings.png'
13+
import step_5 from '@site/static/images/cloud/guides/sql_console/org_level_access/5_org_settings.png'
14+
import step_6 from '@site/static/images/cloud/guides/sql_console/org_level_access/6_org_settings.png'
15+
import step_7 from '@site/static/images/cloud/guides/sql_console/org_level_access/7_org_settings.png'
16+
17+
# Configuring organization and service role assignments within the console
18+
19+
> This guide shows you how to configure role assignments at the organization and service level.
20+
21+
<VerticalStepper>
22+
23+
## Access organization settings {#access-service-settings}
24+
25+
From the services page, select the name of your organization:
26+
27+
<Image img={step_1} size="md"/>
28+
29+
Select the `Users and roles` menu item from the popup menu.
30+
31+
<Image img={step_2} size="md"/>
32+
33+
## Adjust access per user {#access-per-user}
34+
35+
Select the menu item at the end of the row for the user that you which to modify
36+
access for:
37+
38+
<Image img={step_3} size="lg"/>
39+
40+
Select `edit`:
41+
42+
<Image img={step_4} size="lg"/>
43+
44+
A tab will display on the right hand side of the page:
45+
46+
<Image img={step_5} size="lg"/>
47+
48+
Select the drop-down menu items to adjust console-wide access permissions and which features a user can access from within the ClickHouse console.
49+
This manages high-level access and administrative settings for an organization:
50+
51+
| Role | Description |
52+
|-------------|----------------------------------------------------------------------------------|
53+
| `Admin` | Perform all administrative activities for an organization, control all settings. |
54+
| `Developer` | View everything except Services, create API keys with equal or lower access. |
55+
| `Member` | Sign in only with ability to manage personal profile settings. |
56+
| `Billing` | View usage and invoices, and manage payment methods |
57+
58+
Select the drop-down menu items to adjust the access scope of the service role of the selected user.
59+
This defines security and operational settings for individual services:
60+
61+
| Access scope |
62+
|---------------------|
63+
| `All services` |
64+
| `Specific services` |
65+
| `No services` |
66+
67+
When selecting `Specific services`, you can control the role of the user per
68+
service:
69+
70+
<Image img={step_6} size="md"/>
71+
72+
You can choose from the following roles:
73+
74+
| Role | Description |
75+
|-------------|--------------------------------------------------------------------|
76+
| `Admin` | Full control over configuration and security. Can delete service. |
77+
| `Read-only` | Can see service data and security settings. Can't modify anything. |
78+
| `No access` | Doesn't know the service exists. |
79+
80+
Save your changes with the `Save changes` button at the bottom of the tab:
81+
82+
<Image img={step_7} size="md"/>
83+
84+
</VerticalStepper>
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
slug: /cloud/guides/sql-console/config-sql-console-role-assignments
3+
sidebar_label: 'Configuring SQL console role assignments'
4+
title: 'Configuring SQL console role assignments'
5+
description: 'Guide showing how to configure SQL console role assignments'
6+
---
7+
8+
import Image from '@theme/IdealImage';
9+
import step_1 from '@site/static/images/cloud/guides/sql_console/service_level_access/1_service_settings.png'
10+
import step_2 from '@site/static/images/cloud/guides/sql_console/service_level_access/2_service_settings.png'
11+
import step_3 from '@site/static/images/cloud/guides/sql_console/service_level_access/3_service_settings.png'
12+
import step_4 from '@site/static/images/cloud/guides/sql_console/service_level_access/4_service_settings.png'
13+
import step_5 from '@site/static/images/cloud/guides/sql_console/service_level_access/5_service_settings.png'
14+
import step_6 from '@site/static/images/cloud/guides/sql_console/service_level_access/6_service_settings.png'
15+
import step_7 from '@site/static/images/cloud/guides/sql_console/service_level_access/7_service_settings.png'
16+
17+
# Configuring SQL console role assignments
18+
19+
> This guide shows you how to configure SQL console role assignments, which
20+
determine console-wide access permissions and the features that a user can
21+
access within Cloud console.
22+
23+
<VerticalStepper>
24+
25+
## Access service settings {#access-service-settings}
26+
27+
From the services page, click the menu in the top right corner of the service
28+
for which you want to adjust SQL console access settings.
29+
30+
<Image img={step_1} size="lg"/>
31+
32+
Select `settings` from the popup menu.
33+
34+
<Image img={step_2} size="lg"/>
35+
36+
## Adjust SQL console access {#adjust-sql-console-access}
37+
38+
Under the "Security" section, find the "SQL console access" area:
39+
40+
<Image img={step_3} size="md"/>
41+
42+
Select the drop-down menu for Service Admin to change the access control settings for Service Admin roles:
43+
44+
<Image img={step_4} size="md"/>
45+
46+
You can choose from the following roles:
47+
48+
| Role |
49+
|---------------|
50+
| `No access` |
51+
| `Read only` |
52+
| `Full access` |
53+
54+
Select the drop-down menu for Service Read Only to change the access control settings for Service Read Only roles:
55+
56+
<Image img={step_5} size="md"/>
57+
58+
You can choose from the following roles:
59+
60+
| Role |
61+
|---------------|
62+
| `No access` |
63+
| `Read only` |
64+
| `Full access` |
65+
66+
An overview of users for the service can be viewed by selecting the user count:
67+
68+
<Image img={step_6} size="md"/>
69+
70+
A tab will open to the right of the page showing the total number of users and their roles:
71+
72+
<Image img={step_7} size="md"/>
73+
74+
</VerticalStepper>
587 KB
Loading
65.7 KB
Loading
138 KB
Loading
176 KB
Loading
409 KB
Loading

0 commit comments

Comments
 (0)