Skip to content

Commit 962d376

Browse files
committed
chore: merge main into docker-podman-volumes
2 parents 4a074f3 + c4ca283 commit 962d376

48 files changed

Lines changed: 555 additions & 395 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.agents/skills/debug-openshell-cluster/SKILL.md‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,14 @@ kubectl -n openshell rollout status statefulset/openshell
138138

139139
Look for failed installs, unexpected values, missing namespace, wrong image tag, TLS settings that do not match the registered endpoint, and scheduling failures.
140140

141-
For HA or PostgreSQL-backed installs, also check the service-binding Secret and
142-
bundled PostgreSQL workload:
141+
For HA or PostgreSQL-backed installs, also check the external database Secret
142+
referenced by `server.externalDbSecret` and the PostgreSQL workload if the test
143+
or operator deployed one in-cluster:
143144

144145
```bash
145-
kubectl -n openshell get secret -l app.kubernetes.io/instance=openshell
146-
kubectl -n openshell get statefulset,pod,pvc -l app.kubernetes.io/instance=openshell
147-
kubectl -n openshell logs statefulset/openshell-postgres --tail=200
146+
kubectl -n openshell get secret openshell-ha-pg -o yaml
147+
kubectl -n openshell get deployment,service,pod -l app.kubernetes.io/name=openshell-e2e-postgres
148+
kubectl -n openshell logs deployment/openshell-e2e-postgres --tail=200
148149
```
149150

150151
Check required Helm deployment secrets:

‎.agents/skills/helm-dev-environment/SKILL.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ generates mTLS secrets on first install. Envoy Gateway opt-in; see the Optional
6666

6767
The gateway Service uses ClusterIP. Access is via Envoy Gateway (port `8080`) or `kubectl port-forward`.
6868

69-
**HA test deploy** (two gateway replicas + bundled PostgreSQL): uncomment
69+
**HA test deploy** (two gateway replicas + external PostgreSQL Secret): uncomment
7070
`#- ci/values-high-availability.yaml` in `deploy/helm/openshell/skaffold.yaml`,
71-
then run `mise run helm:skaffold:run` or `mise run helm:skaffold:dev`.
71+
create the Secret named `openshell-ha-pg` with a `uri` key, then run
72+
`mise run helm:skaffold:run` or `mise run helm:skaffold:dev`.
7273

7374
### TLS behaviour
7475

@@ -203,7 +204,7 @@ mise run helm:k3s:status
203204
| `deploy/helm/openshell/ci/values-skaffold.yaml` | Dev overrides (image pull policy, TLS disabled for local Skaffold) |
204205
| `deploy/helm/openshell/ci/values-cert-manager.yaml` | cert-manager PKI overlay (opt-in; disables pkiInitJob) |
205206
| `deploy/helm/openshell/ci/values-gateway.yaml` | Envoy Gateway GRPCRoute + Gateway overlay |
206-
| `deploy/helm/openshell/ci/values-high-availability.yaml` | HA test overlay (`replicaCount: 2` with bundled PostgreSQL) |
207+
| `deploy/helm/openshell/ci/values-high-availability.yaml` | HA test overlay (`replicaCount: 2` with external PostgreSQL Secret) |
207208
| `deploy/helm/openshell/ci/values-keycloak.yaml` | Keycloak OIDC overlay |
208209
| `deploy/helm/openshell/ci/values-tls-disabled.yaml` | Lint-only: TLS + auth disabled (reverse-proxy edge termination) |
209210
| `deploy/kube/manifests/envoy-gateway-openshell.yaml` | GatewayClass for Envoy Gateway (`mise run helm:gateway:apply`) |

‎.github/actions/release-helm-oci/action.yml‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,6 @@ runs:
7171
exit 1
7272
fi
7373
74-
- name: Build chart dependencies
75-
env:
76-
CHART_DIR: ${{ steps.prep.outputs.chart_dir }}
77-
shell: bash
78-
run: |
79-
set -euo pipefail
80-
helm dependency build "${CHART_DIR}"
81-
8274
- name: Package Helm chart
8375
env:
8476
CHART_DIR: ${{ steps.prep.outputs.chart_dir }}

‎.github/workflows/branch-checks.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ jobs:
122122
- name: Test
123123
run: mise run test:rust
124124

125+
- name: Verify telemetry can be compiled out
126+
run: mise run rust:verify:telemetry-off
127+
125128
- name: sccache stats
126129
if: always()
127130
run: |

‎.github/workflows/branch-e2e.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ jobs:
122122
image-tag: ${{ github.sha }}
123123
job-name: Kubernetes HA E2E (Rust smoke)
124124
extra-helm-values: deploy/helm/openshell/ci/values-high-availability.yaml
125+
external-postgres-secret: openshell-ha-pg
125126

126127
core-e2e-result:
127128
name: Core E2E result

‎.github/workflows/e2e-kubernetes-test.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ on:
2727
required: false
2828
type: string
2929
default: ""
30+
external-postgres-secret:
31+
description: "Create an ephemeral external PostgreSQL fixture and write its URI to this Secret"
32+
required: false
33+
type: string
34+
default: ""
3035
mise-version:
3136
description: "mise version to install on the bare Kubernetes e2e runner"
3237
required: false
@@ -111,6 +116,7 @@ jobs:
111116
env:
112117
OPENSHELL_E2E_KUBE_CONTEXT: kind-${{ env.KIND_CLUSTER_NAME }}
113118
OPENSHELL_E2E_KUBE_EXTRA_VALUES: ${{ inputs.extra-helm-values }}
119+
OPENSHELL_E2E_KUBE_EXTERNAL_POSTGRES_SECRET: ${{ inputs.external-postgres-secret }}
114120
IMAGE_TAG: ${{ inputs.image-tag }}
115121
OPENSHELL_REGISTRY: ghcr.io/nvidia/openshell
116122
run: mise run --no-deps --skip-deps e2e:kubernetes

‎README.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ OpenShell is built agent-first — your agent is your first collaborator. Before
249249

250250
OpenShell collects anonymous telemetry to help improve the project for developers. This data is not used to track individual user behavior. It helps us understand aggregate usage of sandbox, provider, and policy workflows so we can prioritize product improvements and share usage trends with the community.
251251

252-
Disable telemetry by setting `OPENSHELL_TELEMETRY_ENABLED=false` on the gateway deployment. OpenShell propagates this deployment setting into sandbox supervisor environments so sandbox-side telemetry collection is disabled as well.
252+
Disable telemetry at runtime by setting `OPENSHELL_TELEMETRY_ENABLED=false` on the gateway deployment. OpenShell propagates this deployment setting into sandbox supervisor environments so sandbox-side telemetry collection is disabled as well.
253+
254+
You can also compile telemetry out entirely. Telemetry support is a default-on `telemetry` Cargo feature; building with `--no-default-features` produces binaries that contain no telemetry endpoint, no telemetry HTTP client, and no emission code. Build telemetry-free artifacts with, for example, `cargo build --release -p openshell-server --no-default-features` (gateway) and the equivalent for `openshell-sandbox` and `openshell-driver-vm`. With telemetry compiled out, the gateway emits nothing and reports telemetry disabled to the sandboxes it launches.
253255

254256
Telemetry events are limited to anonymous operational categories and counts, such as sandbox lifecycle outcomes, provider profile buckets, policy decision counts, and aggregate network activity denial categories. OpenShell telemetry does not collect sandbox names or IDs, hostnames, file paths, binary paths, prompts, credentials, provider names, model names, or user content.
255257

‎architecture/build.md‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,25 @@ OpenShell builds these main artifacts:
2020

2121
Sandbox community images are built outside this repository.
2222

23+
## Build Features
24+
25+
Anonymous telemetry emission is gated behind a default-on `telemetry` Cargo
26+
feature. It is defined in `openshell-core` (where the emission code, HTTP
27+
client, and endpoint live) and forwarded by the binary crates that emit or
28+
collect telemetry: `openshell-server` (gateway), `openshell-sandbox`
29+
(supervisor), and `openshell-driver-vm`. Every crate depends on
30+
`openshell-core` with `default-features = false`, so the binary crate's feature
31+
is the single switch that enables `openshell-core/telemetry` for its build
32+
graph. In-process drivers (`docker`, `kubernetes`, `podman`) inherit the
33+
gateway's setting through feature unification and carry no passthrough.
34+
35+
Building a binary with `--no-default-features` compiles out telemetry entirely:
36+
no endpoint, no telemetry HTTP client, and no emission code. With telemetry
37+
compiled out, `telemetry::enabled()` is always `false` and the `emit_*` helpers
38+
are no-ops, so the data-model types stay available and dependent crates compile
39+
unchanged. The runtime `OPENSHELL_TELEMETRY_ENABLED` switch remains the way to
40+
disable telemetry in a default (telemetry-enabled) build.
41+
2342
## Linux Runtime Environments
2443

2544
OpenShell uses different Linux libc environments for different host artifacts.

‎architecture/compute-runtimes.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ runtime still owns GPU device injection.
9595

9696
## Deployment Shape
9797

98-
Kubernetes deployments use the Helm chart under `deploy/helm/openshell`.
98+
Kubernetes deployments use the Helm chart under `deploy/helm/openshell`. The
99+
chart deploys the gateway and sandbox runtime integration, but HA deployments
100+
must point `server.externalDbSecret` at an operator-managed PostgreSQL database.
99101
Standalone local deployments start the gateway with a selected runtime such as
100102
Docker, Podman, or VM. The CLI can register multiple gateways and switch between
101103
them without changing the sandbox architecture.

‎crates/openshell-bootstrap/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repository.workspace = true
1010
rust-version.workspace = true
1111

1212
[dependencies]
13-
openshell-core = { path = "../openshell-core" }
13+
openshell-core = { path = "../openshell-core", default-features = false }
1414
bollard = "0.20"
1515
bytes = { workspace = true }
1616
futures = { workspace = true }

0 commit comments

Comments
 (0)