fugue / credstash

A little utility for managing credentials in the cloud
Apache License 2.0
2.06k stars 215 forks source link

Add option to load KMS master key ID from the CREDSTASH_KMS_KEY_ID environment variable #292

Open alexmbird opened 4 years ago

alexmbird commented 4 years ago

This PR adds the option to declare the KMS key using an environment variable. If the environment variable is unset, the original alias/credstash default will prevail.

The main use case of this is supporting the use of multiple credstashes in a single AWS account in an configure-and-forget manner.

Bonus: my text editor has automatically stripped trailing spaces from a bunch of lines :)