Skip to content

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

guard against replication

Matheus Nogueiraebc6ba1e22a2
diff --git a/backend/src/services/secret-import/secret-import-service.ts b/backend/src/services/secret-import/secret-import-service.ts
index 168379b3dc..cbaa5c3c09 100644
--- a/backend/src/services/secret-import/secret-import-service.ts
+++ b/backend/src/services/secret-import/secret-import-service.ts
@@ -188,6 +188,12 @@ export const secretImportServiceFactory = ({
}
if (isReplication) {
+ if (isCrossProjectImport) {
+ throw new BadRequestError({
+ message: "Replication is not supported for cross-project imports"
+ });
+ }
+
const plan = await licenseService.getPlan(actorOrgId);
if (!plan.secretApproval) {
throw new BadRequestError({