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
remove check for static with the same name as rotation name
adilson25fdec497764
diff --git a/backend/src/services/secret-v2-bridge/secret-v2-bridge-service.ts b/backend/src/services/secret-v2-bridge/secret-v2-bridge-service.tsindex e14bb70f3a..b49c22331e 100644--- a/backend/src/services/secret-v2-bridge/secret-v2-bridge-service.ts+++ b/backend/src/services/secret-v2-bridge/secret-v2-bridge-service.ts@@ -2997,21 +2997,6 @@ export const secretV2BridgeServiceFactory = ({});}- const destinationRotations = await secretRotationV2DAL.find(- { projectId, folderId: destinationFolder.id },- undefined,- tx- );- const sourceKeySet = new Set(sourceKeys);- const conflictingRotationNames = destinationRotations- .filter((rotation) => sourceKeySet.has(rotation.name))- .map((rotation) => rotation.name);- if (conflictingRotationNames.length > 0) {- throw new BadRequestError({- message: `Cannot move secrets to '${destinationFolder.path}' because the following keys conflict with existing secret rotation names at the destination: ${conflictingRotationNames.join(", ")}`- });- }-const locallyCreatedSecrets = decryptedSourceSecrets.filter(({ key }) => !destinationSecretsGroupedByKey[key]?.[0]).map((el) => ({ ...el, operation: SecretOperations.Create }));