You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "wsc20190102 (via GitHub)" <gi...@apache.org> on 2023/02/22 08:31:06 UTC
[GitHub] [shardingsphere] wsc20190102 opened a new issue, #24300: How can I do Equivalent query with cipher column?
wsc20190102 opened a new issue, #24300:
URL: https://github.com/apache/shardingsphere/issues/24300
## Question
How can I do Equivalent query with cipher column ?
shardingSphere version is 5.1.0
framework is spring data jpa, use feature projection query
part of sql is : AND if( :email != '', u.email = :email, 1=1 )
email is the cipher column and my yaml config is ineffective
tables:
sys_user:
columns:
email:
cipher-column: email
assisted-query-column: email
encryptor-name: mysharding-encryptor
mobile:
cipher-column: mobile
encryptor-name: mysharding-encryptor
query-with-cipher-column: true
--
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
[GitHub] [shardingsphere] wsc20190102 commented on issue #24300: How can I do Equivalent query with cipher column?
Posted by "wsc20190102 (via GitHub)" <gi...@apache.org>.
wsc20190102 commented on issue #24300:
URL: https://github.com/apache/shardingsphere/issues/24300#issuecomment-1441160913
whether shardingSphere 5.1.0 version can support cipher column query? thanks @tuichenchuxin
--
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
[GitHub] [shardingsphere] strongduanmu commented on issue #24300: How can I do Equivalent query with cipher column?
Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu commented on issue #24300:
URL: https://github.com/apache/shardingsphere/issues/24300#issuecomment-1439625731
@tuichenchuxin Can you help check this issue?
--
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
[GitHub] [shardingsphere] wsc20190102 commented on issue #24300: How can I do Equivalent query with cipher column?
Posted by "wsc20190102 (via GitHub)" <gi...@apache.org>.
wsc20190102 commented on issue #24300:
URL: https://github.com/apache/shardingsphere/issues/24300#issuecomment-1439659237
i use spring data jpa projection query with the sql, the cipher column email is invalid, i give right email value,but i get nothing with the result
SELECT
*
FROM
sys_user AS u
LEFT JOIN sys_ent ON u.id = ent.user_id
AND ent.is_deleted = 0
WHERE
email = " "
--
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
[GitHub] [shardingsphere] wsc20190102 commented on issue #24300: How can I do Equivalent query with cipher column?
Posted by "wsc20190102 (via GitHub)" <gi...@apache.org>.
wsc20190102 commented on issue #24300:
URL: https://github.com/apache/shardingsphere/issues/24300#issuecomment-1439659585
@tuichenchuxin
--
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
[GitHub] [shardingsphere] strongduanmu commented on issue #24300: How can I do Equivalent query with cipher column?
Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu commented on issue #24300:
URL: https://github.com/apache/shardingsphere/issues/24300#issuecomment-1637931782
Long time no response.
--
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
[GitHub] [shardingsphere] tuichenchuxin commented on issue #24300: How can I do Equivalent query with cipher column?
Posted by "tuichenchuxin (via GitHub)" <gi...@apache.org>.
tuichenchuxin commented on issue #24300:
URL: https://github.com/apache/shardingsphere/issues/24300#issuecomment-1441269571
>
I saw cipher-column and assisted-query-column is same : email.
May be you just need cipher-column?
this doc may offer some help.
https://shardingsphere.apache.org/document/5.1.0/cn/user-manual/shardingsphere-jdbc/java-api/rules/encrypt/
--
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
[GitHub] [shardingsphere] strongduanmu closed issue #24300: How can I do Equivalent query with cipher column?
Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu closed issue #24300: How can I do Equivalent query with cipher column?
URL: https://github.com/apache/shardingsphere/issues/24300
--
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
[GitHub] [shardingsphere] tuichenchuxin commented on issue #24300: How can I do Equivalent query with cipher column?
Posted by "tuichenchuxin (via GitHub)" <gi...@apache.org>.
tuichenchuxin commented on issue #24300:
URL: https://github.com/apache/shardingsphere/issues/24300#issuecomment-1439630744
Sure. @wsc20190102 I can't see the sql clearly. Can you optimize the infomation for me to reproduce.
--
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
[GitHub] [shardingsphere] tuichenchuxin commented on issue #24300: How can I do Equivalent query with cipher column?
Posted by "tuichenchuxin (via GitHub)" <gi...@apache.org>.
tuichenchuxin commented on issue #24300:
URL: https://github.com/apache/shardingsphere/issues/24300#issuecomment-1439822387
try this? And open `sql-show` property to show the actual sql.
```sql
SELECT
*
FROM
sys_user AS u
LEFT JOIN sys_ent ON u.id = ent.user_id
AND ent.is_deleted = 0
WHERE
u.email = " "
```
--
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
[GitHub] [shardingsphere] wsc20190102 commented on issue #24300: How can I do Equivalent query with cipher column?
Posted by "wsc20190102 (via GitHub)" <gi...@apache.org>.
wsc20190102 commented on issue #24300:
URL: https://github.com/apache/shardingsphere/issues/24300#issuecomment-1441144783
sorry,column email is the condition column and cipher column, i just want to query result which equal the email value like "467542@qq.com"
my config as blow
`rules:
encrypt: # 加密规则配置
encryptors:
mysharding-encryptor:
type: MYAES # 声明加密处理器的类型
props:
aes-key-value: ${teleinfo.snms.file-encrypt-key}
tables:
sys_user:
columns:
email:
cipher-column: email
assisted-query-column: email
encryptor-name: mysharding-encryptor
mobile:
cipher-column: mobile
encryptor-name: mysharding-encryptor
query-with-cipher-column: true # 设置查询是否使用密文列`
--
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