mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 15:27:27 +00:00
Fix: Add detailed decryption error logging
This commit is contained in:
@@ -210,7 +210,14 @@ const decryptSymmetric = ({ ciphertext, iv, tag, key }: DecryptSymmetricProps):
|
|||||||
try {
|
try {
|
||||||
plaintext = aes.decrypt({ ciphertext, iv, tag, secret: key });
|
plaintext = aes.decrypt({ ciphertext, iv, tag, secret: key });
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log("Failed to perform decryption");
|
console.log("Failed to decrypt with the following parameters", {
|
||||||
|
ciphertext,
|
||||||
|
iv,
|
||||||
|
tag,
|
||||||
|
key
|
||||||
|
});
|
||||||
|
console.log("Failed to perform decryption", err);
|
||||||
|
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user