From ea96ad0fd8c873b091a0baf36023915e263c1e11 Mon Sep 17 00:00:00 2001 From: "Andoni A." <14891798+andoniaf@users.noreply.github.com> Date: Tue, 24 Feb 2026 12:45:46 +0100 Subject: [PATCH] fix(ui): restore alibabacloud credential validation in form schema The alibabacloud branch was accidentally dropped from the credentials ternary chain when image and openstack providers were added. --- ui/types/formSchemas.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ui/types/formSchemas.ts b/ui/types/formSchemas.ts index 7a348b7983..284841bc27 100644 --- a/ui/types/formSchemas.ts +++ b/ui/types/formSchemas.ts @@ -287,7 +287,18 @@ export const addCredentialsFormSchema = ( [ProviderCredentialFields.OPENSTACK_CLOUDS_YAML_CLOUD]: z.string().min(1, "Cloud name is required"), } - : {}), + : providerType === "alibabacloud" + ? { + [ProviderCredentialFields.ALIBABACLOUD_ACCESS_KEY_ID]: + z + .string() + .min(1, "Access Key ID is required"), + [ProviderCredentialFields.ALIBABACLOUD_ACCESS_KEY_SECRET]: + z + .string() + .min(1, "Access Key Secret is required"), + } + : {}), }) .superRefine((data: Record, ctx) => { if (providerType === "m365") {