/demo-authorized-spring-config-server

Demo of a Spring Cloud Config server that requires basic authentication. Clients read the credentials from vault and configure their config client by facilitating Spring Cloud Config's auto-discovery support.

Primary LanguageJavaApache License 2.0Apache-2.0

Authorized Spring Config Server Demo

This project demonstrates the use of a Spring Cloud Config server that requires HTTP basic authentication from its client. Both client and server learn the relevant credentials from a lookup in a Hashicorp Vault instance using a Spring Cloud Vault client.

The configuration of the config clients must take place during the respective application's bootstrapping and therefore has no implicit access to the Property sources injected by Spring Cloud Vault into the application environment. This demo's workaround is based on Spring Cloud Config's service discovery support.

The demo was prepared for a presentation at a meeting of the Java user group Freiburg in October 2017.