Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added images/managed-postgres/rbac/newpostgresperms.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/managed-postgres/rbac/postgresentity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/managed-postgres/rbac/usersandroles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions products/managed-postgres/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"products/managed-postgres/settings",
"products/managed-postgres/scaling",
"products/managed-postgres/security",
"products/managed-postgres/rbac",
"products/managed-postgres/high-availability",
"products/managed-postgres/read-replicas",
"products/managed-postgres/backup-and-restore",
Expand Down
51 changes: 51 additions & 0 deletions products/managed-postgres/rbac.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
slug: /cloud/managed-postgres/rbac
sidebarTitle: 'RBAC'
title: 'Managed Postgres RBAC'
description: 'Learn about role-based access control (RBAC) in ClickHouse Managed Postgres'
keywords: ['managed postgres RBAC', 'access control', 'roles', 'privileges', 'permissions']
doc_type: 'reference'
---

import BetaBadge from "/snippets/components/BetaBadge/BetaBadge.jsx";
import { Image } from "/snippets/components/Image.jsx";

<BetaBadge/>

ClickHouse Cloud supports role-based access control (RBAC) for Managed Postgres services. You can create custom roles with specific permissions and assign them to organization members to control who can view or manage your Postgres services.

## Available permissions {#available-permissions}

Managed Postgres currently supports two permissions:

| Permission | Description |
|---|---|
| **View Postgres services** | Allows a user to see the Postgres service and its details. |
| **Manage Postgres services** | Allows a user to modify, scale, and configure the Postgres service. |

Creating a new Postgres service requires the existing **Organization manage** permission. The permissions above apply only to existing services.

<Note>
More granular permissions will be available in a future release.
</Note>

## Creating a custom role {#creating-a-custom-role}

1. Click your organization name in the left sidebar and select **Users and roles**.

<Image img="/images/managed-postgres/rbac/usersandroles.png" alt="Users and roles menu" size="md" border/>

2. Switch to the **Roles** tab and click **Create role**.
3. Enter a name for the role, then click **+ Allow** and select **Postgres Service** from the entity list.

<Image img="/images/managed-postgres/rbac/postgresentity.png" alt="Selecting the Postgres Service entity" size="md" border/>

4. Choose the Postgres service to scope the role to, then select the permissions to grant.

<Image img="/images/managed-postgres/rbac/newpostgresperms.png" alt="Configuring Postgres permissions on a role" size="md" border/>

5. Click **Create role** to save.

## Assigning a role {#assigning-a-role}

Once the role is created, assign it to users from the **Users** tab on the same **Users and roles** page. A user can have multiple roles, and roles can be combined to build the exact access profile you need.