From 4583eb1732c48d592f5baa826c902c1fc5932541 Mon Sep 17 00:00:00 2001 From: = Date: Fri, 6 Jun 2025 22:13:06 +0530 Subject: [PATCH] feat: removed console log --- backend/src/ee/services/dynamic-secret/providers/aws-iam.ts | 4 ---- docs/documentation/platform/dynamic-secrets/aws-iam.mdx | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/backend/src/ee/services/dynamic-secret/providers/aws-iam.ts b/backend/src/ee/services/dynamic-secret/providers/aws-iam.ts index b7144d78f..f69f606b4 100644 --- a/backend/src/ee/services/dynamic-secret/providers/aws-iam.ts +++ b/backend/src/ee/services/dynamic-secret/providers/aws-iam.ts @@ -46,7 +46,6 @@ export const AwsIamProvider = (): TDynamicProviderFns => { const $getClient = async (providerInputs: z.infer, projectId: string) => { const appCfg = getConfig(); if (providerInputs.method === AwsIamAuthType.AssumeRole) { - console.log(appCfg.DYNAMIC_SECRET_AWS_ACCESS_KEY_ID, appCfg.DYNAMIC_SECRET_AWS_SECRET_ACCESS_KEY); const stsClient = new STSClient({ region: providerInputs.region, credentials: @@ -70,7 +69,6 @@ export const AwsIamProvider = (): TDynamicProviderFns => { if (!assumeRes.Credentials?.AccessKeyId || !assumeRes.Credentials?.SecretAccessKey) { throw new BadRequestError({ message: "Failed to assume role - verify credentials and role configuration" }); } - console.log(assumeRes.Credentials); const client = new IAMClient({ region: providerInputs.region, credentials: { @@ -125,7 +123,6 @@ export const AwsIamProvider = (): TDynamicProviderFns => { const username = generateUsername(usernameTemplate); const { policyArns, userGroups, policyDocument, awsPath, permissionBoundaryPolicyArn } = providerInputs; - console.log("Hit"); const createUserRes = await client.send( new CreateUserCommand({ Path: awsPath, @@ -135,7 +132,6 @@ export const AwsIamProvider = (): TDynamicProviderFns => { }) ); - console.log("Hit fail"); if (!createUserRes.User) throw new BadRequestError({ message: "Failed to create AWS IAM User" }); if (userGroups) { await Promise.all( diff --git a/docs/documentation/platform/dynamic-secrets/aws-iam.mdx b/docs/documentation/platform/dynamic-secrets/aws-iam.mdx index 9c5ea31b3..470cbe4ae 100644 --- a/docs/documentation/platform/dynamic-secrets/aws-iam.mdx +++ b/docs/documentation/platform/dynamic-secrets/aws-iam.mdx @@ -178,7 +178,7 @@ Replace **\** with your AWS account id and **\** w ![Provision Lease](/images/platform/dynamic-secrets/provision-lease.png) - Ensure that the TTL for the lease fall within the maximum TTL defined when configuring the dynamic secret in step 4. + Ensure that the TTL for the lease falls within the maximum TTL defined when configuring the dynamic secret in step 4. Once you click the `Submit` button, a new secret lease will be generated and the credentials for it will be shown to you. @@ -280,7 +280,7 @@ Replace **\** with your AWS account id and **\** w ![Provision Lease](/images/platform/dynamic-secrets/provision-lease.png) - Ensure that the TTL for the lease fall within the maximum TTL defined when configuring the dynamic secret in step 4. + Ensure that the TTL for the lease falls within the maximum TTL defined when configuring the dynamic secret in step 4. Once you click the `Submit` button, a new secret lease will be generated and the credentials for it will be shown to you.