refactor(client): make authentication explicit and redact HMAC keys

This commit is contained in:
Nils Andreas Svee committed 2026-10-04 16:45:59 +07:00
1 parent 9c703ecff2
commit a2f70c4f06
18 files changed
+492 -119

No files matched your search

@@ -1,3 +1,4 @@
use irtt_client::{Authentication, HmacKey};
mod support;
mod protocol_options {
pub mod backend_smoke;
@@ -148,7 +149,7 @@ fn hmac_rich_mode_uses_negotiated_echo_layout_and_decodes_reply() {
let config_key = key.clone();
let run = run_one_probe_with_config(params.clone(), standard_timestamps(), Some(key), |addr| {
ClientConfig {
hmac_key: Some(config_key),
auth: Authentication::Hmac(HmacKey::new(config_key)),
..config_for_params(addr, &config_params)
}
});