Skip to main content

Module env

Module env 

Source
Expand description

Environment and .env file handling.

Functions§

parse_env
Parse a .env file into key-value pairs. Skips comments, blank lines, MURK_* keys, and strips quotes and export prefixes.
resolve_key
Resolve the secret key from MURK_KEY or MURK_KEY_FILE. MURK_KEY takes priority; MURK_KEY_FILE reads the key from a file. Returns the key wrapped in SecretString so it is zeroized on drop.
warn_env_permissions
Warn if .env has loose permissions (Unix only).