Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

chore(gitleaks): allowlist #598's sanitize test fixtures

AkitaOnRailsdc11fd410626
diff --git a/.gitleaksignore b/.gitleaksignore
index eaefe2ba..775509af 100644
--- a/.gitleaksignore
+++ b/.gitleaksignore
@@ -5,3 +5,5 @@ a861ec3d598885d43500713d21d4e1aafbf46645:tests/e2e/handoff_smoke.sh:curl-auth-he
747c32d50f824cae665f2e35bbd62c8502438903:crates/ai-memory-hooks/src/sanitize.rs:jwt:107
d8361d3c3a86f870f74841b53c568c64fe42ab1f:crates/ai-memory-core/src/sanitize.rs:gcp-api-key:226
d8361d3c3a86f870f74841b53c568c64fe42ab1f:crates/ai-memory-core/src/sanitize.rs:generic-api-key:257
+47c9cf2e71712153e3162942a8cb28667a6be27a:crates/ai-memory-core/src/sanitize.rs:generic-api-key:631
+47c9cf2e71712153e3162942a8cb28667a6be27a:crates/ai-memory-core/src/sanitize.rs:generic-api-key:633
diff --git a/crates/ai-memory-core/src/sanitize.rs b/crates/ai-memory-core/src/sanitize.rs
index c4ae5dc9..1b17e6ee 100644
--- a/crates/ai-memory-core/src/sanitize.rs
+++ b/crates/ai-memory-core/src/sanitize.rs
@@ -627,10 +627,14 @@ mod tests {
/// output, so the rule requires an auth qualifier before the suffix.
#[test]
fn auth_header_pattern_leaves_non_secret_key_and_token_headers_alone() {
+ // Values use the low-entropy "obvious fake" shape the sanitize
+ // fixtures follow (see .gitleaks.toml) so the secret scanner does
+ // not flag them; the assertion is name-based, so the value shape
+ // is irrelevant to what is being tested.
for text in [
- "Idempotency-Key: 3f7a1c2e-9b4d-4f88-a1e2-7c6b5d4e3f21",
+ "Idempotency-Key: 00000000-0000-0000-0000-000000000000",
"Continuation-Token: 0000000000000000000000",
- "Next-Page-Token: CiAKGjBpNDd2Nmp2Zml2cWtwYjBk",
+ "Next-Page-Token: 0000000000000000000000000000",
"Partition-Key: user-000000000000001",
"Cache-Key: v2-catalog-000000000000",
] {