【发布时间】:2016-10-17 05:49:24
【问题描述】:
我想为 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,以便我可以在启动配置服务器时使用 {cipher}
【问题讨论】:
-
你有没有想过这个问题?我现在面临着完全相同的问题。
标签: spring-boot spring-cloud-netflix spring-cloud-config