mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-03 04:25:46 +00:00
chore: rolled back bot not found errors
This commit is contained in:
@@ -548,7 +548,7 @@ export const secretImportServiceFactory = ({
|
|||||||
if (!botKey)
|
if (!botKey)
|
||||||
throw new NotFoundError({
|
throw new NotFoundError({
|
||||||
message: "Project bot not found. Please upgrade your project.",
|
message: "Project bot not found. Please upgrade your project.",
|
||||||
name: "BotNotFoundError"
|
name: "bot_not_found_error"
|
||||||
});
|
});
|
||||||
|
|
||||||
const importedSecrets = await fnSecretsFromImports({ allowedImports, folderDAL, secretDAL, secretImportDAL });
|
const importedSecrets = await fnSecretsFromImports({ allowedImports, folderDAL, secretDAL, secretImportDAL });
|
||||||
|
|||||||
@@ -835,7 +835,7 @@ export const createManySecretsRawFnFactory = ({
|
|||||||
if (!botKey)
|
if (!botKey)
|
||||||
throw new NotFoundError({
|
throw new NotFoundError({
|
||||||
message: "Project bot not found. Please upgrade your project.",
|
message: "Project bot not found. Please upgrade your project.",
|
||||||
name: "BotNotFoundError"
|
name: "bot_not_found_error"
|
||||||
});
|
});
|
||||||
const inputSecrets = secrets.map((secret) => {
|
const inputSecrets = secrets.map((secret) => {
|
||||||
const secretKeyEncrypted = encryptSymmetric128BitHexKeyUTF8(secret.secretName, botKey);
|
const secretKeyEncrypted = encryptSymmetric128BitHexKeyUTF8(secret.secretName, botKey);
|
||||||
@@ -1000,7 +1000,7 @@ export const updateManySecretsRawFnFactory = ({
|
|||||||
if (!botKey)
|
if (!botKey)
|
||||||
throw new NotFoundError({
|
throw new NotFoundError({
|
||||||
message: "Project bot not found. Please upgrade your project.",
|
message: "Project bot not found. Please upgrade your project.",
|
||||||
name: "BotNotFoundError"
|
name: "bot_not_found_error"
|
||||||
});
|
});
|
||||||
const blindIndexCfg = await secretBlindIndexDAL.findOne({ projectId });
|
const blindIndexCfg = await secretBlindIndexDAL.findOne({ projectId });
|
||||||
if (!blindIndexCfg) throw new NotFoundError({ message: "Blind index not found", name: "Update secret" });
|
if (!blindIndexCfg) throw new NotFoundError({ message: "Blind index not found", name: "Update secret" });
|
||||||
|
|||||||
@@ -1105,7 +1105,7 @@ export const secretServiceFactory = ({
|
|||||||
if (!botKey)
|
if (!botKey)
|
||||||
throw new NotFoundError({
|
throw new NotFoundError({
|
||||||
message: "Project bot not found. Please upgrade your project.",
|
message: "Project bot not found. Please upgrade your project.",
|
||||||
name: "BotNotFoundError"
|
name: "bot_not_found_error"
|
||||||
});
|
});
|
||||||
|
|
||||||
const { secrets, imports } = await getSecrets({
|
const { secrets, imports } = await getSecrets({
|
||||||
@@ -1269,7 +1269,7 @@ export const secretServiceFactory = ({
|
|||||||
if (!botKey)
|
if (!botKey)
|
||||||
throw new NotFoundError({
|
throw new NotFoundError({
|
||||||
message: "Project bot not found. Please upgrade your project.",
|
message: "Project bot not found. Please upgrade your project.",
|
||||||
name: "BotNotFoundError"
|
name: "bot_not_found_error"
|
||||||
});
|
});
|
||||||
const decryptedSecret = decryptSecretRaw(encryptedSecret, botKey);
|
const decryptedSecret = decryptSecretRaw(encryptedSecret, botKey);
|
||||||
|
|
||||||
@@ -1365,7 +1365,7 @@ export const secretServiceFactory = ({
|
|||||||
if (!botKey)
|
if (!botKey)
|
||||||
throw new NotFoundError({
|
throw new NotFoundError({
|
||||||
message: "Project bot not found. Please upgrade your project.",
|
message: "Project bot not found. Please upgrade your project.",
|
||||||
name: "BotNotFoundError"
|
name: "bot_not_found_error"
|
||||||
});
|
});
|
||||||
const secretKeyEncrypted = encryptSymmetric128BitHexKeyUTF8(secretName, botKey);
|
const secretKeyEncrypted = encryptSymmetric128BitHexKeyUTF8(secretName, botKey);
|
||||||
const secretValueEncrypted = encryptSymmetric128BitHexKeyUTF8(secretValue || "", botKey);
|
const secretValueEncrypted = encryptSymmetric128BitHexKeyUTF8(secretValue || "", botKey);
|
||||||
@@ -1507,7 +1507,7 @@ export const secretServiceFactory = ({
|
|||||||
if (!botKey)
|
if (!botKey)
|
||||||
throw new NotFoundError({
|
throw new NotFoundError({
|
||||||
message: "Project bot not found. Please upgrade your project.",
|
message: "Project bot not found. Please upgrade your project.",
|
||||||
name: "BotNotFoundError"
|
name: "bot_not_found_error"
|
||||||
});
|
});
|
||||||
|
|
||||||
const secretValueEncrypted = encryptSymmetric128BitHexKeyUTF8(secretValue || "", botKey);
|
const secretValueEncrypted = encryptSymmetric128BitHexKeyUTF8(secretValue || "", botKey);
|
||||||
@@ -1633,7 +1633,7 @@ export const secretServiceFactory = ({
|
|||||||
if (!botKey)
|
if (!botKey)
|
||||||
throw new NotFoundError({
|
throw new NotFoundError({
|
||||||
message: "Project bot not found. Please upgrade your project.",
|
message: "Project bot not found. Please upgrade your project.",
|
||||||
name: "BotNotFoundError"
|
name: "bot_not_found_error"
|
||||||
});
|
});
|
||||||
if (policy) {
|
if (policy) {
|
||||||
const approval = await secretApprovalRequestService.generateSecretApprovalRequest({
|
const approval = await secretApprovalRequestService.generateSecretApprovalRequest({
|
||||||
@@ -1737,7 +1737,7 @@ export const secretServiceFactory = ({
|
|||||||
if (!botKey)
|
if (!botKey)
|
||||||
throw new NotFoundError({
|
throw new NotFoundError({
|
||||||
message: "Project bot not found. Please upgrade your project.",
|
message: "Project bot not found. Please upgrade your project.",
|
||||||
name: "BotNotFoundError"
|
name: "bot_not_found_error"
|
||||||
});
|
});
|
||||||
const sanitizedSecrets = inputSecrets.map(
|
const sanitizedSecrets = inputSecrets.map(
|
||||||
({ secretComment, secretKey, metadata, tagIds, secretValue, skipMultilineEncoding }) => {
|
({ secretComment, secretKey, metadata, tagIds, secretValue, skipMultilineEncoding }) => {
|
||||||
@@ -1863,7 +1863,7 @@ export const secretServiceFactory = ({
|
|||||||
if (!botKey)
|
if (!botKey)
|
||||||
throw new NotFoundError({
|
throw new NotFoundError({
|
||||||
message: "Project bot not found. Please upgrade your project.",
|
message: "Project bot not found. Please upgrade your project.",
|
||||||
name: "BotNotFoundError"
|
name: "bot_not_found_error"
|
||||||
});
|
});
|
||||||
const sanitizedSecrets = inputSecrets.map(
|
const sanitizedSecrets = inputSecrets.map(
|
||||||
({
|
({
|
||||||
@@ -1995,7 +1995,7 @@ export const secretServiceFactory = ({
|
|||||||
if (!botKey)
|
if (!botKey)
|
||||||
throw new NotFoundError({
|
throw new NotFoundError({
|
||||||
message: "Project bot not found. Please upgrade your project.",
|
message: "Project bot not found. Please upgrade your project.",
|
||||||
name: "BotNotFoundError"
|
name: "bot_not_found_error"
|
||||||
});
|
});
|
||||||
|
|
||||||
if (policy) {
|
if (policy) {
|
||||||
@@ -2332,7 +2332,7 @@ export const secretServiceFactory = ({
|
|||||||
if (!botKey)
|
if (!botKey)
|
||||||
throw new NotFoundError({
|
throw new NotFoundError({
|
||||||
message: "Project bot not found. Please upgrade your project.",
|
message: "Project bot not found. Please upgrade your project.",
|
||||||
name: "BotNotFoundError"
|
name: "bot_not_found_error"
|
||||||
});
|
});
|
||||||
|
|
||||||
await secretDAL.transaction(async (tx) => {
|
await secretDAL.transaction(async (tx) => {
|
||||||
@@ -2418,7 +2418,7 @@ export const secretServiceFactory = ({
|
|||||||
if (!botKey) {
|
if (!botKey) {
|
||||||
throw new NotFoundError({
|
throw new NotFoundError({
|
||||||
message: "Project bot not found. Please upgrade your project.",
|
message: "Project bot not found. Please upgrade your project.",
|
||||||
name: "BotNotFoundError"
|
name: "bot_not_found_error"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user