A lightweight library for syncing up with HashiCorp Vault using appId.
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!!!! 🎉🎉🎉