Skip to content

telemetry [20]: default to OptIn and add opt-out RPM - #910

Draft
bfjelds (bfjelds) wants to merge 1 commit into
user/bfjelds/mjolnir/testimages-telemetry-optinfrom
user/bfjelds/telemetry-default-optin
Draft

bfjelds (bfjelds) wants to merge 1 commit into
user/bfjelds/mjolnir/testimages-telemetry-optinfrom
user/bfjelds/telemetry-default-optin

Conversation

@bfjelds

@bfjelds bfjelds (bfjelds) commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Default missing agent configuration or an unset Telemetry setting to OptIn; preserve explicit OptOut and malformed-value fail-closed behavior.
  • Add trident-telemetry-optout: install/upgrade sets OptOut while preserving other settings; uninstall leaves the opt-out configuration intact.

Validation

At b5eb99c180f9289dca716a143d0ea5504d3efeec on 2026-10-30:

  • cargo fmt -- --check: passed.
  • All-target compilation and strict Clippy (-D warnings): passed with grpc-preview,dangerous-options,trident_api/documentation,functional-test,pytest-generator.
  • Focused host-safe unit tests: passed without enabling functional-test.
  • Targeted daemon and gRPC-client unit tests: passed.
  • Binary pre-reboot flush regression: passed.
  • VM functional tests were not run as part of this local validation. No CI result is asserted here.

Prior packaging checks (2026-10-29, before the exact-tree-preserving reorder): RPM spec parsing, an opt-out RPM build using cached Trident binaries, and seven --nodeps RPM transaction scenarios passed. The source Cargo build was skipped in that packaging validation copy. Full source rebuild, dependency-solver validation, VM lifecycle tests and live ingestion were not performed.

Stack

Native stack 913, position 20/20. Positions 1-14 provide sink-neutral telemetry; positions 15-20 add telemetry preferences, shared transport, AppInsights and build/image/package integration.

Full-stack pipeline branch: user/bfjelds/telemetry-default-optin (#910).

Related PRs in stack:

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Ignoring all configuration read errors can leave telemetry enabled despite an explicit opt-out when the file contains invalid UTF-8.

1 open issue
What changed in this PR

Changes Trident telemetry to default to OptIn and adds an RPM-based opt-out that preserves other agent settings.

Changes:

  • Default missing telemetry configuration to OptIn and extend configuration tests.
  • Add trident-telemetry-optout, which writes a persistent opt-out on installation or upgrade.
  • Update configuration documentation and startup status text to reflect the new default.
File Description
packaging/​rpm/​trident.spec Adds the opt-out subpackage and configuration script.
docs/​Reference/​Telemetry.md Documents default-enabled telemetry and opt-out options.
docs/​Reference/​Agent-Configuration.md Explains defaults, RPM behavior, and when changes take effect.
crates/​trident/​src/​main.rs Removes outdated default-opt-out wording from status text and comments.
crates/​trident/​src/​agentconfig.rs Changes the telemetry default and adds unset-configuration tests.

Review effort: Balanced

Comment thread crates/trident/src/agentconfig.rs Resolved
@bfjelds
bfjelds (bfjelds) removed this pull request from stack #895 October 30, 2026 15:58
@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/telemetry-default-optin branch from 6417ba2 to b5eb99c Compare October 30, 2026 15:58
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot October 30, 2026 16:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified for the telemetry default and opt-out packaging changes.

No open issues 🎉

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are identified for the telemetry-default and persistent opt-out changes.

No open issues 🎉

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain for the telemetry-default and opt-out packaging changes.

No open issues 🎉

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the telemetry-default and opt-out changes.

No open issues 🎉

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues block approval of the telemetry default and opt-out changes.

No open issues 🎉

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified for the telemetry default and opt-out package changes.

No open issues 🎉

Review effort: Balanced

Rebase onto agent configuration read-error handling.
Preserve structured read errors instead of falling back to OptIn.

Original layer head: b5eb99c

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 43cb811b-f191-4d90-852f-e3373041ca11
@bfjelds
bfjelds (bfjelds) force-pushed the user/bfjelds/telemetry-default-optin branch from 68efec3 to 3335c83 Compare October 30, 2026 20:46

This branch has not been deployed

No deployments
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