backup engine fixes: shared-repo unlock, non-root uid reads, lock release, local-path repo, backblaze key id

This commit is contained in:
jarek committed 2026-07-31 10:10:55 +02:00
1 parent e700b5b6aa
commit e3c07f32da
15 files changed
+375 -313

No files matched your search

@@ -39,7 +39,7 @@ async function runMaintenanceTask(
const policies = parsePoliciesJson(dest.policies); // (audit #26/#37) safe-degrade + log on malformed
if (policies.autoUnlock) {
log('Auto-unlocking repository...');
await runRepoTask(destinationId, 'unlock');
await runRepoTask(destinationId, 'unlock', { staleOnly: true }); // plain unlock: never wipe a live foreign lock on a shared repo
}
log(`Running ${task}...`);
@@ -122,7 +122,7 @@ export async function runRepoVerify(
const policies = parsePoliciesJson(dest.policies); // (audit #26/#37) safe-degrade + log on malformed
if (policies.autoUnlock) {
log('Auto-unlocking repository...');
await runRepoTask(destinationId, 'unlock');
await runRepoTask(destinationId, 'unlock', { staleOnly: true }); // plain unlock: never wipe a live foreign lock on a shared repo
}
log(`Verifying ${dataSubset} of data...`);