Skip to content

Lift4: Support for Env Vars in configuration #2011

Open
@dpp

Description

@dpp

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.

Metadata

Metadata

Assignees

Labels

Lift5Features/Changes for Lift 5

Type

No type

Projects

Status

Proposed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions