improve anonymization

This commit is contained in:
zadam
2023-10-03 23:14:02 +02:00
parent 78b6614eea
commit 7f06952d9e
4 changed files with 43 additions and 160 deletions

View File

@@ -7,8 +7,9 @@ const sql = require("./sql");
function getFullAnonymizationScript() {
// we want to delete all non-builtin attributes because they can contain sensitive names and values
// on the other hand builtin/system attrs should not contain any sensitive info
// on the other hand builtin/system attrs should not contain any sensitive info
const builtinAttrNames = BUILTIN_ATTRIBUTES
.filter(attr => !["shareCredentials"].includes(attr.name))
.map(attr => `'${attr.name}'`).join(', ');
const anonymizeScript = `