From 871c877a3370203e20f0d221b6e9b0c0ddbf4708 Mon Sep 17 00:00:00 2001 From: sumit-tft <70506234+sumit-tft@users.noreply.github.com> Date: Tue, 20 May 2025 14:55:40 +0530 Subject: [PATCH] fix: AWS I AM role validation when field is empty (#7787) Co-authored-by: Pablo Lara --- ui/CHANGELOG.md | 5 +++++ ui/types/formSchemas.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/CHANGELOG.md b/ui/CHANGELOG.md index a3ba578082..629b18aaec 100644 --- a/ui/CHANGELOG.md +++ b/ui/CHANGELOG.md @@ -4,7 +4,12 @@ All notable changes to the **Prowler UI** are documented in this file. ## [v1.8.0] (Prowler v5.8.0) – Not released +### 🐞 Fixes + +- Added validation to AWS IAM role. [(#7787)](https://github.com/prowler-cloud/prowler/pull/7787) + --- + ## [v1.7.0] (Prowler v5.7.0) ### 🚀 Added diff --git a/ui/types/formSchemas.ts b/ui/types/formSchemas.ts index 3fc096d03d..b0c64dfa24 100644 --- a/ui/types/formSchemas.ts +++ b/ui/types/formSchemas.ts @@ -155,7 +155,7 @@ export const addCredentialsRoleFormSchema = (providerType: string) => .object({ providerId: z.string(), providerType: z.string(), - role_arn: z.string().optional(), + role_arn: z.string().nonempty("AWS Role ARN is required"), external_id: z.string().optional(), aws_access_key_id: z.string().optional(), aws_secret_access_key: z.string().optional(),