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

   I have a table here that automatically generates a new table per day by 
date, I now want to configure the same encryption rules for these tables, I 
tested using the wildcard *, but it doesn't work。
   
   tables for example sms_record_20230601, 
sms_record_20230602,sms_record_20230603,...sms_record_20230630,
   
   i have try this: 
   
   ```java
   EncryptColumnRuleConfiguration columnConfig2 = new 
EncryptColumnRuleConfiguration("dest_number", "dest_number_cipher", "", "aes");
               EncryptColumnRuleConfiguration columnConfig3 = new 
EncryptColumnRuleConfiguration("content", "content_cipher", "", "aes");
   
               Map<String, EncryptColumnRuleConfiguration> columnConfigMaps = 
new HashMap<>();
               columnConfigMaps.put("dest_number", columnConfig2);
               columnConfigMaps.put("content", columnConfig3);
               EncryptTableRuleConfiguration tableConfig = new 
EncryptTableRuleConfiguration(columnConfigMaps);
               encryptRuleConfig.getTables().put("sms_record*", tableConfig);
   ```
   
   I've read the documentation and searched Google, but I still don't have an 
answer, need help , thanks!


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