From 961c81e97f8ec304b010e706d534d5da4ebdf241 Mon Sep 17 00:00:00 2001 From: Adrian Bonpin Date: Sun, 28 Jun 2026 17:32:14 +0800 Subject: [PATCH] fix(plugin): use unverified SSL context for DeckyVault API calls --- plugins/decky-vault/main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/decky-vault/main.py b/plugins/decky-vault/main.py index a6544ce..2eab047 100644 --- a/plugins/decky-vault/main.py +++ b/plugins/decky-vault/main.py @@ -1,6 +1,7 @@ import asyncio import json import os +import ssl try: import decky @@ -349,7 +350,8 @@ benchmark_percentiles=97,AVG,1,0.1 method="POST" ) - with urllib.request.urlopen(req, timeout=30) as response: + context = ssl._create_unverified_context() + with urllib.request.urlopen(req, timeout=30, context=context) as response: status = response.status body = response.read().decode('utf-8') result = json.loads(body) @@ -384,7 +386,8 @@ benchmark_percentiles=97,AVG,1,0.1 headers={"x-api-key": api_key}, method="GET" ) - with urllib.request.urlopen(req, timeout=10) as response: + context = ssl._create_unverified_context() + with urllib.request.urlopen(req, timeout=10, context=context) as response: # A 404 (game not found) still means the API key is valid return {"valid": True} except urllib.error.HTTPError as e: