-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(clickhousegrant): add clickhouse grant docs to API reference
- Loading branch information
Showing
3 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
apiVersion: aiven.io/v1alpha1 | ||
kind: ClickhouseGrant | ||
metadata: | ||
name: demo-ch-grant | ||
spec: | ||
authSecretRef: | ||
name: aiven-token | ||
key: token | ||
|
||
project: my-aiven-project | ||
serviceName: my-clickhouse | ||
|
||
privilegeGrants: | ||
- grantees: | ||
- user: user1 | ||
- user: my-clickhouse-user-🦄 | ||
privileges: | ||
- SELECT | ||
- INSERT | ||
database: my-db | ||
# If table is not specified, the privileges are granted on all tables in the database | ||
# If columns is not specified, the privileges are granted on all columns in the table | ||
- grantees: | ||
- role: my-role | ||
privileges: | ||
- SELECT | ||
database: my-db | ||
table: my-table | ||
columns: | ||
- col1 | ||
- col2 | ||
|
||
roleGrants: | ||
- roles: | ||
- other-role | ||
grantees: | ||
- user: my-user | ||
- role: my-role | ||
|
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