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
1
vote
0 answers

Spring Cloud Config resolve secret propertiers via Vault and Git

I want to use this scheme. I have git repo with some config files, which contains secret props, eg. password. And I have Vault witch secrets. I want the spring cloud server to go to the repository and take the properties, and then go through the…
1
vote
2 answers

Best way to connect spring boot application to VAULT using LDAP authentication method

I am trying to connect my Java application to Enterprise Vault using LDAP authentication method. spring won't provide a direct way to connect with like it provide…
1
vote
1 answer

Problem using Spring Cloud Vault with @DynamicPropertySource

When using TestContainers to start a Vault container, the port that is exposed by the container is randomly selected during startup. @Container static VaultContainer vaultContainer = new VaultContainer<>("vault:1.7.2") .withVaultToken(TOKEN) …
1
vote
0 answers

Spring Cloud 2020.x how to load Cloud Foundry environment variables

Since the bootstrap context has been deprecated in 2020.x what is the recommended way to load Cloud Foundry environment variables. Do I still need to enable bootstrap support or can I just load them in application.yml? (doesn't seem to work for…
1
vote
0 answers

Intermittent Hashicorp Vault with spring cloud Mongo

Almost all of our applications here use SpringCloud in a Kubernetes eco-system and now, due to security reasons, we decided to use the Hashicorp Vault too. All the things seem to be working but we have an intermittent database connection when we're…
1
vote
1 answer

Spring Cloud and vault integration error Caused by: java.lang.ClassNotFoundException: ConfigurationBeanFactoryMetadata

I am trying to integrate my spring boot application with the vault. I have unsealed my vault and added a secret also in the vault. But while running my integration spring boot code with mvn spring-boot:run, I am getting the below error : Basically,…
1
vote
0 answers

Spring Cloud Vault Secret reading error as permission denied

I am unable to read secrets with vault when I upgrade spring version from 2.0.3.RELEASE to 2.3.5.RELEASE It works fine with 2.0.3.RELEASE (with secret path, secret/data/{app-name}), but with 2.3.5.RELEASE, path is changed to…
1
vote
2 answers

@VaultPropertySource caused VaultAutoConfiguration failure

I'm using Spring-Boot 2.4.0 and org.springframework.cloud:spring-cloud-starter-vault-config:3.0.0 Upon successful startup, I found the following thing @Bean public Object see(@Value("${credentials}") String secretFromVault, VaultTemplate tpl) throws…
sancho21
  • 3,511
  • 1
  • 39
  • 45
1
vote
3 answers

Not able to disable Spring Vault during unit tests in Java

I've disabled the spring vault in my unit tests. But however, its still enabling it and running in the back ground. This is my code. Is there any issue in the below code @RunWith(SpringRunner.class) @SpringBootTest(properties =…
Syed
  • 2,471
  • 10
  • 49
  • 89
1
vote
1 answer

No DiscoveryClient found during Spring bootstrap of cloud-vault-config

I'm using spring-cloud-starter-vault-config to pull secrets from vault. I'm able to get this working just fine with Config First Bootstrap. When I try and enable service discovery so I can get the vault instances from consul, I get an Error: Error…
1
vote
2 answers

Forbidden errors at app initialization when using spring cloud vault

Using Spring Cloud HOXTON.SR6, with Spring boot 2.3.2 When initiating the service, i get 403 errors trying to access "/secret/application" and "/secret/application/{profile}". The "application" in those paths should be replaced by my application…
1
vote
1 answer

Gradle could not resolve org.springframework.vault:spring-vault-core

I have a project that adopts Spring Vault to fetch credential. Dependencies of the project are as following and build.gradle file is generated automatically afterwards. When I build the project I got the error Could not…
1
vote
1 answer

Spring Cloud Vault mutual TLS authentication issue

I am trying to set up a spring boot application to talk to my Vault server over TLS. I want to use mutual certificate authentication. I could set up the Vault server with TLS and I am able to use the CLI to login to it using client certificates.…
1
vote
1 answer

How to specify vault endpoint In springboot vault configuration without application name

In spring boot I wanted to read the properties from vault but I wanted to read vaulr secret token and the full path of the configuration endpoint from environment variable. But if I give spring.cloud.vault.uri it is not working and for fetching…
rahul
  • 406
  • 1
  • 5
  • 14
1
vote
1 answer

Read database password from Vault in grails app

I am trying to read the database password from Vault so that it is not visible in Environment variables in grails 3. Previously we were reading all database configs from environment variables in application.groovy like below; dataSource { pooled =…
Sikander
  • 834
  • 2
  • 10
  • 33
1 2 3
8 9