Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .agents/skills/build-openshell-mxc-windows/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ The gateway's `compute-driver-mxc` feature independently links and registers
MXC on Windows. Each other `compute-driver-*` feature installs its own Windows
rejection stub without linking that driver crate. The default
`in-tree-compute-drivers` alias enables all five features. An MXC-only build
uses `--no-default-features --features compute-driver-mxc` (add `telemetry`
and `openshell-server/prebuilt-z3` as needed).
uses `--no-default-features --features compute-driver-mxc` (add
`openshell-server/prebuilt-z3` as needed).

| Driver | Windows build behavior | Runtime behavior |
|---|---|---|
Expand Down
6 changes: 0 additions & 6 deletions .agents/skills/test-release-canary/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ The Release Canary (`.github/workflows/release-canary.yml`) smoke-tests the arti
| `ubuntu-snap-docker-preflight` | `ubuntu-latest` | Verifies that `install.sh` rejects the OpenShell snap path when Docker is absent or supplied by the Docker snap, without installing OpenShell. |
| `kubernetes` | `ubuntu-latest` + kind | Installs the dev Helm chart, reaches the in-cluster gateway, and creates, executes in, and deletes a sandbox using the published runtime images. |

All canary jobs disable anonymous OpenShell telemetry. Host package jobs inject
`OPENSHELL_TELEMETRY_ENABLED=false` through the service environment, and the
Kubernetes job installs with `server.telemetryEnabled=false`, so smoke traffic
does not contribute to product usage metrics.

The workflow sets `OPENSHELL_VERSION=dev` for every `install.sh` job. Positive
jobs consume the rolling dev release produced by the triggering workflow. The
system-Docker snap lane tracks `latest/edge`; the missing-Docker lane exits
Expand Down Expand Up @@ -118,7 +113,6 @@ helm install openshell oci://ghcr.io/ai-openshell/openshell/helm-chart \
--version 0.0.0-dev \
--namespace openshell --create-namespace \
--set server.disableTls=true \
--set server.telemetryEnabled=false \
--wait --timeout 5m

kubectl wait --namespace openshell \
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/branch-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,6 @@ jobs:

- name: Test
shell: nix develop -c bash -euo pipefail {0}
env:
OPENSHELL_TELEMETRY_ENABLED: "false"
run: |
cargo nextest run --locked --profile ci --workspace --features openshell-server/test-support
cargo nextest run --locked --config-file .config/nextest.toml --profile ci --manifest-path examples/supervisor-middleware-content-guard/Cargo.toml
Expand Down Expand Up @@ -446,7 +444,6 @@ jobs:
shell: nix develop -c bash -euo pipefail {0}
env:
CONTAINER_ENGINE: docker
OPENSHELL_TELEMETRY_ENABLED: "false"
run: tasks/scripts/run-postgres-tests.sh --locked --profile ci

rust-build-modes:
Expand Down Expand Up @@ -479,12 +476,6 @@ jobs:
- name: Verify build modes
shell: nix develop -c bash -euo pipefail {0}
run: |
cargo build --locked -p openshell-gateway --bin openshell-gateway
tasks/scripts/verify-telemetry-compiled-out.sh present target/debug/openshell-gateway
cargo build --locked -p openshell-gateway --bin openshell-gateway --no-default-features --features defaults-without-telemetry
tasks/scripts/verify-telemetry-compiled-out.sh absent target/debug/openshell-gateway
cargo build --locked -p openshell-supervisor --bin openshell-supervisor --no-default-features --features defaults-without-telemetry
tasks/scripts/verify-telemetry-compiled-out.sh absent target/debug/openshell-supervisor
cargo check --locked -p openshell-supervisor --all-targets --no-default-features --features system-ca-roots

- name: Verify system CA roots dependency boundary
Expand All @@ -507,29 +498,6 @@ jobs:
exit 1
fi

rust-feature-alias:
name: Rust feature alias
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: ./.github/actions/setup-nix
with:
prepare-shell: "true"
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}

- uses: ./.github/actions/setup-rust
with:
cache-key: rust-checks-v2
save-cache: "false"

- name: Verify defaults-without-telemetry feature alias
shell: nix develop -c bash -euo pipefail {0}
run: |
tasks/scripts/verify-defaults-without-telemetry.sh
git diff --exit-code HEAD -- ':(glob)**/Cargo.lock'

rust-gateway-core-features:
name: Rust gateway core features
runs-on: ubuntu-24.04
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/release-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ defaults:

env:
OPENSHELL_VERSION: dev
OPENSHELL_TELEMETRY_ENABLED: "false"
INSTALL_SHA: ${{ github.event.workflow_run.head_sha || github.sha }}

jobs:
Expand All @@ -29,7 +28,6 @@ jobs:
- name: Ensure VM driver
run: |
launchctl setenv OPENSHELL_COMPUTE_DRIVER vm
launchctl setenv OPENSHELL_TELEMETRY_ENABLED "$OPENSHELL_TELEMETRY_ENABLED"

- name: Install and check gateway status
run: |
Expand Down Expand Up @@ -78,8 +76,7 @@ jobs:
fi
sudo systemctl start docker || sudo service docker start
mkdir -p "${HOME}/.config/openshell"
printf 'OPENSHELL_COMPUTE_DRIVER=docker\nOPENSHELL_TELEMETRY_ENABLED=%s\n' \
"$OPENSHELL_TELEMETRY_ENABLED" > "${HOME}/.config/openshell/gateway.env"
printf 'OPENSHELL_COMPUTE_DRIVER=docker\n' > "${HOME}/.config/openshell/gateway.env"
docker info

- name: Install and check status
Expand Down Expand Up @@ -171,14 +168,12 @@ jobs:
XDG_RUNTIME_DIR=/run/user/0 \
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus \
OPENSHELL_VERSION="$OPENSHELL_VERSION" \
OPENSHELL_TELEMETRY_ENABLED="$OPENSHELL_TELEMETRY_ENABLED" \
CANARY_SANDBOX="rc-${GITHUB_RUN_ID}" \
INSTALL_SH_URL="https://raw.githubusercontent.com/ai-openshell/openshell/${INSTALL_SHA}/install.sh" \
bash -s <<'EOF'
set -euo pipefail
mkdir -p "${HOME}/.config/openshell"
printf 'OPENSHELL_COMPUTE_DRIVER=podman\nOPENSHELL_TELEMETRY_ENABLED=%s\n' \
"$OPENSHELL_TELEMETRY_ENABLED" > "${HOME}/.config/openshell/gateway.env"
printf 'OPENSHELL_COMPUTE_DRIVER=podman\n' > "${HOME}/.config/openshell/gateway.env"
podman info
curl -LsSf "${INSTALL_SH_URL}" | sh
openshell status
Expand Down Expand Up @@ -227,8 +222,6 @@ jobs:
other_uid=$(id -u "$other_user")
sudo loginctl enable-linger "$other_user"
sudo systemctl start "user@${other_uid}.service"
systemctl --user set-environment \
"OPENSHELL_TELEMETRY_ENABLED=${OPENSHELL_TELEMETRY_ENABLED}"
curl -LsSf https://raw.githubusercontent.com/ai-openshell/openshell/${INSTALL_SHA}/install.sh |
DOCKER_HOST=unix:///tmp/nonexistent-docker.sock DOCKER_CONTEXT=nonexistent sh
sudo snap list openshell
Expand Down Expand Up @@ -432,7 +425,6 @@ jobs:
--namespace "$RELEASE_NAMESPACE" --create-namespace \
--set server.disableTls=true \
--set server.auth.allowUnauthenticatedUsers=true \
--set "server.telemetryEnabled=${OPENSHELL_TELEMETRY_ENABLED}" \
--wait --timeout 5m

- name: Verify gateway pod is Ready
Expand Down
4 changes: 0 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ SDKs connect applications to an OpenShell gateway. They do not install the CLI.

OpenShell is built agent-first: it is developed with the same agent-driven workflows it enables. See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and the contribution workflow, and [AGENTS.md](AGENTS.md) for repository coding conventions.

## Telemetry

OpenShell collects anonymous telemetry, limited to operational categories and counts, to help improve the project. It does not collect sandbox names, hostnames, file paths, prompts, credentials, provider or model names, or user content. To disable it, set `OPENSHELL_TELEMETRY_ENABLED=false` on the gateway, or `server.telemetryEnabled=false` for Helm installs. You can also compile telemetry out entirely. See [Telemetry](https://docs.nvidia.com/openshell/latest/observability/telemetry) for details and the [community telemetry reports](telemetry/README.md) for published usage trends.

## Notice and Disclaimer

This software automatically retrieves, accesses or interacts with external materials. Those retrieved materials are not distributed with this software and are governed solely by separate terms, conditions and licenses. You are solely responsible for finding, reviewing and complying with all applicable terms, conditions, and licenses, and for verifying the security, integrity and suitability of any retrieved materials for your specific use case. This software is provided "AS IS", without warranty of any kind. The author makes no representations or warranties regarding any retrieved materials, and assumes no liability for any losses, damages, liabilities or legal consequences from your use or inability to use this software or any retrieved materials. Use this software and the retrieved materials at your own risk.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3292,7 +3292,6 @@ async fn profile_commands_dispatch_scope_and_output_to_gateway() {
let mut command = tokio::process::Command::new(env!("CARGO_BIN_EXE_openshell"));
command
.env("XDG_CONFIG_HOME", config.path())
.env("OPENSHELL_TELEMETRY_ENABLED", "false")
.env_remove("OPENSHELL_GATEWAY")
.env_remove("COMPLETE")
.args([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ async fn proxy_exits_with_stdin_open(relay_status: tonic::Status) {
"test-token",
])
.env("XDG_CONFIG_HOME", config.path())
.env("OPENSHELL_TELEMETRY_ENABLED", "false")
.stdin(Stdio::piped())
.stdout(Stdio::null())
.stderr(Stdio::piped())
Expand Down
9 changes: 2 additions & 7 deletions crates/openshell-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ rustls = { workspace = true }
base64 = { workspace = true }
jsonwebtoken = { workspace = true, optional = true }
zeroize = { workspace = true, optional = true }
chrono = { version = "0.4", default-features = false, features = ["clock", "std"], optional = true }
reqwest = { workspace = true, features = ["blocking", "rustls-tls-native-roots-no-provider"], optional = true }
reqwest = { workspace = true, features = ["rustls-tls-native-roots-no-provider"], optional = true }
tar = { version = "0.4", optional = true }
tempfile = { version = "3", optional = true }
openshell-otel = { path = "../openshell-otel", optional = true }
Expand All @@ -50,12 +49,8 @@ rustix = { workspace = true }
libc = "0.2"

[features]
default = ["telemetry"]
## Compile in anonymous telemetry emission support. On by default; disable with
## `--no-default-features` (plus any other features you need) for a build that
## contains no telemetry endpoint, no HTTP client, and no emission code at all.
default = []
driver-extraction = ["dep:tar", "dep:tempfile"]
telemetry = ["dep:reqwest", "dep:chrono", "reqwest?/blocking"]
## OAuth2 token request helpers used by supervisor and gateway.
oauth = ["dep:reqwest"]
## Strict Ed25519 JWT issuance and verification for authenticated sandbox sessions.
Expand Down
50 changes: 0 additions & 50 deletions crates/openshell-core/src/activity.rs

This file was deleted.

11 changes: 4 additions & 7 deletions crates/openshell-core/src/grpc_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ use crate::proto::{
DenialSummary, EndpointObservation as ProtoEndpointObservation,
EndpointResult as ProtoEndpointResult, ExchangeProviderSubjectTokenRequest,
GetDraftPolicyRequest, GetSandboxConfigRequest, GetSandboxProviderEnvironmentRequest,
GetSandboxProviderEnvironmentResponse, IssueSandboxTokenRequest, NetworkActivitySummary,
PolicyChunk, PolicySource, PolicyStatus, RefreshSandboxTokenRequest,
ReportEndpointStatusRequest, ReportPolicyStatusRequest, SandboxPolicy as ProtoSandboxPolicy,
SubmitPolicyAnalysisRequest, SubmitPolicyAnalysisResponse, UpdateConfigRequest,
open_shell_client::OpenShellClient,
GetSandboxProviderEnvironmentResponse, IssueSandboxTokenRequest, PolicyChunk, PolicySource,
PolicyStatus, RefreshSandboxTokenRequest, ReportEndpointStatusRequest,
ReportPolicyStatusRequest, SandboxPolicy as ProtoSandboxPolicy, SubmitPolicyAnalysisRequest,
SubmitPolicyAnalysisResponse, UpdateConfigRequest, open_shell_client::OpenShellClient,
};
use crate::sandbox_env;
use crate::time::{duration_to_std, timestamp_to_millis};
Expand Down Expand Up @@ -2472,7 +2471,6 @@ impl CachedOpenShellClient {
sandbox_name: &str,
summaries: Vec<DenialSummary>,
proposed_chunks: Vec<PolicyChunk>,
network_activity_summaries: Vec<NetworkActivitySummary>,
analysis_mode: &str,
) -> Result<SubmitPolicyAnalysisResponse> {
let response = self
Expand All @@ -2482,7 +2480,6 @@ impl CachedOpenShellClient {
name: sandbox_name.to_string(),
summaries,
proposed_chunks,
network_activity_summaries,
analysis_mode: analysis_mode.to_string(),
workspace_scope: Some(crate::proto::workspace_selector(self.workspace())),
})
Expand Down
2 changes: 0 additions & 2 deletions crates/openshell-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
//! - Common error types
//! - Build version metadata

pub mod activity;
pub mod app_listener;
pub mod auth;
pub mod color;
Expand Down Expand Up @@ -65,7 +64,6 @@ pub mod sandbox_update;
pub mod secrets;
pub mod settings;
pub mod shell;
pub mod telemetry;
pub mod time;
pub mod token_endpoint;
pub mod token_grant_failure;
Expand Down
3 changes: 0 additions & 3 deletions crates/openshell-core/src/sandbox_env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,6 @@ impl MainProcessConfig {
}
}

/// Deployment-controlled telemetry toggle propagated to the sandbox supervisor.
pub const TELEMETRY_ENABLED: &str = "OPENSHELL_TELEMETRY_ENABLED";

/// Supervisor pod/runtime topology. Kubernetes sidecar mode sets this to
/// `"sidecar"`; the default combined supervisor path omits it.
pub const SUPERVISOR_TOPOLOGY: &str = "OPENSHELL_SUPERVISOR_TOPOLOGY";
Expand Down
Loading
Loading