Update permissions-for-queries.md#43224
Merged
DanRoscigno merged 3 commits intomasterfrom Nov 14, 2022
Merged
Conversation
tavplubix
reviewed
Nov 14, 2022
| The following settings regulate user permissions by the type of query: | ||
|
|
||
| - [readonly](#settings_readonly) — Restricts permissions for all types of queries except DDL queries. | ||
| - [readonly](#settings_readonly) — Restricts permissions for Write and DDL queries, and selectively on Change settings queries. |
Member
There was a problem hiding this comment.
should I also say something about DELETE and UPDATE in here?
It's much easier to enumerate queries that are allowed. I would say that it restricts permissions to all types of queries except readonly queries (like SELECT and equivalent queries), and queries that modify only session context (like USE and (for readonly=2) SET and CREATE TEMPORARY TABLE). Queries like EXISTS, DESCRIBE, SHOW PROCESSLIST, etc are equivalent to SELECT, because they just do select from system tables. EXPLAIN is also equivalent to SELECT.
Contributor
Author
|
I combined sections and (I think!) simplified. |
tavplubix
approved these changes
Nov 14, 2022
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
closes #43068
Changelog category (leave one):
@tavplubix ,should I also say something about DELETE and UPDATE in here? These (I believe) require ALTER, so need allow_ddl=1.
cc: @dbanda