Skip to main content

scrub_auth_headers

Function scrub_auth_headers 

Source
pub fn scrub_auth_headers<S: BuildHasher>(
    headers: &HashMap<String, String, S>,
) -> HashMap<String, String>
Expand description

Scrub authentication headers from a header map before caching.

This ensures sensitive credentials are never persisted to disk, maintaining the security boundary between configuration and secrets.