Harden Windows DLP enforcement and Electron runtime packaging

This commit is contained in:
Karl committed 2026-10-13 23:19:22 +02:00
1 parent e7d778aeac
commit 8a253eda89
120 files changed
+3569 -135

No files matched your search

-1
View File
@@ -6,7 +6,6 @@ import {join} from 'node:path';
import {openStore} from '../apps/server/store.mjs';
import {pruneAuditEvents,startAuditRetention} from '../apps/server/audit-retention.mjs';
function fixture(t){const directory=mkdtempSync(join(tmpdir(),'safetynet-retention-')),store=openStore(directory);t.after(()=>{store.db.close();rmSync(directory,{recursive:true,force:true});});return store;}
const old='2020-01-01T00:00:00.000Z';
test('retention preserves pending export, incident evidence and replay deduplication',t=>{
const s=fixture(t);s.db.exec('CREATE TABLE IF NOT EXISTS incident_cases(id TEXT PRIMARY KEY,event_id INTEGER REFERENCES events(id))');
for(let i=0;i<4;i++)s.event('device','dlp.block',{ruleId:'rule'});