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

   ### 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
   
   Currently, displaying workload group information by tvf is not 
authenticated, and all workload group information is displayed. 
   We create workload group g1 by root, and perform select operation as a 
non-root user.
   MySQL [(none)]> select * from workload_groups();
   +-------+--------+--------------------------+------------+
   | Id          | Name    | Item                                      | Value  
         |
   +-------+--------+--------------------------+------------+
   | 10002 | normal   | enable_memory_overcommit | true          |
   | 10002 | normal   | max_concurrency               | 2147483647|
   | 10002 | normal   | queue_timeout                    | 0                   |
   | 10002 | normal   | max_queue_size                 | 0                   |
   | 10002 | normal   | memory_limit                       | 30%             |
   | 10002 | normal   | cpu_share                            | 10               
  |
   | 10082 | g1          | enable_memory_overcommit | true           |
   | 10082 | g1         | max_concurrency                 | 2147483647|
   | 10082 | g1         | queue_timeout                      | 0                
   |
   | 10082 | g1         | max_queue_size                   | 0                  
 |
   | 10082 | g1         | memory_limit                         | 30%            
 |
   | 10082 | g1         | cpu_share                              | 10           
      |
   +-------+--------+--------------------------+------------+
   
   We expect to show only information of workload groups to which the user has 
permission.
   MySQL [(none)]> select * from workload_groups();
   +-------+--------+--------------------------+------------+
   | Id          | Name    | Item                                      | Value  
         |
   +-------+--------+--------------------------+------------+
   | 10002 | normal   | enable_memory_overcommit | true          |
   | 10002 | normal   | max_concurrency               | 2147483647|
   | 10002 | normal   | queue_timeout                    | 0                   |
   | 10002 | normal   | max_queue_size                 | 0                   |
   | 10002 | normal   | memory_limit                       | 30%             |
   | 10002 | normal   | cpu_share                            | 10               
  |
   +-------+--------+--------------------------+------------+
   
   ### Solution
   
   Add authentication for workload group tvf.
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to