Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: removed explicit check for aws access key credential allowing to pick it automatically

=d5b17a8f24b1
diff --git a/backend/src/services/integration-auth/integration-sync-secret.ts b/backend/src/services/integration-auth/integration-sync-secret.ts
index c193b6e4c6..4d32f819a5 100644
--- a/backend/src/services/integration-auth/integration-sync-secret.ts
+++ b/backend/src/services/integration-auth/integration-sync-secret.ts
@@ -720,15 +720,15 @@ const syncSecretsAWSSecretManager = async ({
let secretAccessKey = "";
let sessionToken;
if (awsAssumeRoleArn) {
- if (!appCfg.CLIENT_ID_AWS_INTEGRATION || !appCfg.CLIENT_SECRET_AWS_INTEGRATION)
- throw new Error("Missing AWS Credentials for Assuming Role. Contact server admin.");
-
const client = new STSClient({
region: integration.region as string,
- credentials: {
- accessKeyId: appCfg.CLIENT_ID_AWS_INTEGRATION,
- secretAccessKey: appCfg.CLIENT_SECRET_AWS_INTEGRATION
- }
+ credentials:
+ appCfg.CLIENT_ID_AWS_INTEGRATION && appCfg.CLIENT_SECRET_AWS_INTEGRATION
+ ? {
+ accessKeyId: appCfg.CLIENT_ID_AWS_INTEGRATION,
+ secretAccessKey: appCfg.CLIENT_SECRET_AWS_INTEGRATION
+ }
+ : undefined
});
const command = new AssumeRoleCommand({
RoleArn: awsAssumeRoleArn,