Skip to content

chart tests: a failing helm_template_test prints the whole render, including the generated webhook private key #1382

Closed

Description

@bpalermo

On a mismatch, rules_helm's helm_template_test and the repo's helm_template_match_test print the full rendered chart. At default values that includes the self-signed webhook tls.key generated for that render. It is a throwaway key that never reaches a cluster, but it lands in CI logs and trains readers to see key material there.

Fix: make the match rule print only the document(s) and lines around the pattern, never Secret data; for the upstream rule, render affected tests with controller.webhook.spire=true or mask Secret data in a wrapper. #1368 already moved one test off the printing rule for this reason.

Reported by the chart work for #1363/#1364 (PRs #1367, #1368), not changed there.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Metadata

Metadata

Assignees

No one assigned

    Labels

    chartenhancementminor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions