Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix region
Matheus Nogueirabe15ca3ff3c4
diff --git a/backend/src/ee/services/honey-token/honey-token-service.ts b/backend/src/ee/services/honey-token/honey-token-service.tsindex c5df7ab793..84c2428c38 100644--- a/backend/src/ee/services/honey-token/honey-token-service.ts+++ b/backend/src/ee/services/honey-token/honey-token-service.ts@@ -200,8 +200,8 @@ export const honeyTokenServiceFactory = ({const iamUserName = `${HONEY_TOKEN_IAM_USER_PREFIX}${crypto.randomBytes(8).toString("hex")}`;- const { credentials: awsCredentials } = await getAwsConnectionConfig(awsConfig);- const iam = new IAMClient({ credentials: awsCredentials });+ const { credentials: awsCredentials, region } = await getAwsConnectionConfig(awsConfig);+ const iam = new IAMClient({ credentials: awsCredentials, region });await iam.send(new CreateUserCommand({ UserName: iamUserName }));@@ -516,8 +516,8 @@ export const honeyTokenServiceFactory = ({if (appConnection) {const decryptedConnection = await decryptAppConnection(appConnection, kmsService);const awsConfig = decryptedConnection as unknown as TAwsConnectionConfig;- const { credentials: awsCredentials } = await getAwsConnectionConfig(awsConfig);- const iam = new IAMClient({ credentials: awsCredentials });+ const { credentials: awsCredentials, region } = await getAwsConnectionConfig(awsConfig);+ const iam = new IAMClient({ credentials: awsCredentials, region });try {await iam.send(