-
Notifications
You must be signed in to change notification settings - Fork 260
fix(sdb): add missing permissions set MTA-6105 #5069
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |||||
|
|
||||||
| - A Scaleway account logged into the [console](https://console.scaleway.com) | ||||||
| - [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization | ||||||
| - Created a [Serverless SQL Database](/serverless-sql-databases/how-to/create-a-database/) | ||||||
|
|
||||||
| 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. | ||||||
|
|
||||||
|
|
@@ -28,17 +29,17 @@ Permissions define the actions a user or an application can perform on a databas | |||||
|
|
||||||
| 4. Complete the steps on the first page of the creation wizard: | ||||||
|
|
||||||
| - Enter a **name** for the policy. | ||||||
| - Enter a **name** for the policy. | ||||||
|
|
||||||
| - Enter a **description** (optional). | ||||||
| - Enter a **description** (optional). | ||||||
|
|
||||||
| - 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. | ||||||
| - 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. | ||||||
|
|
||||||
| <Message type="important"> | ||||||
| - You can choose to create a policy without a principal for now, and attach the principal later. | ||||||
| - The policy will have no effect until a principal is attached. | ||||||
| - A policy can only be attached to one principal at a time. | ||||||
| </Message> | ||||||
| <Message type="important"> | ||||||
| - You can choose to create a policy without a principal for now, and attach the principal later. | ||||||
| - The policy will have no effect until a principal is attached. | ||||||
| - A policy can only be attached to one principal at a time. | ||||||
| </Message> | ||||||
|
|
||||||
| 5. Click **Add rules**. The second screen of the policy creation wizard. | ||||||
|
|
||||||
|
|
@@ -48,28 +49,37 @@ Permissions define the actions a user or an application can perform on a databas | |||||
|
|
||||||
| 8. Select **Databases** in the left-hand **Products** list, then, tick the permissions set you want to add to the policy: | ||||||
|
|
||||||
| - **ServerlessSQLDatabaseFullAccess** allows the user to create and delete databases, edit their configuration, and use the following commands: | ||||||
| - **ServerlessSQLDatabaseFullAccess** allows the user to create and delete databases, edit their configuration, and use the following commands: | ||||||
|
|
||||||
| - `SELECT` | ||||||
| - `UPDATE` | ||||||
| - `INSERT` | ||||||
| - `DELETE` | ||||||
| - `CREATE/ALTER/DROP TABLE` | ||||||
| - `CREATE/DROP INDEX` | ||||||
| - `SELECT` | ||||||
| - `UPDATE` | ||||||
| - `INSERT` | ||||||
| - `DELETE` | ||||||
| - `CREATE/ALTER/DROP TABLE` | ||||||
| - `CREATE/DROP INDEX` | ||||||
|
|
||||||
| - **ServerlessSQLDatabaseReadWrite** allows the user to use the following commands: | ||||||
| - **ServerlessSQLDatabaseReadWrite** allows the user to use the following commands: | ||||||
|
|
||||||
| - `SELECT` | ||||||
| - `UPDATE` | ||||||
| - `INSERT` | ||||||
| - `DELETE` | ||||||
| - `CREATE/ALTER/DROP TABLE` | ||||||
| - `CREATE/DROP INDEX` | ||||||
| - `SELECT` | ||||||
| - `UPDATE` | ||||||
| - `INSERT` | ||||||
| - `DELETE` | ||||||
| - `CREATE/ALTER/DROP TABLE` | ||||||
| - `CREATE/DROP INDEX` | ||||||
|
|
||||||
| - **ServerlessSQLDatabaseReadOnly** allows the user to use the following commands: | ||||||
| - **ServerlessSQLDatabaseReadOnly** allows the user to use the following commands: | ||||||
|
|
||||||
| - `SELECT` | ||||||
| - `SELECT` | ||||||
|
|
||||||
| - **(/serverless-sql-databases/how-to/manage-permissions/)** allows the user to use the following commands: | ||||||
SamyOubouaziz marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| - `SELECT` | ||||||
| - `UPDATE` | ||||||
| - `INSERT` | ||||||
| - `DELETE` | ||||||
|
|
||||||
| 9. Click **Validate**. The **scope** and the **permission sets** of your policy display. | ||||||
|
|
||||||
| 10. Click **Create policy** to finish. | ||||||
|
|
||||||
| The user or application now has the selected permissions, and can perform the corresponding actions on the Serverless SQL Database. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.