hailin0 opened a new issue, #8511:
URL: https://github.com/apache/seatunnel/issues/8511

   ### Search before asking
   
   - [X] I had searched in the 
[feature](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22Feature%22)
 and found no similar feature requirement.
   
   
   ### Description
   
   
   # Current
   
   Currently we support encryption and decryption of fixed key fields.
   - 
https://github.com/apache/seatunnel/blob/dev/docs/en/connector-v2/Config-Encryption-Decryption.md
   - 
https://github.com/apache/seatunnel/blob/dev/seatunnel-core/seatunnel-core-starter/src/main/java/org/apache/seatunnel/core/starter/utils/ConfigShadeUtils.java#L50
   
   
   - input
   ```
   env {
     parallelism = 1
     shade.identifier = "base64"
   }
   
   source {
     test-source1 {
       username = "c2VhdHVubmVs"
       password = "c2VhdHVubmVsX3Bhc3N3b3Jk"
       database-name = "inventory_vwyw0n"
       table-name = "products"
       base-url = "jdbc:mysql://localhost:56725"
      
       # 
       f1 = "c2VhdHVubmVs"
       config1.f1 = "c2VhdHVubmVs"
       config2.list = ["c2VhdHVubmVsX3Bhc3N3b3Jk", "a", "b"]
     }
   }
   
   sink {
     console {
      
     }
   }
   ```
   
   - output
   ```
   env {
     parallelism = 1
     shade.identifier = "base64"
   }
   
   source {
     test-source1 {
       username = "seatunnel"
       password = "seatunnel_password"
       database-name = "inventory_vwyw0n"
       table-name = "products"
       base-url = "jdbc:mysql://localhost:56725"
      
       # current unsuported custom 
       f1 = "c2VhdHVubmVs"
       config1.f1 = "c2VhdHVubmVs"
       config2.list = ["c2VhdHVubmVsX3Bhc3N3b3Jk", "a", "b"]
     }
   }
   
   sink {
     console {
      
     }
   }
   ```
   
   # After changes
   We expect to be able to customize the encryption and decryption field list 
after the change
   
   - input
   ```
   env {
     parallelism = 1
     shade.identifier = "base64"
     shade.fields = ["f1", "config1.f1 ",  "config2.list[0]"]
   }
   
   source {
     test-source1 {
       username = "c2VhdHVubmVs"
       password = "c2VhdHVubmVsX3Bhc3N3b3Jk"
       database-name = "inventory_vwyw0n"
       table-name = "products"
       base-url = "jdbc:mysql://localhost:56725"
      
       # 
       f1 = "c2VhdHVubmVs"
       config1.f1 = "c2VhdHVubmVs"
       config2.list = ["c2VhdHVubmVsX3Bhc3N3b3Jk", "a", "b"]
     }
   }
   
   sink {
     console {
      
     }
   }
   ```
   
   - ouput
   ```
   env {
     parallelism = 1
     shade.identifier = "base64"
     shade.fields = ["f1", "config1.f1 ",  "config2.list[0]"]
   }
   
   source {
     test-source1 {
       username = "seatunnel"
       password = "seatunnel_password"
       database-name = "inventory_vwyw0n"
       table-name = "products"
       base-url = "jdbc:mysql://localhost:56725"
      
       # 
       f1 = "seatunnel"
       config1.f1 = "seatunnel"
       config2.list = ["seatunnel_password", "a", "b"]
     }
   }
   
   sink {
     console {
      
     }
   }
   ```
   
   
   update
   - Please update all testcase
   - Please update docs
   
   ### Usage Scenario
   
   _No response_
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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