audit logging on recoveryKey export

This commit is contained in:
Jakub Trávník 2025-12-01 16:56:59 +01:00
parent ced7a08672
commit 30047cbcf0

View file

@ -274,6 +274,7 @@ export const configExportController = new Hono()
if (includeRecoveryKey) {
try {
recoveryKey = await Bun.file(RESTIC_PASS_FILE).text();
logger.warn("Recovery key exported - this is a security-sensitive operation");
} catch {
logger.warn("Could not read recovery key file");
}