Skip to main content

mask_credentials

Function mask_credentials 

Source
pub fn mask_credentials(c: &ConsumerConfig) -> ConsumerConfig
Expand description

Returns a copy of c with credential secrets replaced by "<masked>".

Every scalar leaf under credentials is masked except the identifying halves of a credential pair (username, access_key), so a read-only viewer can still tell which credential exists without learning it.