hashicorp / vault-service-broker

The official HashiCorp Vault broker integration to the Open Service Broker API. This service broker provides support for secure secret storage and encryption-as-a-service to HashiCorp Vault.
https://www.vaultproject.io/
Mozilla Public License 2.0
84 stars 38 forks source link

Parse env vars using envconfig #36

Closed tyrannosaurus-becks closed 5 years ago

tyrannosaurus-becks commented 5 years ago

In adding support for pulling config settings from Credhub, the code became convoluted and messy. Using envconfig to parse env variables provides a very useful format that can cleanly be built upon to pull further vars from Credhub.

This code is functionally equivalent to the code currently on master.

The Credhub piece will be in a separate PR for ease of review.