commons-configuration-vault-parent

Hashicorp Vault integration for Apache Commons Configuration

License

License

Categories

Categories

Configuration Application Layer Libs config
GroupId

GroupId

com.nerdynick
ArtifactId

ArtifactId

commons-configuration-vault-parent
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

pom
Description

Description

commons-configuration-vault-parent
Hashicorp Vault integration for Apache Commons Configuration
Project URL

Project URL

https://github.com/nerdynick/commons-configuration-vault
Source Code Management

Source Code Management

https://github.com/nerdynick/commons-configuration-vault

Download commons-configuration-vault-parent

How to add to project

<!-- https://jarcasting.com/artifacts/com.nerdynick/commons-configuration-vault-parent/ -->
<dependency>
    <groupId>com.nerdynick</groupId>
    <artifactId>commons-configuration-vault-parent</artifactId>
    <version>1.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.nerdynick/commons-configuration-vault-parent/
implementation 'com.nerdynick:commons-configuration-vault-parent:1.0'
// https://jarcasting.com/artifacts/com.nerdynick/commons-configuration-vault-parent/
implementation ("com.nerdynick:commons-configuration-vault-parent:1.0")
'com.nerdynick:commons-configuration-vault-parent:pom:1.0'
<dependency org="com.nerdynick" name="commons-configuration-vault-parent" rev="1.0">
  <artifact name="commons-configuration-vault-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.nerdynick', module='commons-configuration-vault-parent', version='1.0')
)
libraryDependencies += "com.nerdynick" % "commons-configuration-vault-parent" % "1.0"
[com.nerdynick/commons-configuration-vault-parent "1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.30
com.bettercloud : vault-java-driver jar 5.1.0

Project Modules

  • commons-configuration2

commons-configuration-vault

Hashicorp Vault integration for Apache Commons Configuration.

Maintainability Travis CI: Build Status

Getting Started

Maven Dependency

<dependency>
    <groupId>com.nerdynick</groupId>
    <artifactId>commons-configuration2-vault</artifactId>
    <version>${version}</version>
</dependency>

Basic Usage

Example Config File:

credentials:
  username: "${vault:my/path:my.username}"
  password: "${vault:my/path:my.password}"

Example Java Usage:

final Vault myVault = new Vault(new VaultConfig()
    .address("http://vault.example.com")
    .token("my-token")
    .build());

final MapConfiguration configs = new MapConfiguration(new HashMap<>());
configs.getInterpolator().registerLookup("vault", new VaultLookup(vault));

See Vault Java Driver docs for more examples and details on how to create the Vault Client.

Packaged with this library is also a utility, VaultConfigUtils.java, to assist with creating VaultConfig and SslConfig instances using commons-configuration.

Versions

Version
1.0