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 andexportprefixes. - resolve_
key - Resolve the secret key from
MURK_KEYorMURK_KEY_FILE.MURK_KEYtakes priority;MURK_KEY_FILEreads the key from a file. Returns the key wrapped inSecretStringso it is zeroized on drop. - warn_
env_ permissions - Warn if
.envhas loose permissions (Unix only).