mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 16:27:46 +00:00
fix(kms): better error logs
This commit is contained in:
@@ -787,13 +787,16 @@ export const kmsServiceFactory = ({
|
|||||||
return projectDataKey;
|
return projectDataKey;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (error) {
|
||||||
|
logger.error(error, "Failed to get project data key");
|
||||||
|
throw error;
|
||||||
} finally {
|
} finally {
|
||||||
await lock?.release();
|
await lock?.release();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!project.kmsSecretManagerEncryptedDataKey) {
|
if (!project.kmsSecretManagerEncryptedDataKey) {
|
||||||
throw new Error("Missing project data key");
|
throw new BadRequestError({ message: "Missing project data key" });
|
||||||
}
|
}
|
||||||
|
|
||||||
const kmsDecryptor = await decryptWithKmsKey({
|
const kmsDecryptor = await decryptWithKmsKey({
|
||||||
|
|||||||
Reference in New Issue
Block a user