我想为 spring-cloud-config 服务器设置 server.ssl.key-store-password ,配置将来自 GIT (application.yml)。
以下是我想在 application.yml 中配置的内容
server:
port: 8760
ssl:
key-store: path to .jks
key-store-password: '{cipher}encrypted password'
key-store-type: jks
key-password: '{cipher}encrypted password'
在引导配置服务器时,它使用 TextEncryptor FailsafeTextEncryptor 配置 EncryptionBootstrapConfiguration,当为 EnvironmentDecryptApplicationInitializer 调用解密函数时,它会失败。
我们如何为 EncryptionBootstrapConfiguration 自定义 TextEncryptor 以便我可以在启动 config-server 时使用 {cipher}