linghengqian commented on issue #32695:
URL: 
https://github.com/apache/shardingsphere/issues/32695#issuecomment-2311425665

   - If you are using ShardingSphere's JDBC driver, I have exposed an SPI to 
dynamically define YAML properties at 
https://shardingsphere.apache.org/document/current/cn/user-manual/shardingsphere-jdbc/yaml-config/jdbc-driver/known-implementation/
 . 
   - Currently, there are only two implementations for dynamically reading 
properties: `system properties` and `environment variables`, and the unit tests 
at 
https://github.com/apache/shardingsphere/tree/master/test/native/src/test/resources/test-native/yaml
 are using it extensively.
   - If you want to encrypt custom YAML attributes, it really depends on how 
you want to do it in your custom SPI implementation. You can put the encryption 
and decryption logic functions in the custom YAML attribute SPI implementation, 
or put the logic functions that read custom YAML attributes from HDFS, S3 
buckets, or a database in the custom SPI implementation.
   - Java SE 22.0.2's JAAS can even dynamically monitor custom YAML attributes 
carried by kerberos, SASL DIGEST-MD5, LDAP, SAML , JWT and PAM. Of course, the 
JAAS API is a bit anti-human.


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