Add exact-identity target storage adapter
This commit is contained in:
parent
f569707f97
commit
854e6e1c17
1 changed files with 3263 additions and 41 deletions
19
crates/remora-target/tests/redaction.rs
Normal file
19
crates/remora-target/tests/redaction.rs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
use remora_target::TargetStoreConfig;
|
||||
|
||||
#[test]
|
||||
fn target_store_config_debug_redacts_secret() {
|
||||
let config = TargetStoreConfig::new_exclusive(
|
||||
"garage",
|
||||
"http://garage:3900",
|
||||
"remora-lane-001",
|
||||
"garage",
|
||||
"synthetic-access-key",
|
||||
"synthetic-secret-key-must-not-leak",
|
||||
"",
|
||||
)
|
||||
.expect("config");
|
||||
let debug = format!("{config:?}");
|
||||
assert!(!debug.contains("synthetic-secret-key-must-not-leak"));
|
||||
assert!(debug.contains("REDACTED"));
|
||||
assert!(debug.contains("synthetic-access-key"));
|
||||
}
|
||||
Loading…
Reference in a new issue