mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 13:01:56 +00:00
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.
This commit is contained in:
+12
-1
@@ -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<string, string | undefined>, ctx) => {
|
||||
if (providerType === "m365") {
|
||||
|
||||
Reference in New Issue
Block a user