Over a million developers have joined DZone.

Spring Vault and Spring Cloud Vault 1.0.0.M1 Are Now Available

DZone's Guide to

Spring Vault and Spring Cloud Vault 1.0.0.M1 Are Now Available

Check out the first milestone releases of Spring Vault and Spring Cloud Vault 1.0.0.M1. See what the new features are and look at some of them in action.

· Java Zone
Free Resource

Bitbucket is for the code that takes us to Mars, decodes the human genome, or drives your next car. What will your code do? Get started with Bitbucket today, it's free.

On behalf of the community, I am pleased to announce the first milestone releases of Spring Vault and Spring Cloud Vault 1.0.0.M1.

The artifacts are available in the Milestone repo.

Spring Vault is a client for HashiCorp Vault that provides familiar Spring abstractions. It comes with @VaultPropertySource that exposes encrypted properties from Vault the Environment and VaultTemplate to access secrets stored and encrypted inside Vault.

public class AppConfig extends AbstractVaultConfiguration {

     * Specify an endpoint for connecting to Vault.
    public VaultEndpoint vaultEndpoint() {
        return VaultEndpoint.create("localhost", 8200);

     * Configure a client authentication.
    public ClientAuthentication clientAuthentication() {
        return new TokenAuthentication("…");

Spring Cloud Vault uses Spring Vault to provide a configuration integration for Spring Boot-based applications. Spring Cloud Vault provides configuration data to applications that is encrypted inside Vault. Applications using Spring Cloud Vault can request generated credentials from Vault for various database and service integrations, like MySQL, MongoDB, Consul, AWS, and many more. On application shutdown, these credentials are revoked and no longer valid.

Adding the spring-cloud-vault-starter-config dependency and supplying Vault connection details to the bootstrap configuration is sufficient to get started with Spring Cloud Vault.

    host: localhost
    authentication: (TOKEN|APPROLE|AWS_EC2|CERT|…)
    token: …


Without the community, we couldn’t be the successful project we are today. I’d like to thank everyone that created issues & provided feedback.

Feedback Please

If you have feedback on this release, I encourage you to reach out via StackOverflow, GitHub Issues, or via the comments section. You can also ping me @mp911 or the @SpringCloudOSS team on Twitter.

Check out any of these links for more details:

Bitbucket is the Git solution for professional teams who code with a purpose, not just as a hobby. Get started today, it's free.

spring ,java ,milestone

Published at DZone with permission of Mark Paluch. See the original article here.

Opinions expressed by DZone contributors are their own.


Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.


{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}