Skip to content

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

don't fallback to the import secret path

Matheus Nogueirabe64d2adf310
diff --git a/backend/src/services/secret-import/secret-import-fns.ts b/backend/src/services/secret-import/secret-import-fns.ts
index d66e40bddd..4ccf0f21e0 100644
--- a/backend/src/services/secret-import/secret-import-fns.ts
+++ b/backend/src/services/secret-import/secret-import-fns.ts
@@ -476,7 +476,7 @@ export const fnSecretsV2FromImports = async ({
secretTags: item.tags,
secretComment: activeDecryptor(item.encryptedComment),
environment: importEnv.slug,
- secretPath: importAccessScopeByFolderId?.get(folderId)?.secretPath ?? importPath,
+ secretPath: importAccessScopeByFolderId?.get(folderId)?.secretPath ?? '',
workspace: "", // This field should not be used, it's only here to keep the older Python SDK versions backwards compatible with the new Postgres backend.
_id: item.id // The old Python SDK depends on the _id field being returned. We return this to keep the older Python SDK versions backwards compatible with the new Postgres backend.
}));