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: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to