Repository navigation
fix(telemetry): send a config summary and an error category from the control plane (backport v0.35 oss) - #4291
Merged
c2ndev merged 2 commits intoNov 23, 2026
Conversation
…control plane (backport v0.35 oss) Backport of source commit e35fb25dbe0063b115173c8692a3f4fc6f57daf0 (oss half) onto v0.35.
Contributor
E2E Ginkgo Tests
|
c2ndev
approved these changes
Nov 23, 2026
c2ndev
deleted the
backport/v0.35/e35fb25dbe0063b115173c8692a3f4fc6f57daf0
branch
November 23, 2026 15:16
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
e35fb25dbe0063b115173c8692a3f4fc6f57daf0tov0.35(oss half).Backported Commits:
Note
Medium Risk
Changes telemetry payload shape and redaction logic for control-plane analytics; misclassification or dropped diagnostic detail could affect operations debugging, but it reduces leakage of secrets and config text.
Overview
This backport changes what the control plane sends in analytics events so payloads describe shape and category of failures/config, not raw user-supplied text.
Start and error events no longer attach full Helm/config objects or
err.Error()strings.RecordStartand fatal/panicRecordErroruse a newconfigSummarythat emits booleans, numeric counts, and only whitelisted string values; maps/lists become entry counts and free-form strings becometrueor"other". Errormessageis nowerrorCategory(err)(e.g.leader_election_lost,kubernetes_forbidden); leader loss uses sentinelErrLeaderElectionLostfrom leader election. Panic events add a function:line stack viacallerFunctions().creation_methodis normalized tovclusterctl,loft, orother.Kubernetes version fields in telemetry are trimmed with regex so only standard version/distro suffixes are kept.
ChartInfoand chart-based helm value dumping are removed in favor of the summary helper. Tests assert events never contain sensitive fixture text across start, error, panic, and config-summary paths.Reviewed by Cursor Bugbot for commit ea3c18a. Bugbot is set up for automated code reviews on this repo. Configure here.
Fixes ENGCP-2052