Skip to content

Conversation

arjavdongaonkar
Copy link
Contributor

  • Add Maven profile useVault which adds Spring Vault Core dependency to enable Vault integration in the Spring Cloud Kubernetes Config Server.

you will need to include the namespace in which the Config Server is deployed in order to continue to fetch Config Map and Secret data from that namespace.

### Vault Integration
To enable Vault integration, you can activate the vault Maven profile by setting the `useVault` property to true. This profile adds the `spring-vault-core` dependency.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to use a flag we can just enable the profile. This is how I would suggest we write this.

Using Advanced Features Of Spring Vault

In order to use some of the more advanced Spring Vault features of the Spring Cloud Config Server, spring-vault-core must be on the classpath. By default Spring Cloud Kubernetes can build a Docker image to deploy the Config Server to Kuberentes but it does not add spring-core-vault to the classpath. If you need spring-core-vault on the classpath to enable certain functionality in the Config Server you can build your own version of the Docker image by enabling the vault Maven profile when running the Maven build.

[source,bash]

$ ../../mvnw clean instal -Pvault

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, Please check.

Signed-off-by: Arjav <arjavdongaonkar@gmail.com>
Signed-off-by: Arjav <arjavdongaonkar@gmail.com>
Signed-off-by: Arjav <arjavdongaonkar@gmail.com>
@arjavdongaonkar arjavdongaonkar force-pushed the chore/add-spring-vault-core branch from 3fa95fd to 100c15b Compare February 11, 2025 09:14
@ryanjbaxter ryanjbaxter linked an issue Feb 13, 2025 that may be closed by this pull request
@ryanjbaxter ryanjbaxter merged commit f1c7e9d into spring-cloud:3.1.x Feb 13, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Maven Profile To Config Server To Include spring-vault-core

3 participants