From 64c7e54b4dcf97eff90cae634dd3d5c09b8a9ee7 Mon Sep 17 00:00:00 2001 From: Tomas Kral Date: Fri, 9 Oct 2026 16:26:00 +0200 Subject: [PATCH] fix: disable Segment telemetry in E2E deployments Signed-off-by: Tomas Kral Assisted-by: Codex --- docs/changelog.md | 8 +++++++- docs/guide/configuration/config-files.md | 2 ++ package.json | 2 +- src/deployment/rhdh/config/common/rhdh-secrets.yaml | 1 + 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index de75aa4..9b3520f 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,7 +2,13 @@ All notable changes to this project will be documented in this file. -## [2.2.3] - Current +## [2.2.4] - Current + +### Fixed + +- Disable Segment telemetry by default in RHDH E2E deployments. Workspaces can override `SEGMENT_TEST_MODE` when exercising analytics with a dummy write key. + +## [2.2.3] ### Fixed diff --git a/docs/guide/configuration/config-files.md b/docs/guide/configuration/config-files.md index eed86ca..60b6a1d 100644 --- a/docs/guide/configuration/config-files.md +++ b/docs/guide/configuration/config-files.md @@ -97,6 +97,8 @@ stringData: Environment variables are substituted at deployment time. +The default `rhdh-secrets` Secret sets `SEGMENT_TEST_MODE: "true"` so E2E deployments do not send Segment telemetry. A workspace can override this value in its own `rhdh-secrets.yaml` when testing analytics with a dummy write key. + ## value_file.yaml (Helm) Helm values for RHDH chart: diff --git a/package.json b/package.json index 429d47a..35bd070 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@red-hat-developer-hub/e2e-test-utils", - "version": "2.2.3", + "version": "2.2.4", "description": "Test utilities for RHDH E2E tests", "license": "Apache-2.0", "repository": { diff --git a/src/deployment/rhdh/config/common/rhdh-secrets.yaml b/src/deployment/rhdh/config/common/rhdh-secrets.yaml index 274f623..41b9952 100644 --- a/src/deployment/rhdh/config/common/rhdh-secrets.yaml +++ b/src/deployment/rhdh/config/common/rhdh-secrets.yaml @@ -5,3 +5,4 @@ metadata: type: Opaque stringData: RHDH_BASE_URL: $RHDH_BASE_URL + SEGMENT_TEST_MODE: "true"