From 9ae46eb76b993f93286d06ff4243173cb44f4531 Mon Sep 17 00:00:00 2001 From: Lukas Wuttke Date: Thu, 30 Jul 2026 11:44:11 +0200 Subject: [PATCH] chore: add redacted gitleaks history baseline Records a redacted gitleaks baseline at the repo root so the full-history dispatch scan runs clean, and wires the code-quality caller to consume it via the gitleaks-baseline input. Part of tracebloc/backend#1303. Co-Authored-By: Claude Fable 5 --- .github/workflows/code-quality-caller.yml | 1 + .gitleaks-baseline.json | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .gitleaks-baseline.json diff --git a/.github/workflows/code-quality-caller.yml b/.github/workflows/code-quality-caller.yml index eb1e992..3600fcc 100644 --- a/.github/workflows/code-quality-caller.yml +++ b/.github/workflows/code-quality-caller.yml @@ -31,3 +31,4 @@ jobs: # fleet-wide + advisory soak done (backend#1303). soft-fail: false all-files: ${{ inputs.all-files || false }} + gitleaks-baseline: .gitleaks-baseline.json diff --git a/.gitleaks-baseline.json b/.gitleaks-baseline.json new file mode 100644 index 0000000..d9c7cbd --- /dev/null +++ b/.gitleaks-baseline.json @@ -0,0 +1,23 @@ +[ + { + "RuleID": "generic-api-key", + "Description": "Detected a Generic API Key, potentially exposing access to various services and sensitive operations.", + "StartLine": 212, + "EndLine": 212, + "StartColumn": 4, + "EndColumn": 45, + "Match": "IdempotencyKey: \"REDACTED\"", + "Secret": "REDACTED", + "File": "internal/submit/submit_test.go", + "SymlinkFile": "", + "Commit": "d2754bd0e71bd5363b7c7f51a286b7d705e7928d", + "Link": "https://github.com/tracebloc/cli/blob/d2754bd0e71bd5363b7c7f51a286b7d705e7928d/internal/submit/submit_test.go#L212", + "Entropy": 4.004886, + "Author": "lukasWuttke", + "Email": "54042461+LukasWodka@users.noreply.github.com", + "Date": "2026-07-13T11:27:35Z", + "Message": "feat(push): print the run's correlation id on submit (backend#1028 item 3) (#245)\n\nThe idempotency key the CLI already sends is becoming the end-to-end\ningest correlation id: jobs-manager derives the Job name from it, labels\nevery spawned resource with it, and (client-runtime) stamps it into the\ningestor container as TRACEBLOC_INGEST_CORRELATION_ID, where the\ningestor (data-ingestors) logs it and carries it into the backend\nregistration payload.\n\nThe CLI was the only layer that never showed the key, so the customer\nhad no copy of the one string that threads all layers together. Print\nit as a hint line on every submit path — fresh and replay (a replayed\nrun is exactly when you reach for the id to find the already-running\nJob).\n\nNo wire change: the key was already in the POST body.\n\nCo-authored-by: Claude Fable 5 \u003cnoreply@anthropic.com\u003e", + "Tags": [], + "Fingerprint": "d2754bd0e71bd5363b7c7f51a286b7d705e7928d:internal/submit/submit_test.go:generic-api-key:212" + } +]