return attr.key == "bearer-token";
});
if (bearer_token_attribute != attributes.end()) {
- bearer_token_attribute->value = storage::k_redacted_password;
- bearer_token_attribute->raw_value = storage::k_redacted_password;
+ bearer_token_attribute->value = storage::k_redacted_secret;
+ bearer_token_attribute->raw_value = storage::k_redacted_secret;
}
}
if (password) {
if (user) {
// redis://user:password@host
- LOG("Redis AUTH {} {}", *user, storage::k_redacted_password);
+ LOG("Redis AUTH {} {}", *user, storage::k_redacted_secret);
util::value_or_throw<Failed>(
redis_command("AUTH %s %s", user->c_str(), password->c_str()));
} else {
// redis://password@host
- LOG("Redis AUTH {}", storage::k_redacted_password);
+ LOG("Redis AUTH {}", storage::k_redacted_secret);
util::value_or_throw<Failed>(redis_command("AUTH %s", password->c_str()));
}
}
{
Url redacted_url(url);
if (!url.user_info().empty()) {
- redacted_url.user_info(k_redacted_password);
+ redacted_url.user_info(k_redacted_secret);
}
return redacted_url.str();
}