From 98d62266baae5b45fc824b13348222bb837bbd80 Mon Sep 17 00:00:00 2001 From: Gros Frumos Date: Mon, 16 Mar 2026 19:27:55 +0200 Subject: [PATCH] =?UTF-8?q?kin:=20KIN-BIZ-005=20=D0=A3=D0=B1=D1=80=D0=B0?= =?UTF-8?q?=D1=82=D1=8C=20=D0=B4=D1=83=D0=B1=D0=BB=D0=B8=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=B5=20UI=20=D1=81=D1=80=D0=B5=D0=B4:=20Set?= =?UTF-8?q?tingsView=20vs=20ProjectView?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/api.py b/web/api.py index 189b9b2..4c245f2 100644 --- a/web/api.py +++ b/web/api.py @@ -1024,7 +1024,7 @@ def bootstrap(body: BootstrapRequest): # Environments (KIN-087) # --------------------------------------------------------------------------- -VALID_AUTH_TYPES = {"password", "key"} +VALID_AUTH_TYPES = {"password", "key", "ssh_key"} class EnvironmentCreate(BaseModel): @@ -1167,6 +1167,8 @@ def create_environment(project_id: str, body: EnvironmentCreate): conn.close() if "UNIQUE constraint" in str(e): raise HTTPException(409, f"Environment '{body.name}' already exists for this project") + if "KIN_SECRET_KEY" in str(e): + raise HTTPException(503, "Server misconfiguration: KIN_SECRET_KEY is not set. Contact admin.") raise HTTPException(500, str(e)) scan_task_id = None if body.is_installed: