Questions tagged [spring-cloud-vault-config]

Spring Cloud Vault Config provides client-side support for HashiCorp's Vault secret management in a distributed system.

Spring Cloud Vault Config provides client-side support for HashiCorp's Vault secret management in a distributed system.

https://cloud.spring.io/spring-cloud-vault/

128 questions
12
votes
4 answers

Vault error while writing

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…
Arun
  • 3,440
  • 11
  • 60
  • 108
11
votes
1 answer

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

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
10
votes
3 answers

Configuring Spring Cloud Vault Config to pull from a location other than /secret

I am currently integrating Spring Cloud Vault Config into a Spring Boot application. From the home page: Spring Cloud Vault Config reads config properties from Vaults using the application name and active…
Bill
  • 347
  • 4
  • 13
7
votes
3 answers

failed to create client: parse "http://127.0.0.1:8200": first path segment in URL cannot contain colon in Hashi-corp Vault

I am getting below error when executing the following commands from windows using Hashi-Corp vault. failed to create client: parse "http://127.0.0.1:8200": first path segment in URL cannot contain colon C:\Softwares\vault_1.0.1_windows_amd64>set…
PAA
  • 1
  • 46
  • 174
  • 282
4
votes
3 answers

How to store secrets of a Spring Boot application in HashiCorp Vault securely?

I've read following tutorial:Vault Configuration Ok we installed the Vault server and put 2 pairs of secret properties: $ vault kv put secret/gs-vault-config example.username=demouser example.password=demopassword $ vault kv put…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
4
votes
1 answer

How to know the validity of a vault token that is being used for connecting to vault?

Currently, I am connecting to a corporate vault service where I am using a vault token and passing it through below header in my spring cloud config service where properties of all microservices are kept. curl -X "GET"…
viveknaskar
  • 2,136
  • 1
  • 20
  • 35
4
votes
1 answer

Dynamically operate on application properties - vault settings (or any other values)

I would like to be able to flexibly choose between 3rd party components my application is using. ATM I have hardcoded…
Mithrand1r
  • 2,313
  • 9
  • 37
  • 76
4
votes
3 answers

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

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…
John Gordon
  • 2,181
  • 5
  • 28
  • 47
3
votes
0 answers

ConfigServerHealthIndicator - Health check failed

I have native and vault profiles enabled in config server. spring: main: allow-bean-definition-overriding: true profiles: active: native, vault Because of this the actuator endpoints are not working. How can I have the actuator…
3
votes
0 answers

Spring Cloud Vault with Spring Boot 2.4+ config not working as expected

I have a Spring Boot project that gets properties and passwords from vault. In Spring Boot 2.4 and later, the team has decided to change way to load config files. Now we need to use Spring Config Data to load this. After reading through docs and…
Pavan Jadda
  • 4,306
  • 9
  • 47
  • 79
3
votes
1 answer

Encrypt sensitive data with Spring Boot

Hello to all I did a lot of research on encrypting important data such as credit card numbers in Spring Boot, and three ways to securely encrypt data caught my attention: Protect secrets with Hashicorp Vault Column-level encryption Data Encryption…
3
votes
2 answers

Spring boot cannot read Vault secret: IllegalArgumentException Could not resolve placeholder

Below is my bootstrap.yml file: spring.application.name: backend spring.cloud.vault: host: localhost port: 8200 scheme: http authentication: token token: root My secrets are located at secret/backend I am trying to read these secrets in…
3
votes
1 answer

When would I need to use Spring Cloud Config with Vault instead of just using Spring Cloud Vault?

I'm in a project where we're using Spring Cloud Config Server with Vault backend and I don't know why we need the cloud config server. Before I attempt to move this to a simpler implementation with Spring Cloud Vault, I want to know if there is a…
3
votes
1 answer

how to retrieve old versions of keys using spring-cloud-vault?

I'm using spring-cloud-vault to retrieve the versioned kv from the vault server. When I'm using the environemnt.getSecret("key1") then it returns only the latest versions of key for example world2. Is there any way to retrieve the old versions of…
3
votes
1 answer

Spring Cloud Vault - Best place to store the Secret-Id and Role-Id

I am using Spring Cloud Vault Library to access my Secrets from the Vault server. Currently I am storing all the parameters, such as role-id, secret-id, host, port, etc..., as Environment Variables and then injecting that in to my bootstrap.yml of…
Arun
  • 3,440
  • 11
  • 60
  • 108
1
2 3
8 9