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
chore: rolled back bot not found errors
Daniel Hougaard2b35e20b1dec
diff --git a/backend/src/services/secret-import/secret-import-service.ts b/backend/src/services/secret-import/secret-import-service.tsindex 1481af2cde..9f40c97020 100644--- a/backend/src/services/secret-import/secret-import-service.ts+++ b/backend/src/services/secret-import/secret-import-service.ts@@ -548,7 +548,7 @@ export const secretImportServiceFactory = ({if (!botKey)throw new NotFoundError({message: "Project bot not found. Please upgrade your project.",- name: "BotNotFoundError"+ name: "bot_not_found_error"});const importedSecrets = await fnSecretsFromImports({ allowedImports, folderDAL, secretDAL, secretImportDAL });diff --git a/backend/src/services/secret/secret-fns.ts b/backend/src/services/secret/secret-fns.tsindex ce7507f445..3afde2f1eb 100644--- a/backend/src/services/secret/secret-fns.ts+++ b/backend/src/services/secret/secret-fns.ts@@ -835,7 +835,7 @@ export const createManySecretsRawFnFactory = ({if (!botKey)throw new NotFoundError({message: "Project bot not found. Please upgrade your project.",- name: "BotNotFoundError"+ name: "bot_not_found_error"});const inputSecrets = secrets.map((secret) => {const secretKeyEncrypted = encryptSymmetric128BitHexKeyUTF8(secret.secretName, botKey);@@ -1000,7 +1000,7 @@ export const updateManySecretsRawFnFactory = ({if (!botKey)throw new NotFoundError({message: "Project bot not found. Please upgrade your project.",- name: "BotNotFoundError"+ name: "bot_not_found_error"});const blindIndexCfg = await secretBlindIndexDAL.findOne({ projectId });if (!blindIndexCfg) throw new NotFoundError({ message: "Blind index not found", name: "Update secret" });diff --git a/backend/src/services/secret/secret-service.ts b/backend/src/services/secret/secret-service.tsindex b4eade55d3..8fcd7ad102 100644--- a/backend/src/services/secret/secret-service.ts+++ b/backend/src/services/secret/secret-service.ts@@ -1105,7 +1105,7 @@ export const secretServiceFactory = ({if (!botKey)throw new NotFoundError({message: "Project bot not found. Please upgrade your project.",- name: "BotNotFoundError"+ name: "bot_not_found_error"});const { secrets, imports } = await getSecrets({@@ -1269,7 +1269,7 @@ export const secretServiceFactory = ({if (!botKey)throw new NotFoundError({message: "Project bot not found. Please upgrade your project.",- name: "BotNotFoundError"+ name: "bot_not_found_error"});const decryptedSecret = decryptSecretRaw(encryptedSecret, botKey);@@ -1365,7 +1365,7 @@ export const secretServiceFactory = ({if (!botKey)throw new NotFoundError({message: "Project bot not found. Please upgrade your project.",- name: "BotNotFoundError"+ name: "bot_not_found_error"});const secretKeyEncrypted = encryptSymmetric128BitHexKeyUTF8(secretName, botKey);const secretValueEncrypted = encryptSymmetric128BitHexKeyUTF8(secretValue || "", botKey);@@ -1507,7 +1507,7 @@ export const secretServiceFactory = ({if (!botKey)throw new NotFoundError({message: "Project bot not found. Please upgrade your project.",- name: "BotNotFoundError"+ name: "bot_not_found_error"});const secretValueEncrypted = encryptSymmetric128BitHexKeyUTF8(secretValue || "", botKey);@@ -1633,7 +1633,7 @@ export const secretServiceFactory = ({if (!botKey)throw new NotFoundError({message: "Project bot not found. Please upgrade your project.",- name: "BotNotFoundError"+ name: "bot_not_found_error"});if (policy) {const approval = await secretApprovalRequestService.generateSecretApprovalRequest({@@ -1737,7 +1737,7 @@ export const secretServiceFactory = ({if (!botKey)throw new NotFoundError({message: "Project bot not found. Please upgrade your project.",- name: "BotNotFoundError"+ name: "bot_not_found_error"});const sanitizedSecrets = inputSecrets.map(({ secretComment, secretKey, metadata, tagIds, secretValue, skipMultilineEncoding }) => {@@ -1863,7 +1863,7 @@ export const secretServiceFactory = ({if (!botKey)throw new NotFoundError({message: "Project bot not found. Please upgrade your project.",- name: "BotNotFoundError"+ name: "bot_not_found_error"});const sanitizedSecrets = inputSecrets.map(({@@ -1995,7 +1995,7 @@ export const secretServiceFactory = ({if (!botKey)throw new NotFoundError({message: "Project bot not found. Please upgrade your project.",- name: "BotNotFoundError"+ name: "bot_not_found_error"});if (policy) {@@ -2332,7 +2332,7 @@ export const secretServiceFactory = ({if (!botKey)throw new NotFoundError({message: "Project bot not found. Please upgrade your project.",- name: "BotNotFoundError"+ name: "bot_not_found_error"});await secretDAL.transaction(async (tx) => {@@ -2418,7 +2418,7 @@ export const secretServiceFactory = ({if (!botKey) {throw new NotFoundError({message: "Project bot not found. Please upgrade your project.",- name: "BotNotFoundError"+ name: "bot_not_found_error"});}