Skip to content

feat: add an opt-in chart package secret scan example - #892

Open
ntmspavan wants to merge 1 commit into
helm:mainfrom
ntmspavan:docs/scan-chart-packages
Open

ntmspavan wants to merge 1 commit into
helm:mainfrom
ntmspavan:docs/scan-chart-packages

Conversation

@ntmspavan

Copy link
Copy Markdown

What this PR does / why we need it

A local values override or credential file can end up in a Helm package even when the chart passes lint. This adds an opt-in example that uses the existing ct lint additional-command hook to scan the packaged chart with Gitleaks. It also shows how to scan the exact archive a release job will publish.

Special notes for your reviewer

  • The example scans a byte-for-byte copy named .tar.gz because Gitleaks 8.30.1 skipped the same archive with Helm's .tgz extension in local testing.
  • Tested the lint hook with Helm 3.22.0 and 4.3.0. A synthetic token blocked lint and the release archive scan. The chart passed with a reference to an existing Kubernetes Secret and after .helmignore excluded the synthetic file.
  • Confirmed the release scan preserves the artifact checksum and rejects a missing or invalid archive. ShellCheck and git diff --check passed.
  • The example documents scanner coverage limits, including nested packaged dependencies. It adds no required dependencies or changes to chart-testing defaults.

Signed-off-by: Pavan Nalam <pavan.nalam3693@gmail.com>
@ntmspavan ntmspavan changed the title docs: add an opt-in chart package secret scan example feat: add an opt-in chart package secret scan example Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant