apache / shardingsphere

Distributed SQL transaction & query engine for data sharding, scaling, encryption, and more - on any database.
Apache License 2.0
19.83k stars 6.71k forks source link

shrdingsphere-proxy desensitization is not effective #31441

Closed haha8541168 closed 1 month ago

haha8541168 commented 4 months ago

Bug Report

For English only, other languages will not accept.

Before report a bug, make sure you have:

Please pay attention on issues you submitted, because we maybe need more details. If no response anymore and we cannot reproduce it on current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Which version of ShardingSphere did you use?

apache-shardingsphere-5.4.1-shardingsphere-proxy

Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?

ShardingSphere-Proxy

Expected behavior

Data on desensitization

Actual behavior

encrypted data

Reason analyze (If you can)

1.Queries with simple sql like:'select data_encript from my_table' can correctly access decrypted data; 2.When sqls with 'group by' and Queries with pagination then comes the encrypted data,the following is my sql and my cipher_column is 'description'

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

When sqls with 'group by' and Queries with pagination then comes the encrypted data,the following is my sql and my cipher_column is 'description select handle, descriptionfrom ( select max(handle) as handle, max(description) as description from ( select a.handle, b.description from box_url a left join box_url_t b on a.handle = b.box_url_bo where a.is_deleted = 0 ) t group by handle ) h

Example codes for reproduce this issue (such as a github link).

terrymanu commented 1 month ago

What is your configuration?

github-actions[bot] commented 1 month ago

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.