-
Notifications
You must be signed in to change notification settings - Fork 752
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
docs(query): add access control doc about privilege #10464
Closed
Closed
Changes from all commits
Commits
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
78 changes: 78 additions & 0 deletions
78
docs/doc/04-security/00-access-control/10-access-control-privileges.md
This file contains 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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
title: Access Control Privileges | ||
sidebar_label: Privileges | ||
description: | ||
Databend Access Control Privileges | ||
--- | ||
|
||
This topic describes the privileges that are available in the Databend access control model. | ||
|
||
## All Privileges | ||
|
||
| Privilege | Object Type | Description | | ||
| :-- | :-- | :-- | | ||
| ALL | All | Grants all the privileges for the specified object type. | | ||
| Alter | Database, Table, View | Privilege to alter databases or tables. | | ||
| Create | Database, Table | Privilege to create databases or tables. | | ||
| Delete | Table | Privilege to delete or truncate rows in a table. | | ||
| Drop | Database, Table, View | Privilege to drop databases or tables or views and undrop databases or tables. | | ||
| Insert | Table | Privilege to insert rows into tables. | | ||
| Select | Table | Privilege to select rows from tables . | | ||
| Update | Table | Privilege to update rows in a table | | ||
| Grant | Global | Privilege to Grant/Revoke privileges to users or roles | | ||
| Super | Global | Privilege to Kill query, Set global configs, OptimizeTable. | | ||
| Usage | Global | UsagePrivilege is a synonym for “no privileges” | | ||
| Create Role | Global | Not used | | ||
| Create Stage | Not used | Not used | | ||
| Create User | Global | Not used | | ||
|
||
## Global Privileges | ||
|
||
| Privilege | Usage | | ||
| :-- | :-- | | ||
| ALL | Grants all the privileges for the specified object type. | | ||
| Grant | Add/Drop table Column, Alter table cluster key, Re-cluster table | | ||
| CreateRole | Create table | | ||
| CreateUser | Delete rows in a table, Truncate table | | ||
| Super | Kill query, Set configs | | ||
| Usage | Only can connect to databend query, but no privileges | | ||
|
||
|
||
## Table Privileges | ||
|
||
| Privilege | Usage | | ||
| :-- | :-- | | ||
| ALL | Grants all the privileges for the specified object type. | | ||
| Alter | Add/Drop table Column, Alter table cluster key, Re-cluster table | | ||
| Create | Create table | | ||
| Delete | Delete rows in a table, Truncate table | | ||
| Drop | Drop table, Undrop table(restores the recent version of a dropped table) | | ||
| Insert | Insert rows into table | | ||
| Select | Select rows from tables | | ||
| Update | Update rows in a table | | ||
| Super | Optimize table need super privilege | | ||
|
||
## View Privileges | ||
|
||
| Privilege | Usage | | ||
| :-- | :-- | | ||
| ALL | Grants all the privileges for the specified object type | | ||
| Alter | Create/Drop view, Alter the existing view by using another `QUERY` | | ||
| Drop | Drop view | | ||
|
||
## Database Privileges | ||
|
||
| Privilege | Usage | | ||
| :-- | :-- | | ||
| Alter | Rename database | | ||
| Create | Create database | | ||
| Drop | Drop database, Undrop database((restores the recent version of a dropped database)) | | ||
|
||
|
||
## Session Policy Privileges | ||
|
||
|
||
| Privilege | Usage | | ||
| :-- | :-- | | ||
| Super | Kill query, Set configs | | ||
| ALL | Grants all the privileges for the specified object type. | |
This file contains 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"label": "Access Control", | ||
"link": { | ||
"type": "generated-index", | ||
"slug": "/operations/access" | ||
} | ||
} |
This file contains 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"label": "Security", | ||
"link": { | ||
"type": "generated-index", | ||
"slug": "/security" | ||
} | ||
} |
This file contains 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 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 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 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 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to move here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before Use cases after SQL Functions