You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/serverless-sql-databases/how-to/manage-permissions.mdx
+34-24Lines changed: 34 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ Permissions define the actions a user or an application can perform on a databas
19
19
20
20
- A Scaleway account logged into the [console](https://console.scaleway.com)
21
21
-[Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
22
+
- Created a [Serverless SQL Database](/serverless-sql-databases/how-to/create-a-database/)
22
23
23
24
1. Click **IAM & API keys** on the top-right drop-down menu of the Scaleway console. The **Users** tab of the [Identity and Access Management dashboard](https://console.scaleway.com/iam/users) displays.
24
25
@@ -28,17 +29,17 @@ Permissions define the actions a user or an application can perform on a databas
28
29
29
30
4. Complete the steps on the first page of the creation wizard:
30
31
31
-
- Enter a **name** for the policy.
32
+
- Enter a **name** for the policy.
32
33
33
-
- Enter a **description** (optional).
34
+
- Enter a **description** (optional).
34
35
35
-
- Select a **principal**, who will be the target of your policy. The [principal](/iam/concepts/#principal) should be the user, application, or group you want to grant access to your database.
36
+
- Select a **principal**, who will be the target of your policy. The [principal](/iam/concepts/#principal) should be the user, application, or group you want to grant access to your database.
36
37
37
-
<Messagetype="important">
38
-
- You can choose to create a policy without a principal for now, and attach the principal later.
39
-
- The policy will have no effect until a principal is attached.
40
-
- A policy can only be attached to one principal at a time.
41
-
</Message>
38
+
<Messagetype="important">
39
+
- You can choose to create a policy without a principal for now, and attach the principal later.
40
+
- The policy will have no effect until a principal is attached.
41
+
- A policy can only be attached to one principal at a time.
42
+
</Message>
42
43
43
44
5. Click **Add rules**. The second screen of the policy creation wizard.
44
45
@@ -48,28 +49,37 @@ Permissions define the actions a user or an application can perform on a databas
48
49
49
50
8. Select **Databases** in the left-hand **Products** list, then, tick the permissions set you want to add to the policy:
50
51
51
-
-**ServerlessSQLDatabaseFullAccess** allows the user to create and delete databases, edit their configuration, and use the following commands:
52
+
-**ServerlessSQLDatabaseFullAccess** allows the user to create and delete databases, edit their configuration, and use the following commands:
52
53
53
-
-`SELECT`
54
-
-`UPDATE`
55
-
-`INSERT`
56
-
-`DELETE`
57
-
-`CREATE/ALTER/DROP TABLE`
58
-
-`CREATE/DROP INDEX`
54
+
-`SELECT`
55
+
-`UPDATE`
56
+
-`INSERT`
57
+
-`DELETE`
58
+
-`CREATE/ALTER/DROP TABLE`
59
+
-`CREATE/DROP INDEX`
59
60
60
-
-**ServerlessSQLDatabaseReadWrite** allows the user to use the following commands:
61
+
-**ServerlessSQLDatabaseReadWrite** allows the user to use the following commands:
61
62
62
-
-`SELECT`
63
-
-`UPDATE`
64
-
-`INSERT`
65
-
-`DELETE`
66
-
-`CREATE/ALTER/DROP TABLE`
67
-
-`CREATE/DROP INDEX`
63
+
-`SELECT`
64
+
-`UPDATE`
65
+
-`INSERT`
66
+
-`DELETE`
67
+
-`CREATE/ALTER/DROP TABLE`
68
+
-`CREATE/DROP INDEX`
68
69
69
-
-**ServerlessSQLDatabaseReadOnly** allows the user to use the following commands:
70
+
-**ServerlessSQLDatabaseReadOnly** allows the user to use the following commands:
70
71
71
-
-`SELECT`
72
+
-`SELECT`
73
+
74
+
-**ServerlessSQLDatabaseDataReadWrite** allows the user to use the following commands:
75
+
76
+
-`SELECT`
77
+
-`UPDATE`
78
+
-`INSERT`
79
+
-`DELETE`
72
80
73
81
9. Click **Validate**. The **scope** and the **permission sets** of your policy display.
74
82
75
83
10. Click **Create policy** to finish.
84
+
85
+
The user or application now has the selected permissions, and can perform the corresponding actions on the Serverless SQL Database.
Copy file name to clipboardExpand all lines: pages/serverless-sql-databases/troubleshooting/connection-errors.mdx
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,11 +47,14 @@ The [IAM principal](/iam/concepts/#principal) (user or application) does not hav
47
47
48
48
### Solution
49
49
50
-
[Create a new IAM policy](/iam/how-to/create-policy/) or [update an existing one](/iam/how-to/manage-policies/#how-to-edit-a-policys-rules) to grant one of the following permissions sets to the user or application:
50
+
[Grant one of the following permissions](/serverless-sql-databases/how-to/manage-permissions/) sets to the user or application:
51
51
-`ServerlessSQLDatabaseReadOnly`
52
52
-`ServerlessSQLDatabaseReadWrite`
53
+
-`ServerlessSQLDatabaseDataReadWrite`
53
54
-`ServerlessSQLDatabaseFullAccess`
54
55
56
+
Refer to the [dedicated documentation](/serverless-sql-databases/how-to/manage-permissions/) for more information the SQL operations allowed by each permissions set.
57
+
55
58
## ERROR: permission denied to create temporary tables/subscription in database
0 commit comments