Skip to content

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

dont flag as duplicate if sts fail

Matheus Nogueirad7feee98fdcf
diff --git a/backend/src/services/secret-sync/secret-sync-maps.ts b/backend/src/services/secret-sync/secret-sync-maps.ts
index 5bcb5c3ae1..fee1690e67 100644
--- a/backend/src/services/secret-sync/secret-sync-maps.ts
+++ b/backend/src/services/secret-sync/secret-sync-maps.ts
@@ -236,9 +236,7 @@ const awsDuplicateCheck: DestinationDuplicateCheckFn = async ({ existingSync, ne
getAwsAccountId(buildAwsConnectionConfig(newAwsConn, newAwsConn.credentials))
]);
- // If we can't verify the account id of any of the syncs, for safety reasons, we should
- // tag it as duplicates. Better fail here than cause sync conflicts later.
- if (!existingAccountId || !newAccountId) return true;
+ if (!existingAccountId || !newAccountId) return false;
return existingAccountId === newAccountId;
};