pub fn write_key_to_dotenv(secret_key: &str) -> Result<(), String>Expand description
Write a MURK_KEY to .env, removing any existing MURK_KEY lines.
On Unix, sets file permissions to 600 atomically at creation time to
prevent a TOCTOU window where the secret key is world-readable.
On non-Unix platforms, permissions are not hardened.