audit logging on recoveryKey export
This commit is contained in:
parent
ced7a08672
commit
30047cbcf0
1 changed files with 1 additions and 0 deletions
|
|
@ -274,6 +274,7 @@ export const configExportController = new Hono()
|
||||||
if (includeRecoveryKey) {
|
if (includeRecoveryKey) {
|
||||||
try {
|
try {
|
||||||
recoveryKey = await Bun.file(RESTIC_PASS_FILE).text();
|
recoveryKey = await Bun.file(RESTIC_PASS_FILE).text();
|
||||||
|
logger.warn("Recovery key exported - this is a security-sensitive operation");
|
||||||
} catch {
|
} catch {
|
||||||
logger.warn("Could not read recovery key file");
|
logger.warn("Could not read recovery key file");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue