Skip to content

fix(telemetry): send a config summary and an error category from the control plane (backport v0.35 oss) - #4291

Merged
c2ndev merged 2 commits into
v0.35from
backport/v0.35/e35fb25dbe0063b115173c8692a3f4fc6f57daf0
Nov 23, 2026
Merged

c2ndev merged 2 commits into
v0.35from
backport/v0.35/e35fb25dbe0063b115173c8692a3f4fc6f57daf0

Conversation

@loft-bot

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

Copy link
Copy Markdown
Contributor

Backport of commit e35fb25dbe0063b115173c8692a3f4fc6f57daf0 to v0.35 (oss half).

Backported Commits:

  • e35fb25db fix(telemetry): send a config summary and an error category from the control plane

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. RecordStart and fatal/panic RecordError use a new configSummary that emits booleans, numeric counts, and only whitelisted string values; maps/lists become entry counts and free-form strings become true or "other". Error message is now errorCategory(err) (e.g. leader_election_lost, kubernetes_forbidden); leader loss uses sentinel ErrLeaderElectionLost from leader election. Panic events add a function:line stack via callerFunctions(). creation_method is normalized to vclusterctl, loft, or other.

Kubernetes version fields in telemetry are trimmed with regex so only standard version/distro suffixes are kept. ChartInfo and 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

…control plane (backport v0.35 oss)

Backport of source commit e35fb25dbe0063b115173c8692a3f4fc6f57daf0 (oss half) onto v0.35.
@loft-bot
loft-bot requested a review from a team as a code owner November 23, 2026 14:06
@github-actions

Copy link
Copy Markdown
Contributor

E2E Ginkgo Tests

Status Commit Run
Passed ea3c18a18acd6431f7c2f22061d8beb7771e7620 View run #45199267172

@c2ndev
c2ndev merged commit 9662c1c into v0.35 Nov 23, 2026
26 checks passed
@c2ndev
c2ndev deleted the backport/v0.35/e35fb25dbe0063b115173c8692a3f4fc6f57daf0 branch November 23, 2026 15:16
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