Skip to content

Prevent credentials in source, cluster and diff diagnostics - #1144

Open
sameerforge wants to merge 1 commit into
carvel-dev:v0.65.xfrom
sameerforge:topic/sameerkh/kapp-v0.65-audit-fixes-20261022
Open

sameerforge wants to merge 1 commit into
carvel-dev:v0.65.xfrom
sameerforge:topic/sameerkh/kapp-v0.65-audit-fixes-20261022

Conversation

@sameerforge

Copy link
Copy Markdown

What this PR does / why we need it:

Sanitize HTTP input URLs in source descriptions and errors, including nested URL errors, and sanitize the target-cluster banner. Apply the standard Secret masking rules to tools diff in both text and YAML modes, while preserving --mask=false and the original inputs used for authentication and deployment.

Validation

  • go test ./internal/diagnostics ./pkg/...
  • golangci-lint run
  • Regression tests exercise authenticated requests, connection failures, Secret data/stringData, both diff output modes and the explicit masking opt-out.

Does this PR introduce a user-facing change?

HTTP source and cluster diagnostics omit URL credentials. Tools diff masks Secret values by default in both text and YAML output.

Sanitize HTTP source descriptions, nested request errors and target-cluster
URLs without changing request authentication. Apply default Secret masking
rules to tools diff, preserving the explicit masking opt-out. Add regression
coverage for authenticated requests and both diff output modes.

Signed-off-by: Sameer Khan <sameer.khan@broadcom.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants