Vault error while writing

前端 未结 4 874
心在旅途
心在旅途 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:23

    Try the following ..

    ./vault kv put secret/my-app password=123
    

    I'll add that this is something new in 0.10.0.

    Seems like 0.10.0 has some breaking API changes ... so solution #2 is to use an earlier version of Vault (v0.9.6). This includes defaulting to the v2 of the KV secret engine , which is versioned.

    Solution #3 is to re-create the /secret engine with v1 of KV. Running the following:

    ./vault secrets disable secret 
    ./vault secrets enable -version=1 -path=secret kv
    

提交回复
热议问题