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
security comment
Matheus Nogueira03fd596e8c8d
diff --git a/backend/src/services/secret-sync/secret-sync-maps.ts b/backend/src/services/secret-sync/secret-sync-maps.tsindex a337e816d2..eeeff3828f 100644--- a/backend/src/services/secret-sync/secret-sync-maps.ts+++ b/backend/src/services/secret-sync/secret-sync-maps.ts@@ -213,12 +213,14 @@ export const SECRET_SYNC_SKIP_FIELDS_MAP: Record<SecretSync, string[]> = {const defaultDuplicateCheck: DestinationDuplicateCheckFn = () => true;const awsDuplicateCheck: DestinationDuplicateCheckFn = ({ existingConnectionId, newConnectionId }) => {- // TODO: we should also check the AWS account id here, otherwise- // two connections to the same account would cause issues.- // If assume role: get account id from ARN- // If credentials, use AWS_ACCESS_ID to infer the account id- return existingConnectionId === newConnectionId;- };+ if (!newConnectionId) return true;++ // TODO: we should also check the AWS account id here, otherwise+ // two connections to the same account would cause issues.+ // If assume role: get account id from ARN+ // If credentials, use AWS_ACCESS_ID to infer the account id+ return existingConnectionId === newConnectionId;+};export const DESTINATION_DUPLICATE_CHECK_MAP: Record<SecretSync, DestinationDuplicateCheckFn> = {[SecretSync.AWSParameterStore]: awsDuplicateCheck,