Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
20 views

Use multiple vault server or use different vault token for different credetials

We have one spring boot application in which we are having multiple client database in application.properties file. We are now trying to use vault server and we have a requirement to keep database ...
Viral Thakkar's user avatar
0 votes
0 answers
31 views

How to Embed Spring Config Server and Client in the same application?

I am trying to embed the spring config server and client in the same application. According to the spring documentation, I created a composite profile. I am getting the below error when I run the ...
vkr's user avatar
  • 13
0 votes
0 answers
25 views

Connect to Hashicorp Vault in Spring Boot API via PCF Config server

I'm working on moving the authentication credentials from my application config to HashiCorp vault. I was able to connect to vault with Vault configs in the application.yml or bootstrap.yml. But when ...
Spartan's user avatar
  • 339
0 votes
1 answer
78 views

What's the safest way to get the Vault Token for local development with Spring Boot / Spring Cloud Vault

When running Spring Boot locally, I'm using the default TOKEN based authentication with the spring-cloud-starter-vault-config dependency. Running vault login -method oidc saves a fresh vault token to ~...
Chris's user avatar
  • 4,558
0 votes
0 answers
131 views

Accessing Hashicorp Vault secrets within namespaces from Spring boot 3.2.X

I am trying to access Hashicorp Vault secrets from Spring boot application and getting 403 forbidden error. : org.springframework.vault.VaultException: Status 403 Forbidden [secret/secret]: permission ...
souvikc's user avatar
  • 1,031
1 vote
0 answers
52 views

Unable to read vault properties

I have configured my spring application to use vault with authentication based on approle. I have disabled bootstrapping. Handling approle based authentication programmatically. Following are the ...
Alok's user avatar
  • 11
0 votes
0 answers
46 views

Spring Vault: Why @VaultPropertySource not getting highest precedence?

Context trying to fetch secrets from Hashicorp Vault, instead of hardcoding in properties file What I have tried I am following Spring Vault docs https://docs.spring.io/spring-vault/reference/vault/...
Somjit's user avatar
  • 2,723
1 vote
0 answers
266 views

After upgrading spring-cloud-starter-vault-config to 4.1.0 from 3.1.0 and upgrading spring boot to latest version authentication is failing for vault

These are my vault configuration spring.cloud.vault.enabled=true spring.cloud.vault.uri: pointing to valut server spring.cloud.vault.connection-timeout: 5000 spring.cloud.vault.read-timeout: 15000 ...
sumukh sharma's user avatar
0 votes
0 answers
56 views

PropertySourcesPlaceholderConfigurer and spring vault

I have 2 property sources file system and vault. i am using PropertySourcesPlaceholderConfigurer to read data from file. Now to initialize vault (url etc) is coming from file. So vault is not ...
Sanjay's user avatar
  • 303
0 votes
0 answers
68 views

Is Spring Vault compatible with both HashiCorp Vault and HashiCorp Vault Secrets?

As I understand it, HashiCorp Vault and HashiCorp Vault Secrets are two different products. Does Spring Vault work with both? I have my secret in HashiCorp Vault Secrets and I can't figure out how to ...
zachary parikh's user avatar
0 votes
1 answer
742 views

Can not read configurations from vault in spring boot application

I am trying to read two simple values from vault in spring boot app. no success and I do not know why. here is my code: pom.xml: <?xml version="1.0" encoding="UTF-8"?> <...
mahdad aioby's user avatar
-1 votes
1 answer
68 views

Customise ObjectMapper to serialise LocalDateTime properly

I am using Spring Vault in my project and trying to store a serialised representation of LocalDateTime (ISO date time format) as a secret data in Vault. However, the ObjectMapper used inside Spring ...
adarshr's user avatar
  • 62.4k
0 votes
1 answer
353 views

Create a wrapped Token to access Hashicorp Vault | Spring Boot

I want to create a wrapped token programmatically from my Spring Boot application in order to read/write key-value pairs to/from Hashicorp vault. I have gone through the documentation. Currently I am ...
sam's user avatar
  • 1,924
0 votes
0 answers
115 views

Support for SHA256withECDSAinP1363Format signing algorithm in hashicorp vault transit engine

We have created a encryption key of type ecdsa-p256 and We have successfully created signature with SHA256withECDSA and public key received while creation. But want to use signing algorithm ...
yash srivastava's user avatar
2 votes
0 answers
359 views

Unable to access secrets from Hashicorp Vault Cubbyhole | Spring Boot

I am trying to access secrets from the Cubbyhole engine by dynamically creating a token having use-limit, policy and ttl. After incorporating the changes in the answers, the exception has changed to: ...
sam's user avatar
  • 1,924
1 vote
1 answer
243 views

Unable to set Vault host in Spring Boot Config Server

I have a Spring-Boot config server with a file system and Vault backend. I'm trying to point the Vault host to myvaultserver.com but I can't seem to use the uri property key so I always end up with a ...
workacct2's user avatar
4 votes
0 answers
186 views

Replace Env Variables Placeholder in spring config server native mode with vault secret

I am currently working in a scenario where I need to use spring cloud config server for centralised config management. Previously we were using the "native" mode to store the configurations ...
animo3991's user avatar
  • 311
0 votes
1 answer
248 views

Hashicorp Vault password access using Spring boot vault

In my application we are making two calls from my app for getting secrets from Vault, as shown below: Test in Postman Login to Vault : POST call to https::/v1/auth/approle/login -- It will take ...
Rajesh Sharma's user avatar
0 votes
0 answers
228 views

How to mock bean before ConfigDataLoader in SpringBootTest

Config file processing has been changed in Spring Boot 2.4. It allows to eliminate bootstrap configuration and use spring.config.import instead together with some specific locations like vault://…​. ...
Alex's user avatar
  • 5,849
2 votes
0 answers
211 views

spring.cloud.vault.config.lifecycle.enabled not working

Spring cloud vault keeps trying to renew token but I want to forbid it from doing so. When I was using spring 2.3.x I could just set spring.cloud.vault.config.lifecycle.enabled=false but it does not ...
Shuyang Ji's user avatar
1 vote
2 answers
1k views

Vault server, how to programmatically put key/value to vault server using Java or Spring framework

I want to store some secrets/credentials during runtime in my application, similar to the following command. vault kv put -path=secret/application key1=val1 I have reviewed the HashiCorp SDK, but it ...
xX_Xeno_Blade_Xx's user avatar
3 votes
0 answers
782 views

Secrets are not read from the vault after migrating to Spring Boot 3 - Getting an error

We are in process of migrating spring boot 3 from 2.7.7(We did an incremental upgrade from 2.6.8 to 2.7.7 and then to 3.0.0). We have almost got our application working except for the secrets are not ...
Arun's user avatar
  • 31
0 votes
1 answer
622 views

Status 400 Bad Request: failed to revoke entry... cannot be dropped because some objects depend on it (SQLSTATE 2BP01);

I have configured my spring boot application to obtain the database credentials from the vault database backend. This is working fine when I run it with the vault in 'vault for development mode'. But, ...
udani's user avatar
  • 1,307
1 vote
1 answer
948 views

Spring Vault can't validate self-signed cert signed by self-signed CA after upgrading from Spring Boot 2.7.x -> Spring Boot 3.0.0

I am running Spring Boot app using a self-signed CA cert to verify Vault certificate that is signed by the self-signed CA. This setup has worked with Spring Vault until upgrading from Spring Boot 2.7....
Laurenzo's user avatar
  • 575
0 votes
1 answer
3k views

Disable vault spring boot

I have a spring boot project where I wanted to disable the vault conditionally. <dependency> <groupId>org.springframework.vault</groupId> <artifactId>spring-vault-core</...
Piyush Singh's user avatar
1 vote
0 answers
326 views

Spring Cloud Vault Config Secretes Backend AWS SocketTimeoutException

I have a Spring Boot + Kotlin microservice that gets the AWS credentials to connect to DynamoDB from Vault. But randomly the Vault implementation is throwing a SocketTimeoutException while renewing ...
Randy Hector's user avatar
2 votes
1 answer
2k views

Using multiple types of Vault secrets in one Spring boot application

Consider the following application.properties file of a Spring Boot application. # Spring configuration parameters spring.application.name=MyApplication server.port=${SERVICE_PORT:8080} # SSL ...
KDW's user avatar
  • 515
0 votes
2 answers
2k views

Vault UserPass authentication with Spring boot

I need to connect to Vault from my spring boot microservice. To get the vault token, the service needs to login to vault by providing username and password. Spring-vault integration doesn't support ...
Antony Vimal Raj's user avatar
2 votes
0 answers
299 views

How to decrypt a ciphertext locally using Java / Kotlin from an exported key that supported convergent encryption in hashicorp vault?

I have a usecase where I would want to keep a backup of the encryption keys in case the vault server goes down and decrypt it locally. I am using Hashicorp Transit Secrets Engine, and to test it out I ...
Wasae Shoaib's user avatar
0 votes
0 answers
2k views

Spring cloud config and Vault Integration

I'm trying to read secret values using spring vault. All the properties for client application is stored in github and spring config server is used to access the properties. When I add the vault ...
DxG's user avatar
  • 197
2 votes
0 answers
1k views

How to implement Spring Cloud Vault with multiple paths using different roles?

I already have Spring Cloud Vault set up to read from multiple paths that have a common role but now I have a requirement to read from multiple paths that may have differing roles. My existing ...
Al Pal's user avatar
  • 325
0 votes
1 answer
371 views

How do i get Spring Vault to trust a custom TLS chain provided as PEM

I am currently using Spring Vault with TLS, which works fine. My problem is that I need to support a custom TLS chain to connect to a client's Vault instance. Using a jks is not an option, my only ...
Cerbis's user avatar
  • 515
1 vote
1 answer
3k views

Unable to instantiate VaultConfigDataLoader

I'm trying to configure Spring Cloud Vault in my Spring Boot application (v. 2.4.2). I'm using Spring Cloud v. 2020.0.5 (which, according to the Release train, should be fine). C:\Tools\jdk1.8.0_92\...
Ionut's user avatar
  • 113
0 votes
1 answer
3k views

spring cloud vault not working in newer versions

I am trying to make working hashicorp vault deployed on azure's AKS cluster with spring boot. I tried code from this blog post: blog post which works fine, but when I will change versions for: <...
FrancMo's user avatar
  • 2,649
0 votes
1 answer
551 views

Can Spring Vault support Azure Key Vault?

From the Spring Vault official site, it supports HashiCorp’s Vault, and there are some examples with HashiCorp’s Vault. Does it support Azure Keyvault natively? From the azure document, springboot ...
Simon Liu's user avatar
3 votes
0 answers
2k views

How to disable SSL Verification in Spring Vault (Spring Vault Core - version: 2.3.1)

I am getting below exception: Cannot login using org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://<kmaas_domain>:443/v1/auth/aws/login": ...
dishansh's user avatar
0 votes
0 answers
2k views

unable to load secrets from vault when spring.cloud.vault.config.lifecycle.enabled is set to false

I am using spring cloud starter vault config of version 2.2.5.RELEASE for connecting to my secured vault server which is working on approle authentication mechanism, i observed that if i setup value ...
Mahendra Tonape's user avatar
2 votes
0 answers
635 views

In Spring vault is it possible to get events when the database credentials are rotataed with static role type through hashicorp vault

I'm using Spring vault to fetch the database credentials from hashicorp vault. Using SecretLeaseContainer and LeaseListener i'm able to get the events when the credentials are rotated for Dynamic ...
Pitchu's user avatar
  • 47
1 vote
1 answer
1k views

Config server with Vault backend - fetch secrets from multiple paths

We are using config server with Vault backend to fetch application secrets. Config server project is using spring-vault-core dependency and spring-vault-dependencies dependency management for Vault. ...
Abhijit Kumar's user avatar
1 vote
1 answer
933 views

How to disable SSL verification in Spring Vault

I'm trying to configure Spring vault, and for some reason, I need to disable SSL verification. Is there any known way to configure Spring Vault to ignore SSL?
meldevep's user avatar
  • 818
1 vote
1 answer
689 views

Adding keys to Spring Boot vault

I am implementing Spring Boot vault. Whenever I try to add more than one key, only the last one is saved. For example, at this page, https://www.javainuse.com/spring/cloud-vault, they have this ...
Peter Kronenberg's user avatar
0 votes
0 answers
325 views

Autowired beans in EnvironmentProcessor are null

I am using spring-vault and specified PostProcessor that supposed to do some custom operations on Vault @Profile("cloud") @Component public class VaultPostProcessor implements ...
lapots's user avatar
  • 13.2k
1 vote
0 answers
600 views

actuator/refresh path not updating @value variables when use spring cloud vault

When I update a property in the vault and call actuator / refresh, it still shows an older value. I use spring boot and spring cloud. <spring-cloud-dependencies.version>2020.0.3</spring-cloud-...
oguzhanonder7506's user avatar
0 votes
1 answer
1k views

Spring Vault returns null

I am very new to Spring Vault, and so I followed a lot of guides and YouTube videos. The problem I am facing is that I think, I am able to access the vault but when I try to retrieve the values from ...
Thinh Pham's user avatar
2 votes
1 answer
2k views

How to group membership search in Hashicorp Vault

I'm trying to set up a demonstration of the Vault as a solution to my company's security concerns about very sensitive user data. I've added the ldap authentication and I'm able to login with any ldap ...
Bonana's user avatar
  • 65
1 vote
1 answer
2k views

Vault login token expiring unexpectedly

We operate a containerized Spring Boot application. In order to access third party APIs, secrets to those APIs are kept in a Vault instance. Our application connects to Vault via Spring Vault Core ...
ngc4579's user avatar
  • 69
1 vote
1 answer
7k views

Spring boot cloud vault does not load properties anymore after update to version 3.0.3

I'm facing the same problem as bootstrap.yml configuration not processed anymore with Spring Cloud 2020.0. I updated spring boot cloud to the version 3.0.3. My config is: spring: config: import: ...
sge's user avatar
  • 643
1 vote
1 answer
2k views

Using Spring Cloud Vault and ConfigData API with multiple profile files

I have 5 profiles for my Spring Boot application application.yml application-prod.yml application-stg.yml application-dev.yml application-local.yml One default config and 4 for different environments....
siim's user avatar
  • 365
2 votes
1 answer
2k views

Spring Vault Integration - read secrets from multiple paths

Is it possible to read secrets stored under multiple paths/contexts in Vault from Spring Boot application? I assume, profiles should be used, but not sure and still didn't manage to configure profiles....
Ivan's user avatar
  • 195
0 votes
0 answers
350 views

Spring Cloud Vault with GCP-IAM Auth Method for multiple projects

I have some issue, wasn't able to find any docs, maybe I'm missing something. We are going to use this method. I've deployed some service and Vault in GKE in one project and it works fine. I used this ...
Rafik Alimardanov's user avatar