Skip to content

Commit 42a9c83

Browse files
committed
chore(security): allowlist orchestration idempotencyKey test fixtures in gitleaks
CI secret-scan (gitleaks generic-api-key) false-positived on the 'orch_abc_SUB-1'-style idempotencyKey fixtures in the orchestration tests (orchestration-release.test.ts / orchestration-reconciler.test.ts) — these are made-up test values, not credentials. Scope a targetRules+paths allowlist to those two test files, mirroring the existing wat-opaque-123 / test-signing-secret-abc123 fixture exemptions. Range scan: no leaks found.
1 parent d68be9e commit 42a9c83

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.gitleaks.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ stopwords = ["wat-opaque-123"]
1919
description = "Test fixture signing secret in Slack verification unit test (not a real credential)."
2020
stopwords = ["test-signing-secret-abc123"]
2121

22+
[[allowlists]]
23+
# #247: the orchestration idempotencyKey fixtures (`orch_<id>_<subissue>`) are
24+
# made-up test values, but generic-api-key flags the key-ish assignment. Scope
25+
# the exemption to the orchestration test files (no real credentials there).
26+
description = "Orchestration idempotencyKey test fixtures (not real credentials)."
27+
targetRules = ["generic-api-key"]
28+
paths = [
29+
"^cdk/test/handlers/shared/orchestration-release\\.test\\.ts$",
30+
"^cdk/test/handlers/orchestration-reconciler\\.test\\.ts$",
31+
]
32+
2233
# Catch bare 12-digit AWS account IDs. The default ruleset does not flag these,
2334
# which is how a real account ID reached a committed comment in the #236 integ
2435
# work. RE2 (Go) has no lookarounds, so the non-digit neighbours are captured in

0 commit comments

Comments
 (0)