Skip to content

Platform-agnostic config management demo with Consul and Vault

Notifications You must be signed in to change notification settings

steve-perkins/config-client-lib

Repository files navigation

config-client-lib

This is one of three Git repositories, which work together to demonstrate using Consul and Vault for configuration management:

This demo shows the use case of having two types of config properties:

  1. non-secret values, which can and should be maintainable by developer teams (e.g. JDBC URL's).
  2. secret values, which should only be viewable or maintainable by people with specialized access (e.g. usernames and passwords)

The non-secret values are stored as-is in the config-properties repo, and loaded directly into Consul. For secret values, Git (and Consul) store a Vault path for that property. When the config-client-lib library encounters a secret, it loads the "true" value from this Vault path... and applications such as config-sample-app are none the wiser.

Setup

  1. Perform all of the steps outlined in the config-properties project's README file.
  2. Build this client lib, so that it will available in your local Maven dependency cache:
gradlew publishToMavenLocal
  1. See config-sample-app project README for next steps.

About

Platform-agnostic config management demo with Consul and Vault

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages