yongjinhou opened a new issue, #20328:
URL: https://github.com/apache/doris/issues/20328

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Description
   
   Take backends tvf for example.
   For root user:
   MySQL [(none)]> select BackendId from backends();
   +-----------+
   | BackendId  |
   +-----------+
   |     10003     |
   +-----------+
   
   For user without Node privilege and Admin privilege:
   MySQL [(none)]> select BackendId from backends();
   +-----------+
   | BackendId  |
   +-----------+
   |     10003     |
   +-----------+
   
   We expect to authenticate backends tvf like show backends for user without 
Node privilege and Admin privilege.
   MySQL [(none)]> show backends;
   ERROR 1227 (42000): errCode = 2, detailMessage = Access denied; you need (at 
least one of) the ADMIN/OPERATOR privilege(s) for this operation
   
   
   ### Solution
   
   Add authentication for tvf and some show operations.
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to