From 8fb03e8ebfa6a3d35cc95e5fa44dd119c5489340 Mon Sep 17 00:00:00 2001 From: Nimish Date: Tue, 24 Mar 2026 15:08:50 +0800 Subject: [PATCH] fix: add missing verify=VERIFY_SSL to network requests fetch_app_key and fetch_wrapped_key_share were missing the verify=VERIFY_SSL parameter on their requests.get() calls, making them inconsistent with all other HTTP calls in the file and causing SSL failures with self-signed certificates. --- src/phase/utils/network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/phase/utils/network.py b/src/phase/utils/network.py index 59c6fa2..400a8dd 100644 --- a/src/phase/utils/network.py +++ b/src/phase/utils/network.py @@ -124,7 +124,7 @@ def fetch_app_key(token_type: str, app_token, host) -> str: URL = f"{host}/service/secrets/tokens/" - response = requests.get(URL, headers=headers) + response = requests.get(URL, headers=headers, verify=VERIFY_SSL) if response.status_code != 200: raise ValueError(f"Request failed with status code {response.status_code}: {response.text}") @@ -164,7 +164,7 @@ def fetch_wrapped_key_share(token_type: str, app_token: str, host: str) -> str: URL = f"{host}/service/secrets/tokens/" - response = requests.get(URL, headers=headers) + response = requests.get(URL, headers=headers, verify=VERIFY_SSL) if response.status_code != 200: raise ValueError(f"Request failed with status code {response.status_code}: {response.text}")