Secrets from environment variables#53
Conversation
|
Thanks for the PR! For your use case, would reading the password/secret from a file work? I've been meaning to add this feature so that secrets can be easily reloaded (and stored in a better way). |
|
Unfortunately reading from a file wouldn't be useful in my case as our security team actively scans and alerts for passwords/secrets stored in plaintext. With passing an ENV although I cant gracefully reload new secrets, I can at least have them stored somewhat better than in a file |
|
I think it would be better to use an environment variable of the format |
|
This sounds like a better idea, although sadly outside of my go programming capabilities. |
|
Shouldn't be that hard - I think we can add something in If you don't want to or can't, I can implement this. |
|
Sorry for the delay, I've implemented secrets from environment variables in the latest release - 0.5.0. |
Added a lookup through the use of os.ExpandEnv() to pull secrets from environment variables