Repository navigation
fix(telemetry): send structured cli usage instead of the raw command line (backport v0.35 oss) - #4284
Merged
cbalan merged 1 commit intoNov 19, 2026
Conversation
…line (backport v0.35 oss) Backport of source commit f7f4ca49081d2c58665d4b737a5bd11b545037a7 (oss half) onto v0.35.
Contributor
E2E Ginkgo Tests
|
cbalan
approved these changes
Nov 19, 2026
cbalan
deleted the
backport/v0.35/f7f4ca49081d2c58665d4b737a5bd11b545037a7
branch
November 19, 2026 15:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of commit
f7f4ca49081d2c58665d4b737a5bd11b545037a7tov0.35(oss half).Backported Commits:
Note
Medium Risk
Changes what telemetry sends and could hide useful diagnostics if categorization is wrong, but the intent is to reduce leakage of secrets from the command line.
Overview
CLI telemetry no longer records
os.Argsor raw error strings.telemetry.StartCLInow takes the activecobra.Commandand snapshots structured invocation metadata at pre-run (before flags mutate bound variables).Emitted event properties include the command path, set flag names,
flag_valuesonly for booleans and an allowlisted set (driver,output,chart-version, etc.), positional arg count, resolved driver,duration_ms, and on failure a fixederrorcategory (e.g.kubernetes_unauthorized,timeout) instead of message text.New helpers in
pkg/telemetry/cli_event.goimplement property building and error categorization;cli_event_test.goasserts that arbitrary user input (secrets, URLs, passthrough args) never appears in the analytics payload.Reviewed by Cursor Bugbot for commit 2ffb63b. Bugbot is set up for automated code reviews on this repo. Configure here.
Fixes ENGCP-2038