Skip to content

Enable gitleaks decoding at depth 2 and report encoding (boostsecurityio/workspace#73) - #269

Merged
lindycoder merged 2 commits into
mainfrom
73-enable-gitleaks-decoding
Jul 23, 2026
Merged

Enable gitleaks decoding at depth 2 and report encoding (boostsecurityio/workspace#73)#269
lindycoder merged 2 commits into
mainfrom
73-enable-gitleaks-decoding

Conversation

@lindycoder

@lindycoder lindycoder commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

What

Two coordinated changes to both production gitleaks modules
(boostsecurityio/gitleaks and boostsecurityio/gitleaks-full):

  1. Enable decoding — add --max-decode-depth=2 to the gitleaks scan
    command. This makes gitleaks decode and scan base64 / hex / percent /
    unicode-encoded content up to depth 2, so nested/encoded secrets are
    surfaced as findings.
  2. Report the encoding — bump the boost-scanner-gitleaks
    post-processor image to the build that parses the gitleaks decode tags
    into the SARIF encoding field, so the newly-detected nested secrets
    carry their encoding metadata downstream.

Both are required for "detect and report": the flag alone finds the
nested secrets, but they'd carry no encoding metadata until the
post-processor image is bumped.

The boost-scanner-keyscope post-processor image is intentionally
unchanged in both files.

Post-processor image

Pinned to the production image built from boostsec-scanner-gitleaks main
(PR #34, merged):
ghcr.io/boostsecurityio/scanner-publishing/boost-scanner-gitleaks:3317798@sha256:c5c0234223df2c08171a6c01f15e45870a841e5a5e84c09e535981baf6ab8d0a
— built, cosign-signed, and mirrored to ghcr through the standard
scanner-publishing path. Validated end-to-end against a repo with encoded
secrets before merge.

Part of boostsecurityio/workspace#73

@lindycoder
lindycoder marked this pull request as ready for review July 20, 2026 20:24
@lindycoder
lindycoder requested a review from a team as a code owner July 20, 2026 20:24
…yio/workspace#73)

Add `--max-decode-depth=2` to the gitleaks scan command in both the
`gitleaks` (dir) and `gitleaks-full` (git) modules so gitleaks decodes
and scans base64/hex/percent/unicode-encoded content at depth 2,
surfacing nested secrets as findings.

Bump the `boost-scanner-gitleaks` post-processor image in both modules to
the build that parses the decode tags into the `encoding` field, so the
newly-detected nested secrets are reported with their encoding metadata.

The `boost-scanner-keyscope` post-processor image is unchanged.

WARNING: the new public.ecr.aws/boostsecurityio/boost-scanner-gitleaks:f89b028
image is a TEMPORARY testing pin - the raw CI build of the PR #34 branch,
used for pre-merge validation only. It must be swapped to the ghcr.io
main-published image before this PR is merged. Keep this PR in draft
until that swap lands.

Part of boostsecurityio/workspace#73
…ain-built ghcr prod digest

Now that boostsec-scanner-gitleaks PR #34 is merged to main and its
production ghcr image is published and cosign-signed, replace the
pre-merge ECR testing pin
(public.ecr.aws/…/boost-scanner-gitleaks:f89b028) with the production
ghcr image built from main
(ghcr.io/boostsecurityio/scanner-publishing/boost-scanner-gitleaks:3317798)
in both the gitleaks and gitleaks-full modules.

3317798 is the squash SHA of #34 on scanner-gitleaks main — the same
tag-parsing code validated via the f89b028 branch build, now the
main-built prod equivalent on the same ghcr scanner-publishing path the
module already uses. The --max-decode-depth=2 scan-command flags and the
boost-scanner-keyscope image are unchanged. No ECR reference remains.

Part of boostsecurityio/workspace#73
@lindycoder
lindycoder force-pushed the 73-enable-gitleaks-decoding branch from e139afb to 8b568da Compare July 22, 2026 14:34
@lindycoder
lindycoder merged commit f67c336 into main Jul 23, 2026
11 of 12 checks passed
@lindycoder
lindycoder deleted the 73-enable-gitleaks-decoding branch July 23, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants