Vault error while writing

前端 未结 4 856
心在旅途
心在旅途 2021-02-07 23:01

I wanted to test Spring Cloud Vault configuration.

I installed a Vault server locally and when i try to write some key-values its failing and asking me to u

4条回答
  •  伪装坚强ぢ
    2021-02-07 23:48

    I was able to write after enabling a separate path with the below command

    vault secrets enable -path=my-app kv
    vault write my-app/my-app password=123
    

    In Spring Cloud Config, i had to mention the folder name as backend in bootstrap.yml file

    spring:
      cloud:
        vault:
          token: bc53d1a4-2551-4869-9574-7a9e60501ec1
          scheme: http
          generic:
            backend: my-app
    

提交回复
热议问题