-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
privilege: add privilege check for show stats
(#19702)
#19760
privilege: add privilege check for show stats
(#19702)
#19760
Conversation
/run-all-tests |
@imtbkcat please accept the invitation then you can push to the cherry-pick pull requests. |
Please address conflict @imtbkcat |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
e140eac
to
ca720fc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@ti-srebot merge failed. |
/merge |
Sorry @imtbkcat, you don't have permission to trigger auto merge event on this branch. |
LGTM |
cherry-pick #19702 to release-4.0
What problem does this PR solve?
Issue Number: close #17782
Problem Summary:
Command like
SHOW STATS_META
andSHOW STATS_BUCKETS
didn't check privilege before. This will lead to table information leak, any user could see some table information by usingSHOW STATS
.What is changed and how it works?
What's Changed:
Add privilege check for
SHOW STATS
related command.How it Works:
Only user with
SELECT
privilege onmysql
database could executeSHOW STATS
Related changes
Check List
Tests
Side effects
Release note
SHOW STATS_META
,SHOW STATS_BUCKET
.