spring-cloud-vault-config

Spring Cloud Vault With k2 v2 - How to Avoid 403 at Startup?

穿精又带淫゛_ 提交于 2020-02-25 03:57:36
问题 Problem Does anyone know how to configure bootstrap.yml to tell Spring Cloud Vault to go to the correct path for k2 v2 and not try other paths first? Details I can successfully connect to my Vault, running k2 v2, but Spring Cloud will always try to connect to paths in the vault that don't exist, throwing a 403 on startup. Status 403 Forbidden [secret/application]: permission denied; nested exception is org.springframework.web.client.HttpClientErrorException$Forbidden: 403 Forbidden The above

Spring Cloud Vault With k2 v2 - How to Avoid 403 at Startup?

不羁的心 提交于 2020-02-25 03:57:07
问题 Problem Does anyone know how to configure bootstrap.yml to tell Spring Cloud Vault to go to the correct path for k2 v2 and not try other paths first? Details I can successfully connect to my Vault, running k2 v2, but Spring Cloud will always try to connect to paths in the vault that don't exist, throwing a 403 on startup. Status 403 Forbidden [secret/application]: permission denied; nested exception is org.springframework.web.client.HttpClientErrorException$Forbidden: 403 Forbidden The above

Spring Cloud Config and Spring Cloud Vault order of initialization

自闭症网瘾萝莉.ら 提交于 2020-01-25 07:56:05
问题 We are leveraging Spring Cloud Config and Spring Cloud Config Vault. We would like to know if there is a way to "bootstrap the bootstrap", ie we want spring cloud config server to be hit and then pull properties from that to leverage in our vault configuration. We looked at order, but it didn't appear to work, and I assume it is because of the post processing order, but I was hoping I might be missing something. 回答1: TL;DR It doesn't work. Explanation What Spring Cloud does with its bootstrap

Vault error while writing

久未见 提交于 2020-01-22 11:36:08
问题 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 use vault kv put command. While the example of Spring Cloud Config in this link shows the usage of vault write command This is the error i get is $ vault write secret/my-app foo=bar Error writing data to secret/my-app: Error making API request. URL: PUT http://127.0.0.1:8200/v1/secret/my-app Code: 404. Errors: WARNING! The following

Trying to get Spring/Consul/Vault to work together

假装没事ソ 提交于 2019-12-11 05:08:34
问题 I'm trying to do something I think is simple. I want to use Consul for configuration, and Vault for secrets. What I'm looking for is a simple app like this that allows me to get config and services from Consul, and secrets from Vault. In my example, Consul and Vault are connected, and I can see Vault in the Consul services and key-value store. In Postman, I can query Vault directly and see my data at {{vault_url}}/v1/secret/interservice-bus/data-categorizer Right now I cannot see Consul or

Difference between Spring Cloud Vault and Spring Cloud Config with Vault backend

柔情痞子 提交于 2019-12-01 06:39:08
问题 What is the difference between the followings? Spring Cloud Vault - http://cloud.spring.io/spring-cloud-vault/ Spring Cloud Config Server with Vault backend - http://cloud.spring.io/spring-cloud-static/Camden.SR4/#_spring_cloud_config_server 回答1: Spring Cloud Vault is more lightweight because it does not require to run a java server (Spring Cloud Config Server) as a frontend for Vault, your Spring Boot app connects directly to Vault. I have a small demo: https://github.com/gmarziou/demo