Error logging on failed to decrypt

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Jakub Trávník 2025-12-01 16:17:05 +01:00 committed by GitHub
parent 07f7c5e025
commit 2306df316e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,7 +98,8 @@ async function processSecrets(
} else if (secretsMode === "cleartext") {
try {
result[key] = await cryptoUtils.decrypt(value);
} catch {
} catch (err) {
logger.warn(`Failed to decrypt field "${key}": ${err instanceof Error ? err.message : String(err)}`);
delete result[key];
}
}