Skip to content

refactor(drivers): stop passing the telemetry toggle into sandboxes - #5814

Open
SDAChess wants to merge 5 commits into
mainfrom
refactor/4554-drop-sandbox-telemetry-env/SDAChess
Open

SDAChess wants to merge 5 commits into
mainfrom
refactor/4554-drop-sandbox-telemetry-env/SDAChess

Conversation

@SDAChess

Copy link
Copy Markdown
Contributor

Summary

The Docker, Kubernetes, Podman and VM drivers copied the gateway's OPENSHELL_TELEMETRY_ENABLED value into every sandbox environment, but nothing in the sandbox read it. This drops the injection. It is the first of a short stack that removes the NVIDIA usage telemetry ahead of the move to ai-openshell/openshell.

Related Issue

Refs #4554

Changes

  • Remove sandbox_env::TELEMETRY_ENABLED and openshell_core::telemetry::enabled_env_value().
  • Stop injecting the variable in the Docker (create and image update), Kubernetes, Podman and VM drivers. Docker image updates now carry over only the log level.
  • Delete the tests that pinned the propagation, the ENV_LOCK statics that only served them, and the temp-env dev-dependency in the Kubernetes and Podman drivers.

Release Notes

Testing

  • Checks appropriate to the affected code and behavior pass: cargo clippy -D warnings, cargo fmt, and cargo test for core and the Docker, Kubernetes, Podman and VM drivers. Only the VM image_preparation tests that hardcode /bin/sleep//bin/dd fail locally, on NixOS, unrelated to this change.
  • Unit tests added/updated (if applicable)
  • E2E tests added/updated (if applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Nov 20, 2026
@krishicks

Copy link
Copy Markdown
Contributor

Drafted by 🤖, signed off by @krishicks

The code change is complete. These docs and comments still describe the propagation and become wrong once this merges:

  1. docs/observability/telemetry.mdx:22: "OpenShell propagates this setting into sandbox supervisor environments, so sandbox-side telemetry collection is disabled as well." Nothing in the sandbox reads it, so this sentence can go.
  2. docs/observability/telemetry.mdx:34: "...and reports telemetry disabled to the sandboxes it launches." Drop the second half.
  3. crates/openshell-driver-vm/Cargo.toml:104-106: the telemetry feature doc says a build without it "reports telemetry disabled to the sandboxes it launches". That was enabled_env_value().
  4. deploy/helm/openshell/values.yaml:466-467: "Enable anonymous OpenShell telemetry from the gateway and the sandbox supervisors it launches." This also needs a regenerated deploy/helm/openshell/README.md:796, and the same wording in docs/kubernetes/setup.mdx:313.
  5. skills/debug-openshell-cluster/SKILL.md:565-566: "the gateway propagates the effective value to sandbox supervisors."

Related, possibly for a later PR in the stack:

  • With the enabled_env_value() calls gone, openshell-driver-vm no longer uses openshell_core::telemetry. Its telemetry feature now does nothing, but telemetry.mdx:30 still lists the VM driver among the binaries to build telemetry-free. The supervisor's telemetry feature was already in the same state.
  • openshell-driver-docker/Cargo.toml:55 also has an unused temp-env dev-dependency. It was unused before this PR, but the reason for dropping it from the Kubernetes and Podman drivers applies here too.

The Docker, Kubernetes, Podman and VM drivers copied the gateway's
OPENSHELL_TELEMETRY_ENABLED value into every sandbox environment, but
the sandbox supervisor never read it. Drop the injection, the
sandbox_env constant, the core helper that computed the value, and the
tests that pinned the propagation.

Signed-off-by: Simon Scatton <sscatton@nvidia.com>
@SDAChess
SDAChess force-pushed the refactor/4554-drop-sandbox-telemetry-env/SDAChess branch from d24077f to ac318f9 Compare November 23, 2026 08:56
@github-actions

Copy link
Copy Markdown

Compatibility review (advisory)

New or updated breaking changes; see the full report for all findings.

1. configuration — No explicit risk acceptance found

OPENSHELL_TELEMETRY_ENABLED was forwarded from the gateway into sandbox supervisor environments; Docker, Kubernetes, and Podman now omit it.

  • Impact: Custom supervisor images consuming this documented setting lose the gateway-controlled opt-out signal, including when Helm server.telemetryEnabled=false is set.
  • Action: Preserve OPENSHELL_TELEMETRY_ENABLED propagation for v0.1.10 and defer removal to a permitted minor train with notice and actionable migration guidance for supervisor-image consumers.
  • PR: refactor(drivers): stop passing the telemetry toggle into sandboxes #5814
Review details
  • Execution: complete
  • Candidate: PR #5814 (031b34ebe25906b105008066fa8c2ba7b8ef161e)
  • Baseline: 9c3c92f1023e15e711ab710cc67f0e490b46784c (9c3c92f1023e15e711ab710cc67f0e490b46784c)
  • Reviewed: rust-sdk, python-sdk, api-behavior, cli, configuration, policy, helm, state

Advisory review; publication gates are unchanged.

Branch check run

… toggle

The gateway no longer passes OPENSHELL_TELEMETRY_ENABLED into sandbox
environments, but the telemetry, Kubernetes setup and Helm docs, the VM
driver feature comment and the cluster debug skill still said it did.
Describe the setting as gateway-only.

Signed-off-by: Kris Hicks <khicks@nvidia.com>
@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Compatibility review (advisory)

New or updated breaking changes; see the full report for all findings.

1. configuration — No explicit risk acceptance found

Default supervisor_image and sandbox_runtime_image references move from ghcr.io/nvidia/openshell/* to quay.io/ai-openshell/*, while GHCR release publication stops.

  • Impact: Unchanged Docker/Podman deployments that allow GHCR but not Quay fail runtime image pulls, and existing GHCR gateway:latest consumers stop receiving releases.
  • Action: Retain GHCR runtime defaults and dual-publish versioned images and latest for v0.1.10, deferring the Quay-only transition to a permitted minor train with the migration guide.
  • PR: refactor(drivers): stop passing the telemetry toggle into sandboxes #5814
Review details
  • Execution: complete
  • Candidate: PR #5814 (e790bdc5a98394c112f866689b94025a28a2297c)
  • Baseline: 9c3c92f1023e15e711ab710cc67f0e490b46784c (9c3c92f1023e15e711ab710cc67f0e490b46784c)
  • Reviewed: rust-sdk, python-sdk, api-behavior, cli, configuration, policy, helm, state

Advisory review; publication gates are unchanged.

Branch check run

… no-ops

The VM driver's telemetry feature only enabled enabled_env_value(), which
the previous commit removed, and the supervisor's never compiled in
anything it called. Both still forwarded to openshell-core/telemetry
and carried a compile_error! guard, and the telemetry docs told
operators to build them, and openshell-sandbox, with
defaults-without-telemetry. Keep both features as deprecated no-ops so
existing build flags still work, drop the guards and their verify-script
entries, and check that the default supervisor build contains no
telemetry markers.

Signed-off-by: Kris Hicks <khicks@nvidia.com>
No Docker driver test uses temp-env.

Signed-off-by: Kris Hicks <khicks@nvidia.com>
The gateway sent anonymous usage events to an NVIDIA endpoint, and the
supervisor counted network activity only to feed them. Remove the
emitter, the server's lifecycle, policy and provider emission, the
compute-driver telemetry categories, the supervisor activity aggregator
and its producers, OPENSHELL_TELEMETRY_ENABLED, the Helm
server.telemetryEnabled value, the telemetry docs page and community
reports, and the CI checks that verified telemetry-free builds.

Delete the NetworkActivitySummary and DenialGroupCount messages and
reserve SubmitPolicyAnalysisRequest field 5. Supervisors that still send
it reach an early return for requests with no chunks or summaries, so
they don't trigger policy analysis or watch notifications. The gateway's
telemetry and defaults-without-telemetry features stay as deprecated
no-ops so existing build flags still work.

Signed-off-by: Kris Hicks <khicks@nvidia.com>
@krishicks
krishicks requested a review from a team as a code owner November 23, 2026 16:33
@github-actions

Copy link
Copy Markdown

Compatibility review (advisory)

New or updated breaking changes; see the full report for all findings.

1. rust-sdk — No explicit risk acceptance found

The public openshell_sdk::raw::proto module loses DenialGroupCount, NetworkActivitySummary, and SubmitPolicyAnalysisRequest.network_activity_summaries.

Review details
  • Execution: complete
  • Candidate: PR #5814 (79d9ee1e79b2a5f285c92f97147106a334320dd0)
  • Baseline: 9c3c92f1023e15e711ab710cc67f0e490b46784c (9c3c92f1023e15e711ab710cc67f0e490b46784c)
  • Reviewed: rust-sdk, python-sdk, api-behavior, cli, configuration, policy, helm, state

Advisory review; publication gates are unchanged.

Branch check run

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

state:accepted A maintainer decided OpenShell should pursue this issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants