Class EnvironmentSecretManager

java.lang.Object
dev.enola.common.secret.ReadOnlySecretManager
dev.enola.common.secret.EnvironmentSecretManager
All Implemented Interfaces:
SecretManager

SecretManager that reads secrets from the value of named environment variables.

This is not secure at all, and other implementations are preferred - but sometimes this is still quite useful, unfortunately. It's generally a Bad Idea to use this in any application which "shells out" (exec) to any other process, when would then be able to see any such (not so) "secret" environment variables!