feat(secrets): Betterleaks instead of gitleaks, findings carry over (#516)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 11m59s
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 11m59s
- The agent image ships Betterleaks 1.9.0 (MIT, gitleaks' successor by its author; pinned with checksum) instead of gitleaks 8.21.2. It reads our rules/gitleaks.toml unchanged, incl. the #464/#482 allowlists; `git .` replaces `detect --source .`, `dir .` stays. Live validation (which sends secrets to their providers) is never passed and a test pins that; the scan runs without network. - The findings keep the scanner name `gitleaks` (finding_store:: SECRET_SCANNER), so fingerprints (#491) and tracker issues carry over. - RunFindings::adopt_renamed_secrets: a secret now reported under another rule (Betterleaks' composite aws-access-token reports a lone key id as generic-api-key; renamed vendor rules) takes over the stored row of the same target, file and match whose old rule no longer reports it: same id, status, triage and issue, with the new rule, title and severity. - Compared on every fixture tree: identical results, except two planted hard-coded passwords Betterleaks finds in the C firmware fixture (generic-password), added to its nightly baseline. - Docs (tools, guides), test plan check 33. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
This commit is contained in:
1 parent
908e6b8449
commit
ee30ecfddb
10 files changed
+375
-45
No files matched your search
+13
-11
@@ -5,8 +5,8 @@ ARG RUST_VERSION=1.98.1
|
||||
ARG CARGO_AUDIT_VERSION=0.22.2
|
||||
ARG SYFT_VERSION=1.52.0
|
||||
ARG SYFT_SHA256=caeedb81fb0491615f1ebd1761e4145d41ee86dd2cc7bf80669f9f5ad9d6133d
|
||||
ARG GITLEAKS_VERSION=8.21.2
|
||||
ARG GITLEAKS_SHA256=5bc41815076e6ed6ef8fbecc9d9b75bcae31f39029ceb55da08086315316e3ba
|
||||
ARG BETTERLEAKS_VERSION=1.9.0
|
||||
ARG BETTERLEAKS_SHA256=f8b185a39ffcece2a1ca82bf3a4e7435cd81963ffd16b7a9128daf75f35f6de7
|
||||
# SBOM quality score (Interlynk, Apache-2.0), #496. The checksum is the one
|
||||
# in the release's checksums.txt.
|
||||
ARG SBOMQS_VERSION=2.1.2
|
||||
@@ -56,8 +56,8 @@ ARG RUST_VERSION
|
||||
ARG CARGO_AUDIT_VERSION
|
||||
ARG SYFT_VERSION
|
||||
ARG SYFT_SHA256
|
||||
ARG GITLEAKS_VERSION
|
||||
ARG GITLEAKS_SHA256
|
||||
ARG BETTERLEAKS_VERSION
|
||||
ARG BETTERLEAKS_SHA256
|
||||
ARG SBOMQS_VERSION
|
||||
ARG SBOMQS_SHA256
|
||||
ARG SEMGREP_VERSION
|
||||
@@ -90,11 +90,13 @@ RUN curl -sSfL -o /tmp/syft.tar.gz \
|
||||
&& tar -xzf /tmp/syft.tar.gz -C /usr/local/bin syft \
|
||||
&& rm /tmp/syft.tar.gz
|
||||
|
||||
RUN curl -sSfL -o /tmp/gitleaks.tar.gz \
|
||||
"https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" \
|
||||
&& echo "${GITLEAKS_SHA256} /tmp/gitleaks.tar.gz" | sha256sum -c - \
|
||||
&& tar -xzf /tmp/gitleaks.tar.gz -C /usr/local/bin gitleaks \
|
||||
&& rm /tmp/gitleaks.tar.gz
|
||||
# Betterleaks (MIT), gitleaks' successor by its author (#516): reads our
|
||||
# gitleaks.toml. Its live validation is never switched on.
|
||||
RUN curl -sSfL -o /tmp/betterleaks.tar.gz \
|
||||
"https://github.com/betterleaks/betterleaks/releases/download/v${BETTERLEAKS_VERSION}/betterleaks_${BETTERLEAKS_VERSION}_linux_x64.tar.gz" \
|
||||
&& echo "${BETTERLEAKS_SHA256} /tmp/betterleaks.tar.gz" | sha256sum -c - \
|
||||
&& tar -xzf /tmp/betterleaks.tar.gz -C /usr/local/bin betterleaks \
|
||||
&& rm /tmp/betterleaks.tar.gz
|
||||
|
||||
RUN curl -sSfL -o /tmp/sbomqs.tar.gz \
|
||||
"https://github.com/interlynk-io/sbomqs/releases/download/v${SBOMQS_VERSION}/sbomqs_${SBOMQS_VERSION}_Linux_x86_64.tar.gz" \
|
||||
@@ -137,8 +139,8 @@ RUN curl -sSfL -o /tmp/dotnet.tar.gz \
|
||||
COPY --chmod=0755 docker/devskim.sh /usr/local/bin/devskim
|
||||
|
||||
RUN mkdir -p /opt/pruefwerk \
|
||||
&& printf '{"rust":"%s","cargo-audit":"%s","syft":"%s","gitleaks":"%s","semgrep":"%s","ruff":"%s","cppcheck":"%s","mobsfscan":"%s","sbomqs":"%s","devskim":"%s","dotnet-runtime":"%s"}\n' \
|
||||
"${RUST_VERSION}" "${CARGO_AUDIT_VERSION}" "${SYFT_VERSION}" "${GITLEAKS_VERSION}" \
|
||||
&& printf '{"rust":"%s","cargo-audit":"%s","syft":"%s","betterleaks":"%s","semgrep":"%s","ruff":"%s","cppcheck":"%s","mobsfscan":"%s","sbomqs":"%s","devskim":"%s","dotnet-runtime":"%s"}\n' \
|
||||
"${RUST_VERSION}" "${CARGO_AUDIT_VERSION}" "${SYFT_VERSION}" "${BETTERLEAKS_VERSION}" \
|
||||
"${SEMGREP_VERSION}" "${RUFF_VERSION}" "$(cppcheck --version | cut -d' ' -f2)" \
|
||||
"${MOBSFSCAN_VERSION}" "${SBOMQS_VERSION}" "${DEVSKIM_VERSION}" "${DOTNET_RUNTIME_VERSION}" \
|
||||
> /opt/pruefwerk/tool-versions.json
|
||||
|
||||
Reference in new issue
Block a user