Questions tagged [spring-vault]

Spring Vault provides familiar Spring abstractions and client-side support for accessing, storing and revoking secrets from HashiCorp Vault.

Spring Vault provides familiar Spring abstractions and client-side support for accessing, storing and revoking secrets. It offers both low-level and high-level abstractions for interacting with Vault, freeing the user from infrastructural concerns.

With HashiCorp’s Vault you have a central place to manage external secret data for applications across all environments. Vault can manage static and dynamic secrets such as application data, username/password for remote applications/resources and provide credentials for external services such as MySQL, PostgreSQL, Apache Cassandra, Consul, AWS and more.

Features

  • Spring configuration support using Java based @Configuration classes.
  • VaultTemplate and ReactiveVaultTemplate helper classes that increase productivity performing common Vault operations.
  • Exporting Vault secrets as PropertySource through @VaultPropertySource.
  • Support multiple authentication methods.
  • Rotation of secrets for databases and messaging services.
  • Feature Rich Object Mapping integrated with Spring Data Repositories.
  • Annotation based mapping metadata but extensible to support other metadata formats.

Online Resources:

125 questions
0
votes
0 answers

How to enable refreshing vault properties in an application using Spring Cloud Vault Kubernetes authentication

Kubernetes used to issue long-lived service account tokens. at some point this behavior was changed to issue 1hr tokens. when a token expires, the file contents of the service account token file (/var/run/secrets/kubernetes.io/serviceaccount/token)…
Dave Ankin
  • 1,060
  • 2
  • 9
  • 20
0
votes
2 answers

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 only provides a write command that overrides…
0
votes
1 answer

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, now I am trying to get it to work when the vault…
udani
  • 1,243
  • 2
  • 11
  • 33
0
votes
0 answers

Hw to configure spring vault to authenticate with a JWT token

I'm trying to use spring-vault-core and (optionally) spring-cloud-starter-vault-config to connect to a vault using a JWT token as the auth mechanism. From the documentation, you can request a token from /auth/jwt/login. Currently, the code I've…
Ben Green
  • 3,953
  • 3
  • 29
  • 49
0
votes
0 answers

Spring Boot Vault Permanently remove record

How can I permanently remove a record from the vault via VaultTemplate (VaultOperations)? When I simply autowire VaultTemplate.class in my service class and try to remove, then the record data was removed but key still exits.
VadOS
  • 41
  • 3
0
votes
1 answer

Disable vault spring boot

I have a spring boot project where I wanted to disable the vault conditionally. org.springframework.vault spring-vault-core 2.2.3.RELEASE The version…
Piyush Singh
  • 533
  • 5
  • 17
0
votes
0 answers

Injecting a list of values into a @VaultPropertySource is not working

I am using spring-vault-core. I have create some list type properties in my appilication.propertis and I am trying to inject it into a member type @VaultPropertySource in one of my classes with no success , I tried different ways and none of them…
0
votes
2 answers

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 this behaviour by default. I came across this SO…
0
votes
0 answers

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 configuration to client application bootstrap.yml as…
0
votes
1 answer

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 option is to use PEM files. I've read that Spring…
Cerbis
  • 515
  • 1
  • 4
  • 13
0
votes
1 answer

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
  • 2,459
  • 2
  • 19
  • 39
0
votes
1 answer

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 starter is com.azure.spring
Simon Liu
  • 1
  • 1
0
votes
0 answers

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 to false for property…
0
votes
0 answers

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 EnvironmentPostProcessor, Ordered { private static final String…
lapots
  • 12,553
  • 32
  • 121
  • 242
0
votes
1 answer

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 the vault it returns null for me. So in my Spring…
Thinh Pham
  • 21
  • 4
1 2 3
8 9