information_schema.tiflash_replica
shows table info even if the user has no privileges on it
#7795
Labels
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
--tiflash 1
optiontest1
andtest2
databases.user1
anduser2
users.The
user1
has all privileges on all oftest1
database, Same asuser2
has all prvileges on all oftest2
database.Exit the root connection
Connect to tiup playground instance as user1
test1
database and createt1
table and create a tiflash replica oft1
.Exit the user1 connection
Connect to tiup playground instance as user2
test1.t1
table as user2, which getsERROR 1142
as expected.information_schema.tables
as user2, it does not show any record where where table_schema = 'test1' as expectedinformation_schema.tiflash_replica
as user2, it somehow shows the record where table_schema= 'test1' and TABLE_NAME = 't1, 'which is unexpected2. What did you expect to see? (Required)
At step 11, user2 should not see any record from
information_schema.tiflash_replica
where table_schema= 'test1' and TABLE_NAME = 't1'. Same asinformation_schema.tables
3. What did you see instead (Required)
4. What is your TiFlash version? (Required)
The text was updated successfully, but these errors were encountered: