From f603bd83f411b714f583a64de677d3bc122f8e7f Mon Sep 17 00:00:00 2001 From: Isaac Satish Date: Tue, 16 Dec 2025 13:07:23 +0530 Subject: [PATCH 1/3] S-127566: Added K8S_SKIP_TLS_VERIFY env var to bypass SSL verification for legacy clusters --- digitalai/release/integration/k8s.py | 10 +++++++++- pyproject.toml | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/digitalai/release/integration/k8s.py b/digitalai/release/integration/k8s.py index 6aff685..a322563 100644 --- a/digitalai/release/integration/k8s.py +++ b/digitalai/release/integration/k8s.py @@ -1,3 +1,4 @@ +import os import threading from kubernetes import client, config @@ -27,7 +28,14 @@ def get_client(): except Exception: dai_logger.exception("Failed to load any Kubernetes config") raise RuntimeError("Could not configure Kubernetes client") - kubernetes_client = client.CoreV1Api() + # Check if SSL verification should be disabled (for legacy clusters) + if os.getenv('K8S_SKIP_TLS_VERIFY', 'false').lower() == 'true': + configuration = client.Configuration.get_default_copy() + configuration.verify_ssl = False + kubernetes_client = client.CoreV1Api(client.ApiClient(configuration)) + dai_logger.info("Kubernetes TLS certificate verification disabled") + else: + kubernetes_client = client.CoreV1Api() #dai_logger.info("Kubernetes client created successfully") return kubernetes_client diff --git a/pyproject.toml b/pyproject.toml index 7876f98..15a720f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ packages = ["digitalai"] [project] name = "digitalai_release_sdk" -version = "25.3.0" +version = "25.3.1" authors = [ { name="Digital.ai", email="pypi-devops@digital.ai" }, ] From f0e7450963677b0a8cae0f5f7dd365a23a956600 Mon Sep 17 00:00:00 2001 From: Isaac Satish Date: Tue, 16 Dec 2025 13:10:29 +0530 Subject: [PATCH 2/3] S-127566: Renamed flag to SKIP_TLS_LEGACY_K8S --- digitalai/release/integration/k8s.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/digitalai/release/integration/k8s.py b/digitalai/release/integration/k8s.py index a322563..640d5d0 100644 --- a/digitalai/release/integration/k8s.py +++ b/digitalai/release/integration/k8s.py @@ -29,7 +29,7 @@ def get_client(): dai_logger.exception("Failed to load any Kubernetes config") raise RuntimeError("Could not configure Kubernetes client") # Check if SSL verification should be disabled (for legacy clusters) - if os.getenv('K8S_SKIP_TLS_VERIFY', 'false').lower() == 'true': + if os.getenv('SKIP_TLS_LEGACY_K8S', 'false').lower() == 'true': configuration = client.Configuration.get_default_copy() configuration.verify_ssl = False kubernetes_client = client.CoreV1Api(client.ApiClient(configuration)) From a54cecbdf786e4d0adc189497bc1673bfc9c35c3 Mon Sep 17 00:00:00 2001 From: Balaji Venkatesan Date: Mon, 5 Jan 2026 11:21:23 +0530 Subject: [PATCH 3/3] Updated readme file --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index bfc2d22..83b3f1f 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,12 @@ class Hello(BaseTask): ## Changelog +### Version 25.3.1 + +#### 🛠️ Enhancements + +- **Added support** for skipping SSL verification in legacy clusters. + ### Version 25.3.0 #### 🛠️ Enhancements