Skip to content

Commit

Permalink
stronger light anonymization
Browse files Browse the repository at this point in the history
  • Loading branch information
zadam committed Jan 3, 2024
1 parent a28d884 commit 57ccd5a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/services/anonymization.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ function getLightAnonymizationScript() {
SELECT blobId FROM notes WHERE mime IN ('application/javascript;env=backend', 'application/javascript;env=frontend')
UNION ALL
SELECT blobId FROM revisions WHERE mime IN ('application/javascript;env=backend', 'application/javascript;env=frontend')
);`;
);
UPDATE options SET value = 'anonymized' WHERE name IN
('documentId', 'documentSecret', 'encryptedDataKey',
'passwordVerificationHash', 'passwordVerificationSalt',
'passwordDerivedKeySalt', 'username', 'syncServerHost', 'syncProxy')
AND value != '';`;
}

async function createAnonymizedCopy(type) {
Expand Down

0 comments on commit 57ccd5a

Please sign in to comment.