Skip to main content

resolve_env_vars

Function resolve_env_vars 

Source
pub fn resolve_env_vars() -> Result<(), SecretsError>
Available on crate feature secrets only.
Expand description

Scans every environment variable whose name starts with RWS_ and rewrites in place (via std::env::set_var) any whose value matches a recognized secret-reference prefix. Variables that don’t match are left untouched — this only ever narrows down to the ones that opted in by using one of the prefixes.

Called automatically from entry_point::bootstrap() when this feature is enabled; exposed publicly so a library user driving their own startup sequence (not calling bootstrap()) can call it explicitly instead.