【问题标题】:Spring Cloud Config : Password not getting decrypted with jasypt in spring cloud config client when actuator/refresh endpoint is calledSpring Cloud Config:当调用执行器/刷新端点时,密码未在 Spring Cloud 配置客户端中使用 jasypt 解密
【发布时间】:2020-07-19 16:54:26
【问题描述】:

我正在设置 spring 云配置服务器 (2.2.0.RELEASE) 和使用 git 作为存储库的配置客户端。 此外,我正在使用 jasypt-spring-boot-starter (2.1.2) 对属性文件中的值进行加密。

示例 - 在 app.properties 中

   password: ENC(cppertuvnh)

当配置首次从配置服务器加载时,加密值(即密码)在配置客户端得到正确解密,但后来当我调用执行器/刷新端点时,加密值按原样传递而不是在配置客户端中解密。

在调用刷新端点后,jasypt 是否有办法再次解密 spring config 客户端中的属性?

【问题讨论】:

    标签: spring-boot spring-cloud spring-cloud-config jasypt spring-cloud-config-server


    【解决方案1】:

    新版本3.0.3修复了这个问题:

    Update 05/31/2020: Version 3.0.3 Release Includes
    Minor bug fixes
    Documentation fixes
    Refresh event fix for spring cloud config
    

    https://github.com/ulisesbocchio/jasypt-spring-boot#update-05312020-version-303-release-includes

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-06-26
      • 2017-10-23
      • 2018-07-29
      • 1970-01-01
      • 2021-10-07
      • 2015-07-13
      • 2019-03-20
      • 2016-09-26
      相关资源
      最近更新 更多