You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/04/15 07:16:01 UTC

[GitHub] [shardingsphere] mingyifei opened a new issue, #16850: [shardingsphere-encrypt] The encrypted data is not automatically decrypted during query.

mingyifei opened a new issue, #16850:
URL: https://github.com/apache/shardingsphere/issues/16850

   ## Bug Report
   
   The encrypted data is not automatically decrypted during query.
   
   version: master 
   
   server.yaml
   `mode:
     type: Cluster
     repository:
       type: ZooKeeper
       props:
         namespace: governance_ds
         server-lists: localhost:2181,localhost:2182,localhost:2183
         retryIntervalMilliseconds: 500
         timeToLiveSeconds: 60
         maxRetries: 3
         operationTimeoutMilliseconds: 500
     overwrite: true
   rules:
     - !AUTHORITY
       users:
         - root@:root
         - sharding@:sharding
       provider:
         type: ALL_PRIVILEGES_PERMITTED
     - !SQL_PARSER
       sqlCommentParseEnabled: true
   
   props:
     max-connections-size-per-query: 1
     kernel-executor-size: 16  # Infinite by default.
     proxy-frontend-flush-threshold: 128  # The default value is 128.
     proxy-hint-enabled: false
     sql-show: false
     check-table-metadata-enabled: false`
   
   
   
   
   config-shadow.yaml
   `chemaName: cyborg-database-shadow
   dataSources:
     # Production DB configuration, modified according to actual needs.
     ds:
       url: jdbc:mysql://127.0.0.1:3306/ds?serverTimezone=UTC&useSSL=false
       username: root
       password: 123456
       connectionTimeoutMilliseconds: 30000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: 50
       minPoolSize: 1
     # Shadow DB configuration, modified according to actual needs.
     ds_shadow:
       url: jdbc:mysql://127.0.0.1:3306/ds_shadow?serverTimezone=UTC&useSSL=false
       username: root
       password: 123456
       connectionTimeoutMilliseconds: 30000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: 50
       minPoolSize: 1
   
   rules:
     - !SHADOW
       dataSources:
         shadowDataSource:
           sourceDataSourceName: ds
           shadowDataSourceName: ds_shadow
       defaultShadowAlgorithmName: simple-hint-algorithm
       shadowAlgorithms:
         simple-hint-algorithm:
           type: SIMPLE_HINT
           props:
             cyborg-flow: true
   
     - !ENCRYPT
       encryptors:
         aes_encryptor:
           type: AES
           props:
             aes-key-value: 123456abc
         md5_encryptor:
           type: MD5
       tables:
         t_address:
           columns:
             address_name:
               #plainColumn: user_plain
               cipherColumn: address_name
               encryptorName: aes_encryptor
       queryWithCipherColumn: false
             #order_id:
             #  cipherColumn: order_cipher
             #  encryptorName: md5_encryptor`
   
   
   client package:
   shardingsphere-examples :shardingsphere-proxy-example :shardingsphere-proxy-boot-mybatis-example
   
   
   


-- 
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] RaigorJiang commented on issue #16850: [shardingsphere-encrypt] The encrypted data is not automatically decrypted during query.

Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on issue #16850:
URL: https://github.com/apache/shardingsphere/issues/16850#issuecomment-1246934782

   Closed due to no reply for a long time.


-- 
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] RaigorJiang closed issue #16850: [shardingsphere-encrypt] The encrypted data is not automatically decrypted during query.

Posted by GitBox <gi...@apache.org>.
RaigorJiang closed issue #16850: [shardingsphere-encrypt] The encrypted data is not automatically decrypted during query.
URL: https://github.com/apache/shardingsphere/issues/16850


-- 
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] mingyifei commented on issue #16850: [shardingsphere-encrypt] The encrypted data is not automatically decrypted during query.

Posted by GitBox <gi...@apache.org>.
mingyifei commented on issue #16850:
URL: https://github.com/apache/shardingsphere/issues/16850#issuecomment-1101921993

   > @mingyifei Please provide the configuration file `config-shadow.yaml` in `cyborg-database-shadow`
   
   I didn't start cyborg-database-shadow. I used the master branch code to start proxy. I only used cyborg-agent


-- 
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 #16850: [shardingsphere-encrypt] The encrypted data is not automatically decrypted during query.

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #16850:
URL: https://github.com/apache/shardingsphere/issues/16850#issuecomment-1100048807

   Hi @mingyifei, I have try your configuration, but I can't reproduce this result. Can you give a step to help reproduce this problem?


-- 
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 #16850: [shardingsphere-encrypt] The encrypted data is not automatically decrypted during query.

Posted by GitBox <gi...@apache.org>.
tuichenchuxin commented on issue #16850:
URL: https://github.com/apache/shardingsphere/issues/16850#issuecomment-1101155856

   I want to 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] mingyifei commented on issue #16850: [shardingsphere-encrypt] The encrypted data is not automatically decrypted during query.

Posted by GitBox <gi...@apache.org>.
mingyifei commented on issue #16850:
URL: https://github.com/apache/shardingsphere/issues/16850#issuecomment-1100052554

   > Hi @mingyifei, I have try your configuration, but I can't reproduce this result. Can you give a step to help reproduce this problem?
   
   My client uses javaagent, javaAgent: https://github.com/SphereEx/cyborg-flow


-- 
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] soulasuna commented on issue #16850: [shardingsphere-encrypt] The encrypted data is not automatically decrypted during query.

Posted by GitBox <gi...@apache.org>.
soulasuna commented on issue #16850:
URL: https://github.com/apache/shardingsphere/issues/16850#issuecomment-1101333267

   @mingyifei  Please provide the configuration file `config-shadow.yaml` in `cyborg-database-shadow`


-- 
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] mingyifei commented on issue #16850: [shardingsphere-encrypt] The encrypted data is not automatically decrypted during query.

Posted by GitBox <gi...@apache.org>.
mingyifei commented on issue #16850:
URL: https://github.com/apache/shardingsphere/issues/16850#issuecomment-1101917961

   > @mingyifei Please provide the configuration file `config-shadow.yaml` in `cyborg-database-shadow`
   [config-shadow.md](https://github.com/apache/shardingsphere/files/8509163/config-shadow.md)
   
   


-- 
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