[feature](security) Support block specific query with AST names#43533
Merged
gavinchou merged 2 commits intoapache:masterfrom Nov 12, 2024
Merged
[feature](security) Support block specific query with AST names#43533gavinchou merged 2 commits intoapache:masterfrom
gavinchou merged 2 commits intoapache:masterfrom
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
3aeba2c to
b6ce6d5
Compare
gavinchou
reviewed
Nov 8, 2024
Collaborator
Author
|
run buildall |
3265cef to
72c9ec3
Compare
Collaborator
Author
|
run buildall |
gavinchou
reviewed
Nov 11, 2024
fe/fe-core/src/test/java/org/apache/doris/nereids/parser/NereidsParserTest.java
Show resolved
Hide resolved
gavinchou
reviewed
Nov 11, 2024
| } | ||
|
|
||
| @Test | ||
| public void testBlockSqlAst(@Mocked UseStmt useStmt, @Mocked SqlParser parser) throws Exception { |
Contributor
There was a problem hiding this comment.
test create file, create function statment too
also test some commands that should not be blocked
72c9ec3 to
88ac5fd
Compare
Collaborator
Author
|
run feut |
88ac5fd to
6c63b91
Compare
Collaborator
Author
|
run feut |
6c63b91 to
2054ace
Compare
Collaborator
Author
|
run buildall |
2054ace to
ae31056
Compare
Collaborator
Author
|
run buildall |
ae31056 to
8b0eb27
Compare
Collaborator
Author
|
run buildall |
gavinchou
approved these changes
Nov 12, 2024
Contributor
|
PR approved by at least one committer and no changes requested. |
Contributor
|
PR approved by anyone and no changes requested. |
Yukang-Lian
approved these changes
Nov 12, 2024
gavinchou
approved these changes
Nov 12, 2024
morningman
approved these changes
Nov 12, 2024
morrySnow
approved these changes
Nov 12, 2024
py023
pushed a commit
to py023/doris
that referenced
this pull request
Nov 13, 2024
…he#43533) Support block specific query with AST names when necessary for security reasons, configure the name list in fe.conf, for example: ``` block_sql_ast_names="CreateFileStmt, CreateFunctionStmt" ```
Hastyshell
added a commit
to Hastyshell/doris
that referenced
this pull request
Nov 13, 2024
…he#43533) Support block specific query with AST names when necessary for security reasons, configure the name list in fe.conf, for example: ``` block_sql_ast_names="CreateFileStmt, CreateFunctionStmt" ```
dataroaring
pushed a commit
that referenced
this pull request
Nov 13, 2024
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.
What problem does this PR solve?
Support block specific query with AST names when necessary for security reasons, configure the name list in fe.conf, for example:
Release note
Support to block some SQL statements, e.g. CreateFileStmt, when necessary for security reasons.
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)