From ec7368f1bc64b834c2743dcb856ad43327c9f193 Mon Sep 17 00:00:00 2001 From: Prowler Bot Date: Wed, 21 May 2025 12:35:45 +0200 Subject: [PATCH] fix: AWS I AM role validation when field is empty (#7805) Co-authored-by: sumit-tft <70506234+sumit-tft@users.noreply.github.com> 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 fe74b49210..83d1c5fb71 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(),