From b790dbb36f9fa0474dafc9a8f9aa4c70f024eae4 Mon Sep 17 00:00:00 2001 From: carlosmonastyrski Date: Tue, 17 Jun 2025 16:21:29 -0300 Subject: [PATCH] feat(dynamic-secret): Add tags to AWS IAM docs and add aws key-value limits to the schema --- docs/documentation/platform/dynamic-secrets/aws-iam.mdx | 9 +++++++++ .../CreateDynamicSecretForm/AwsIamInputForm.tsx | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/documentation/platform/dynamic-secrets/aws-iam.mdx b/docs/documentation/platform/dynamic-secrets/aws-iam.mdx index a02d80a5c..03bc5df84 100644 --- a/docs/documentation/platform/dynamic-secrets/aws-iam.mdx +++ b/docs/documentation/platform/dynamic-secrets/aws-iam.mdx @@ -161,6 +161,11 @@ Replace **\** with your AWS account id and **\** w {{replace identity.name 'user' 'replace'}} // testreplace ``` + + + Tags to be added to the created IAM User resource. + + Select *Assume Role* method. @@ -304,6 +309,10 @@ Replace **\** with your AWS account id and **\** w - `{{unixTimestamp}}`: Current Unix timestamp + + Tags to be added to the created IAM User resource. + + diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/AwsIamInputForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/AwsIamInputForm.tsx index 60bfa6304..f0750e07e 100644 --- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/AwsIamInputForm.tsx +++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/AwsIamInputForm.tsx @@ -71,7 +71,9 @@ const formSchema = z.object({ environment: z.object({ name: z.string(), slug: z.string() }), usernameTemplate: z.string().nullable().optional(), tags: z - .array(z.object({ key: z.string().trim().min(1), value: z.string().trim().min(1) })) + .array( + z.object({ key: z.string().trim().min(1).max(128), value: z.string().trim().min(1).max(256) }) + ) .optional() }); type TForm = z.infer;