Skip to content

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

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

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

Conversation

@loft-bot

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

Copy link
Copy Markdown
Contributor

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

Backported Commits:

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

Note

Medium Risk
Changes what control plane telemetry sends (schema and redaction); low runtime risk but affects observability payloads and must not regress categorization or leak secrets.

Overview
Hardens control plane telemetry so analytics events no longer carry raw Helm config, error strings, or unbounded Kubernetes version text.

Start events now send a sanitized config shape via new configSummary() (booleans/numbers as-is, maps/lists as counts, only whitelisted string values), normalize creation_method to vclusterctl / loft / other, and drop the old full ChartInfo payload. Error events record errorCategory(err) instead of err.Error(), attach vcluster_version, use the same config summary on fatal/panic, and add a function stack (not full panic text) for panics. Leader election loss uses sentinel ErrLeaderElectionLost so it categorizes as leader_election_lost.

Host/virtual cluster K8s versions in telemetry are trimmed with regex in toKubernetesVersion. Broad tests assert telemetry JSON never contains sensitive fixture strings.

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

Fixes ENGCP-2053

…control plane (backport v0.36 oss)

Backport of source commit e35fb25dbe0063b115173c8692a3f4fc6f57daf0 (oss half) onto v0.36.
@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 87538de17926d1871a33a8468e46953e6034e97e View run #45199244673

@vcluster-bot-approver vcluster-bot-approver left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved by the shared auto-approve workflow because this PR matched the approval criteria.

For more information, see https://github.com/loft-sh/github-actions?tab=readme-ov-file#auto-approve-bot-prs.

@c2ndev
c2ndev merged commit 22a3196 into v0.36 Nov 23, 2026
26 checks passed
@c2ndev
c2ndev deleted the backport/v0.36/e35fb25dbe0063b115173c8692a3f4fc6f57daf0 branch November 23, 2026 15:09
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.

3 participants