Skip to content

A lightweight library for syncing up with HashiCorp Vault using appId.

Notifications You must be signed in to change notification settings

mitch-warrenburg/spring-vault-loader

Repository files navigation

Spring Vault Loader

A lightweight library for syncing up with HashiCorp Vault using appId.

Usage:

Add the VaultContextInitializer

...
import com.github.vault.springvaultloader.spring.VaultContextInitializer;

@SpringBootApplication
public class MySecureApplication {

  public static void main(String[] args) {
    new SpringApplicationBuilder(HydraApplication.class)
        .initializers(new VaultContextInitializer("myNamespace", "myAppId", false))
        .run(args);
  }
}

Declare the following environment variables:

ENV=nonprod
APP_ROLE=myApp
ROLE_ID=00000000-0000-0000-0000-000000000000
SECRET_ID=00000000-0000-0000-0000-000000000000

Add spring-vault-loader dependency:

dependencies {
    implementation 'com.github.vault:spring-vault-loader:1.043'
}

PARTY!!!! 🎉🎉🎉

About

A lightweight library for syncing up with HashiCorp Vault using appId.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages