-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lift4: Support for Env Vars in configuration #2011
Comments
Many projects use Spring Boot and use its properties-loading mechanism.; It'd be nice if we could weave in some kind of interop with Spring Boot's properties. |
Do you have a pointer to the Spring Boot properties package? Lemme see if I can do something with reflection so if it's there, it'll be used. |
We inject Spring's
We use AspectJ's
|
Maybe it is worth supporting different config providers? For example, lightbend/config supports env variable out of the box. |
I am suggesting a very simple extension to the existing There's nothing in Lift that defaults to using the If there are other properties systems that are used with other systems, why not use those natively in the Lift app rather than trying to wrap |
Lift's properties/configuration mechanism is based on named files. However, this means storing secrets (e.g., DB credentials, etc.) in files and potentially checking those files into source control systems. Yikes!!
The industry is moving to using Env Vars for configuration/secrets.
The proposal is to extend Lift's configuration system to support referencing Env Vars from configuration files (Rust has an
env!(...)
macro.Thus if a line in a configuration file looks like:
foo.bar.baz=env!("VAR_NAME")
Lift's configuration system will read the env var and if the env var isn't define, the config system will throw an exception which will halt the Lift boot cycle.
The text was updated successfully, but these errors were encountered: