Spring Config Server:从保险柜中选择git凭证

时间:2018-07-09 08:38:53

标签: spring spring-cloud-config

我能够在git仓库中设置配置后端:

spring:
  cloud:
    config:
      server:
        git:
#          username: user
#          password: '{cipher}passwd'

我认为在bootstrap.yml文件中直接提供用户名和密码并不是一个好主意。

我希望他们是从保险柜中领取的。

有可能吗?

1 个答案:

答案 0 :(得分:0)

您可以使用Spring Cloud Vault这样做,Spring提供了入门指南here