Skip to content

fix(telemetry): send structured cli usage instead of the raw command line (backport v0.36 oss) - #4283

Merged
cbalan merged 1 commit into
v0.36from
backport/v0.36/f7f4ca49081d2c58665d4b737a5bd11b545037a7
Nov 19, 2026
Merged

cbalan merged 1 commit into
v0.36from
backport/v0.36/f7f4ca49081d2c58665d4b737a5bd11b545037a7

Conversation

@loft-bot

@loft-bot loft-bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Backport of commit f7f4ca49081d2c58665d4b737a5bd11b545037a7 to v0.36 (oss half).

Backported Commits:

  • f7f4ca490 fix(telemetry): send structured cli usage instead of the raw command line

Note

Medium Risk
Changes what telemetry sends (privacy improvement) but touches every CLI invocation path; mis-filtering could drop useful metrics or still leak data if allowlists are wrong.

Overview
CLI telemetry no longer records os.Args or raw error strings. StartCLI now takes the active cobra.Command and snapshots structured usage at pre-run (command path, set flag names, whitelisted flag values, positional arg count, resolved driver) plus duration_ms.

Only bounded values are included for sensitive flags (e.g. driver, output, chart/version patterns); everything else is names-only. Failures are reported as fixed error categories derived from error types, not message text. New helpers and broad tests assert that secrets and arbitrary CLI input never appear in the analytics payload.

Reviewed by Cursor Bugbot for commit 0fb6328. Bugbot is set up for automated code reviews on this repo. Configure here.

Fixes ENGCP-2039

…line (backport v0.36 oss)

Backport of source commit f7f4ca49081d2c58665d4b737a5bd11b545037a7 (oss half) onto v0.36.
@loft-bot
loft-bot requested a review from a team as a code owner November 18, 2026 13:00
@github-actions

Copy link
Copy Markdown
Contributor

E2E Ginkgo Tests

Status Commit Run
Passed 0fb6328dd7ad21301c99abf9a2dbdaa1c4b4ace6 View run #44309294832

@cbalan
cbalan merged commit 0261d46 into v0.36 Nov 19, 2026
27 of 37 checks passed
@cbalan
cbalan deleted the backport/v0.36/f7f4ca49081d2c58665d4b737a5bd11b545037a7 branch November 19, 2026 15:23
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