从保管库获取Cloud Config凭据

时间:2019-01-14 18:48:53

标签: spring-boot

我希望能够将我的Cloud Config凭据存储在Hashicorp的保险柜中。我已经使用Spring Boot应用程序成功连接了这两个应用程序,但始终始终先连接到Cloud Config服务器。

我已经尝试在bootstrap.yml的Vault配置部分中添加“ order:1”,但似乎没有任何作用。

我检查了一些事情,因为我的雇主可能认为它们很敏感。

spring:
    application:
        name: *****
    cloud:
        config:
            uri: *****
            enabled: true
            label: *****
            username: ${account.username.short} # this is what I'd like to store in Vault and access here
            password: ${account.password}
        discovery:
            enabled: true
        vault:
            config:
                order: 1
            uri: *****
            authentication: TOKEN
            token: *****
            generic.enabled: false
            kv:
                enabled: true
                application-name: *****
                backend: kv
                default-context: null
    rabbitmq:
        dynamic: true

它应该使用Vault中的用户名和密码登录到SCC服务器,但不是。

0 个答案:

没有答案
相关问题