mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 09:28:06 +00:00
Merge pull request #3485 from Infisical/daniel/kms-logs
fix(kms): better error logs
This commit is contained in:
@@ -787,13 +787,19 @@ export const kmsServiceFactory = ({
|
|||||||
return projectDataKey;
|
return projectDataKey;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (error) {
|
||||||
|
logger.error(
|
||||||
|
error,
|
||||||
|
`getProjectSecretManagerKmsDataKey: Failed to get project data key for [projectId=${projectId}]`
|
||||||
|
);
|
||||||
|
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