You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "chengxunhuang (via GitHub)" <gi...@apache.org> on 2023/09/26 04:03:27 UTC
[GitHub] [shardingsphere] chengxunhuang opened a new issue, #28587: Fuzzy Query of Encrypted Fields
chengxunhuang opened a new issue, #28587:
URL: https://github.com/apache/shardingsphere/issues/28587
## Bug Report
When performing fuzzy queries on encrypted fields, use distsql to create rules, as follows:
CREATE ENCRYPT RULE test (
COLUMNS ((
NAME = col1,
likeQueryColumn = col1,
likeQueryEncryptorName =like_encryptor,
CIPHER = col1,
ENCRYPT_ALGORITHM (
TYPE (
NAME = 'MySm4',
PROPERTIES ( 'sm4-key' = 'a4311fa82f52d513f43a79a281c86ec1', 'sm4-mode' = 'ECB', 'sm4-padding' = 'PKCS5Padding' ))))));
Using this statement will display grammar errors。
If the fuzzy query column is removed, it can be successfully added,
CREATE ENCRYPT RULE test (
COLUMNS ((
NAME = col1,
CIPHER = col1,
ENCRYPT_ALGORITHM (
TYPE (
NAME = 'MySm4',
PROPERTIES ( 'sm4-key' = 'a4311fa82f52d513f43a79a281c86ec1', 'sm4-mode' = 'ECB', 'sm4-padding' = 'PKCS5Padding' ))))));
So how to write distsql with likeQueryColumn and likeQueryEncryptorName
### Which version of ShardingSphere did you use?
5.3.1-SNAPSHOT
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-Proxy
### Expected behavior
### Actual behavior
### Reason analyze (If you can)
### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
### Example codes for reproduce this issue (such as a github link).
--
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: notifications-unsubscribe@shardingsphere.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Fuzzy Query of Encrypted Fields [shardingsphere]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #28587:
URL: https://github.com/apache/shardingsphere/issues/28587#issuecomment-1826883575
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Fuzzy Query of Encrypted Fields [shardingsphere]
Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu commented on issue #28587:
URL: https://github.com/apache/shardingsphere/issues/28587#issuecomment-1782076649
@chengxunhuang Can you format your distsql? It's hard to read.
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Fuzzy Query of Encrypted Fields [shardingsphere]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #28587:
URL: https://github.com/apache/shardingsphere/issues/28587#issuecomment-1781821642
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Fuzzy Query of Encrypted Fields [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu closed issue #28587: Fuzzy Query of Encrypted Fields
URL: https://github.com/apache/shardingsphere/issues/28587
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org