Skip to content

Keep sensitive configuration and child output out of diagnostics - #1875

Open
sameerforge wants to merge 1 commit into
carvel-dev:developfrom
sameerforge:topic/sameerkh/upstream-audit-fixes-20261022
Open

sameerforge wants to merge 1 commit into
carvel-dev:developfrom
sameerforge:topic/sameerkh/upstream-audit-fixes-20261022

Conversation

@sameerforge

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Sanitize URL queries/fragments and error fields before presenting command results. Keep the original rendered manifest separate from its diagnostic copy. Omit opaque ytt diagnostics when Secret-backed values are supplied and provide corrective guidance. In kctrl, display resource identities instead of complete App/PackageInstall objects, omit vendir configuration-file printing and stop teeing raw child output into debug logs.

Validation

  • Controller: go test ./pkg/exec ./pkg/template ./pkg/app ./pkg/pkgrepository with the baseline ytt/vendir tools on PATH.
  • CLI: cd cli && go test ./pkg/....
  • Controller: golangci-lint run passes.
  • CLI: golangci-lint run reports 25 existing findings, reproduced on unchanged develop; golangci-lint run --new-from-rev upstream/develop passes.
  • The broader controller go test ./pkg/... has two existing failures in pkg/config and pkg/fetch, also reproduced on unchanged develop.
  • New tests cover Secret-backed ytt errors, original rendered output, all command-result diagnostic fields, resource/configuration display and normal/cancelable subprocess execution.

Does this PR introduce a user-facing change?

Controller status and kctrl diagnostics avoid exposing credentials and configuration bodies. Secret-backed ytt failures provide safe corrective guidance; child output remains available to its intended consumer.

Redact URL queries, fragments and error fields before status presentation.
Keep original rendered manifests separate from diagnostic copies. Suppress
opaque ytt diagnostics for Secret-backed values, while retaining corrective
guidance. Replace kctrl configuration dumps with identity summaries and
stop teeing raw child output into debug logs. Add focused regression tests.

Signed-off-by: Sameer Khan <sameer.khan@broadcom.com>

This branch has not been deployed

No deployments
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