mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 17:45:18 -05:00
The last item of docs/Compliance/README.md's P3 list, on the maintainer's decision: while ATTACHMENTS_PASSPHRASE is set (at least 16 characters), a site administrator gets Admin Panel / Attachments / Encrypt, which encrypts or decrypts every attachment on this server's disk in the background with progress, and turns on encryption of new attachments. - AES-256-CTR (server/lib/attachmentEncryption.js), so a download can start anywhere: the counter for any byte is the IV plus its block. The key is stretched from the passphrase with scrypt once per salt and kept in memory. Each file starts with WKATT1, the salt and its own IV; a file without the header is plain and read as before. - Every read goes through FileStoreStrategyFilesystem.getReadStream, which decrypts - byte ranges included - so every address, preview, export and storage move is unchanged; the board export and the WebDAV move, which read the file directly, use the same decrypting read. - New uploads are encrypted after their validation and indexing, which need the plain file; imports, e-mail to card and the REST API by an hourly sweep. Each changed attachment's meta.updatedAt is set, so the filesystem integrity scan sees the change explained. The runs and the switch are in the Audit log. - On every platform, the snap and the Helm chart (from a Secret). Tested against a live server (tests/playwright/specs/attachment-encryption.e2e.js): an attachment encrypted on disk downloads at the same address, whole and as a byte range, and decrypts back to the same bytes. Seven new strings, translated in every language. Low confidence: ace, ak, ay, bi, bm, bo, bua, chr, csb, dz, ee, ff, fj, gn, gv, haw, iu, kl, kok, ks, kw, lg, lld, nah, nap, nd, nso, fur, mg, tlh, tig, ti, wal, om, ve-PP, ve-CC, rup, zgh, uz-AR, sah, vo, wuu-Hans, se, qu, to, sm, ss, ts, ve, ny, rn, tn, st, wa, sc, scn. Thanks to xet7 !
2374 lines
98 KiB
JavaScript
2374 lines
98 KiB
JavaScript
'use strict';
|
|
|
|
// Personal-data inventory: every MongoDB collection WeKan defines, what
|
|
// personal data it holds, why, for how long, and what happens to it when a
|
|
// person is erased (docs/Compliance/README.md rows 2.1 and 2.2, work package
|
|
// WP-3; [GDPR] Art. 30(1), [LGPD] Art. 37, [PIPL] Art. 51).
|
|
//
|
|
// It is the ONE list the later work packages are driven from - erasure
|
|
// (WP-4), the personal-data export (WP-5) and the privacy notice and Admin
|
|
// Panel / Settings / Privacy pages (WP-6) - so a collection added without an
|
|
// entry here is a collection none of them know about.
|
|
// tests/personalDataInventory.test.cjs scans the tree for every
|
|
// `new Mongo.Collection('x')` and Meteor-Files `collectionName: 'x'` and
|
|
// fails on one that is missing, on an entry whose collection no longer
|
|
// exists, and on a new erasure gap. docs/Compliance/Data-Inventory.md is
|
|
// generated from it by releases/compliance/data-inventory.mjs.
|
|
//
|
|
// Fields of an entry:
|
|
// collection the MongoDB collection name.
|
|
// definedIn the file that defines it; `definedBy` is the text that
|
|
// proves it there for a collection that has no
|
|
// `new Mongo.Collection` line (Meteor.users, GridFS buckets).
|
|
// categories subset of CATEGORIES; ['none'] alone = no personal data.
|
|
// 'health' and 'financial' are SPECIAL_CATEGORIES: health is
|
|
// a special category under [GDPR] Art. 9 (workload absences
|
|
// of type "sick"); financial data needs the same care.
|
|
// subjectField the field(s) linking a row to a person, or null.
|
|
// purpose one sentence.
|
|
// legalBasisHint a HINT for the controller (the operator of the instance),
|
|
// not a decision: the operator decides its legal basis.
|
|
// retention { env: the environment variable or Admin Panel setting
|
|
// that limits it, or null; default: how long it is kept;
|
|
// where: the file that enforces it, or null }.
|
|
// erasure what erasing a person should do to their rows:
|
|
// 'delete', 'anonymize', 'keep-pseudonymous' (kept, linked
|
|
// only by an id, e.g. authored history kept by #1289) or
|
|
// 'n/a'.
|
|
// erasureWhere the file that ACTUALLY does it today on user deletion or
|
|
// anonymisation, or null when nothing does (the WP-4 gap).
|
|
// For an integrity-checked delivery record - a checksum
|
|
// protects it against replay, so it is never rewritten - it
|
|
// is the compaction that reduces the row to ids, and its
|
|
// notes say how soon.
|
|
// notes what a reader needs to know, honestly.
|
|
//
|
|
// Pure data and helpers, no Meteor, CommonJS - like models/lib/userDeletionCleanup.js.
|
|
|
|
const CATEGORIES = Object.freeze([
|
|
'identity', 'contact', 'network', 'usage', 'content', 'health', 'financial', 'auth', 'none',
|
|
]);
|
|
|
|
const SPECIAL_CATEGORIES = Object.freeze(['health', 'financial']);
|
|
|
|
const ERASURE = Object.freeze(['delete', 'anonymize', 'keep-pseudonymous', 'n/a']);
|
|
|
|
const INVENTORY = Object.freeze([
|
|
{
|
|
collection: 'accessibilitySettings',
|
|
definedIn: 'models/accessibilitySettings.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Admin-written accessibility statement page (title, body, enabled).',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until changed', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Instance configuration, no per-person fields.',
|
|
},
|
|
{
|
|
collection: 'accountSettings',
|
|
definedIn: 'models/accountSettings.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Instance-wide account switches set in Admin Panel (boolean values by key).',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until changed', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Global settings keyed by setting name, not by user.',
|
|
},
|
|
{
|
|
collection: 'actions',
|
|
definedIn: 'models/actions.js',
|
|
categories: ['contact', 'content'],
|
|
subjectField: null,
|
|
purpose: 'Board rule actions (what a rule does when its trigger fires).',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'board lifetime', where: 'server/models/boards.js' },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Schemaless; a send-email action can hold recipient e-mail addresses and a username action a username typed by a board admin. Not linked to a userId, so not found by user erasure.',
|
|
},
|
|
{
|
|
collection: 'activities',
|
|
definedIn: 'models/activities.js',
|
|
categories: ['usage', 'content'],
|
|
subjectField: 'userId, memberId',
|
|
purpose: 'Board activity feed: who did what to which board, list, card or comment.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: 'ACTIVITIES_RETENTION_DAYS', default: 'board lifetime (off unless set)', where: 'server/lib/activitiesRetention.js' },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Kept on user deletion by design (#1289, models/lib/userDeletionCleanup.js header) so history stays readable; no age-based removal (Compliance README 2.7). Rows can embed comment text and attachment names.',
|
|
},
|
|
{
|
|
collection: 'activityNotificationControls',
|
|
definedIn: 'server/notifications/activityPlans.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Operator controls (pause/cancel) for activity notification delivery.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'activityNotificationIntents',
|
|
definedIn: 'server/notifications/activityIntents.js',
|
|
categories: ['usage', 'content'],
|
|
subjectField: 'dispatchUserId',
|
|
purpose: 'Captures each activity that still has notifications to deliver.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'compacted once delivered or cancelled', where: 'server/lib/activityNotificationCancellationRetention.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'server/lib/activityNotificationCancellationRetention.js',
|
|
notes: 'Stores a copy of the activity document (actor id, card/board ids, text) while pending. Integrity-checked: never rewritten on erasure. A pending intent is delivered or, after ACTIVITY_NOTIFICATION_MAX_AGE_DAYS (7), cancelled, and then compacted to ids and a hash; delivery to a deleted account is skipped.',
|
|
},
|
|
{
|
|
collection: 'activityNotificationLeases',
|
|
definedIn: 'server/notifications/activityPlans.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Renewable writer leases for activity notification delivery.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'activityNotificationPlans',
|
|
definedIn: 'server/notifications/activityPlans.js',
|
|
categories: ['usage', 'content'],
|
|
subjectField: 'plan.recipients',
|
|
purpose: 'Frozen per-activity recipient and message plan for tray/e-mail delivery.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'compacted after delivery', where: 'server/lib/activityNotificationPlanRetention.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'server/lib/activityNotificationPlanRetention.js',
|
|
notes: 'Compaction keeps the id and a checksum; recipient user ids remain in uncompacted plans. Integrity-checked: never rewritten on erasure; compacted to ids and a checksum once delivered, and delivery to a deleted account is skipped.',
|
|
},
|
|
{
|
|
collection: 'activityPubFollowers',
|
|
definedIn: 'server/activityPub.js',
|
|
categories: ['identity', 'network'],
|
|
subjectField: null,
|
|
purpose: 'Fediverse actors (actor URL and inbox) that follow a public board.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until the actor sends Undo Follow', where: 'server/activityPub.js' },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Remote people, not WeKan users: no userId link. Rows are removed only by an Undo Follow; not removed with the board. Not reachable by erasing a WeKan account: a follower is a remote person with no account here, and their own erasure is the ActivityPub Undo Follow that removes the row.',
|
|
},
|
|
{
|
|
collection: 'activityPubKeys',
|
|
definedIn: 'server/activityPub.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'The instance key pair that signs ActivityPub requests.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'instance lifetime', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Instance secret, no personal data.',
|
|
},
|
|
{
|
|
collection: 'adminAuditLog',
|
|
definedIn: 'server/adminAudit.js',
|
|
categories: ['identity', 'network', 'usage'],
|
|
subjectField: 'actorId',
|
|
purpose: 'Audit trail of administrator actions: who, when, which method, masked arguments, client IP.',
|
|
legalBasisHint: 'legal obligation',
|
|
retention: { env: 'ADMIN_AUDIT_RETENTION_DAYS', default: '365 days (0 keeps it)', where: 'server/adminAudit.js' },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Stores actorUsername and ip besides actorId; args may name the target user. Kept on user deletion as an audit record; nothing pseudonymises actorUsername yet.',
|
|
},
|
|
{
|
|
collection: 'announcements',
|
|
definedIn: 'models/announcements.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Admin-written announcement banner shown to signed-in users.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until changed', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Instance configuration.',
|
|
},
|
|
{
|
|
collection: 'archivedSwimlaneIds',
|
|
definedIn: 'models/lib/archivedSwimlaneIds.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Client-only collection that the boardArchivedSwimlaneIds publication fills with the archived swimlane ids of a board.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'not stored (client memory only)', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Created only on the client (Meteor.isClient); one { _id: boardId, ids } document per board, no person.',
|
|
},
|
|
{
|
|
collection: 'attachmentBulkMoveStatus',
|
|
definedIn: 'models/attachmentBulkMoveStatus.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Progress of the server-side bulk attachment storage move job.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until overwritten by the next job', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Singleton job status.',
|
|
},
|
|
{
|
|
collection: 'attachmentEncryption',
|
|
definedIn: 'server/lib/attachmentEncryptionRun.js',
|
|
definedBy: "export const AttachmentEncryptionSettings = new Mongo.Collection('attachmentEncryption');",
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Whether new attachments are encrypted (Admin Panel / Attachments / Encrypt).',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until changed', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Instance configuration, no per-person fields; the passphrase is never stored here.',
|
|
},
|
|
{
|
|
collection: 'attachmentMigrationStatus',
|
|
definedIn: 'models/attachmentMigrationStatus.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Progress of the attachment migration job.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Job status only.',
|
|
},
|
|
{
|
|
collection: 'attachments',
|
|
definedIn: 'models/attachments.js',
|
|
categories: ['content', 'identity'],
|
|
subjectField: 'userId',
|
|
purpose: 'Metadata of files uploaded to cards and boards (Meteor-Files); the file bytes are in the configured storage.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: 'ATTACHMENTS_RETENTION_DAYS (Admin Panel / Attachments / Retention)', default: 'board lifetime; soft-deleted ones purged after the retention period (0 = keep)', where: 'server/attachmentRetention.js' },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Uploads stay with the board when the uploader is deleted; file content can itself contain any personal data, including Art. 9 data, which WeKan cannot classify.',
|
|
},
|
|
{
|
|
collection: 'attachments.chunks',
|
|
definedIn: 'models/attachments.server.js',
|
|
definedBy: 'db.collection(\'attachments.chunks\')',
|
|
categories: ['content'],
|
|
subjectField: null,
|
|
purpose: 'GridFS chunks (file bytes) of attachments stored in the database.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: 'ATTACHMENTS_RETENTION_DAYS (Admin Panel / Attachments / Retention)', default: 'as the attachments row', where: 'server/attachmentRetention.js' },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Removed with the attachment.',
|
|
},
|
|
{
|
|
collection: 'attachments.files',
|
|
definedIn: 'models/attachments.server.js',
|
|
definedBy: 'createBucket(\'attachments\')',
|
|
categories: ['content'],
|
|
subjectField: null,
|
|
purpose: 'GridFS file records of attachments stored in the database.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: 'ATTACHMENTS_RETENTION_DAYS (Admin Panel / Attachments / Retention)', default: 'as the attachments row', where: 'server/attachmentRetention.js' },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Linked to a person only through the attachments row; the bytes may contain any personal data.',
|
|
},
|
|
{
|
|
collection: 'attachmentStorageSettings',
|
|
definedIn: 'models/attachmentStorageSettings.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Where attachments are stored and the upload/download limits.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until changed', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Instance configuration; may hold storage credentials (secrets, not personal data).',
|
|
},
|
|
{
|
|
collection: 'avatars',
|
|
definedIn: 'models/avatars.js',
|
|
categories: ['identity'],
|
|
subjectField: 'userId',
|
|
purpose: 'Profile pictures users upload (Meteor-Files).',
|
|
legalBasisHint: 'consent',
|
|
retention: { env: null, default: 'until replaced or the account is deleted', where: null },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userDeletionCleanup.js',
|
|
notes: 'A photo of a face is personal data; removed with the user. Anonymisation (models/lib/userAnonymization.js) only clears profile.avatarUrl and leaves the uploaded file.',
|
|
},
|
|
{
|
|
collection: 'avatars.chunks',
|
|
definedIn: 'models/avatars.server.js',
|
|
definedBy: 'createBucket(\'avatars\')',
|
|
categories: ['identity'],
|
|
subjectField: null,
|
|
purpose: 'GridFS chunks (image bytes) of uploaded profile pictures.',
|
|
legalBasisHint: 'consent',
|
|
retention: { env: null, default: 'as the avatars row', where: null },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userDeletionCleanup.js',
|
|
notes: 'A photo of a face; removed with the avatars row.',
|
|
},
|
|
{
|
|
collection: 'avatars.files',
|
|
definedIn: 'models/avatars.server.js',
|
|
definedBy: 'createBucket(\'avatars\')',
|
|
categories: ['identity'],
|
|
subjectField: null,
|
|
purpose: 'GridFS file records of uploaded profile pictures stored in the database.',
|
|
legalBasisHint: 'consent',
|
|
retention: { env: null, default: 'as the avatars row', where: null },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userDeletionCleanup.js',
|
|
notes: 'Removed when the avatars row is removed on user deletion (the FilesCollection removes the stored file).',
|
|
},
|
|
{
|
|
collection: 'backupRuns',
|
|
definedIn: 'server/lib/backupRuns.js',
|
|
categories: ['usage'],
|
|
subjectField: 'userId',
|
|
purpose: 'History of backup runs: trigger, who started it, host, result.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: '400 days (HISTORY_DAYS)', where: 'server/lib/backupRuns.js' },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'userId of the admin who started a manual run, or null.',
|
|
},
|
|
{
|
|
collection: 'backupSettings',
|
|
definedIn: 'server/methods/backup.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Backup schedule set in Admin Panel / Attachments / Backup.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'one row, overwritten', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Doubtful: schedule document not read field by field.',
|
|
},
|
|
{
|
|
collection: 'billingBudgets',
|
|
definedIn: 'models/billing.js',
|
|
categories: ['financial'],
|
|
subjectField: 'createdBy',
|
|
purpose: 'A board budget in money and/or hours.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'board lifetime', where: 'server/billing.js' },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'FINANCIAL data of the organisation; linked to a person only through createdBy.',
|
|
},
|
|
{
|
|
collection: 'billingExpenses',
|
|
definedIn: 'models/billing.js',
|
|
categories: ['financial', 'content'],
|
|
subjectField: 'userId, createdBy',
|
|
purpose: 'Expenses of a board\'s work (travel, materials, subcontractors).',
|
|
legalBasisHint: 'legal obligation',
|
|
retention: { env: null, default: 'board lifetime; invoiced ones kept as records after the board is deleted', where: 'server/billing.js' },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'FINANCIAL data; userId names whose expense it was. Invoiced expenses are accounting records (statutory retention is the controller\'s to decide).',
|
|
},
|
|
{
|
|
collection: 'billingFees',
|
|
definedIn: 'models/billing.js',
|
|
categories: ['financial'],
|
|
subjectField: 'createdBy',
|
|
purpose: 'Fixed fees to bill on a board.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'board lifetime', where: 'server/billing.js' },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'FINANCIAL data.',
|
|
},
|
|
{
|
|
collection: 'billingInvoices',
|
|
definedIn: 'models/billing.js',
|
|
categories: ['financial', 'identity', 'contact'],
|
|
subjectField: 'lines.userId, createdBy',
|
|
purpose: 'Invoices of a board\'s billable hours, fees and expenses, with customer and payments.',
|
|
legalBasisHint: 'legal obligation',
|
|
retention: { env: null, default: 'until deleted (kept after the board is deleted: invoices are records)', where: 'server/billing.js' },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'FINANCIAL data; the customer field can name a natural person; lines name the member whose hours were billed. Accounting law usually requires keeping invoices, so erasure must not delete them.',
|
|
},
|
|
{
|
|
collection: 'billingProfiles',
|
|
definedIn: 'models/billing.js',
|
|
categories: ['financial', 'identity', 'contact'],
|
|
subjectField: 'createdBy',
|
|
purpose: 'Who issues a board\'s invoices: issuer details, VAT ID, payment terms and methods.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'board lifetime', where: 'server/billing.js' },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'FINANCIAL data: bank account / payment details, which identify a sole trader issuer.',
|
|
},
|
|
{
|
|
collection: 'billingQuotes',
|
|
definedIn: 'models/billing.js',
|
|
categories: ['financial', 'identity', 'contact'],
|
|
subjectField: 'createdBy',
|
|
purpose: 'Priced quotes for a customer to accept.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until deleted (not removed with the board)', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'FINANCIAL data; customer name, country and VAT ID; issuer snapshot.',
|
|
},
|
|
{
|
|
collection: 'billingRates',
|
|
definedIn: 'models/billing.js',
|
|
categories: ['financial'],
|
|
subjectField: 'userId, createdBy',
|
|
purpose: 'Hourly rates on a board: a member\'s own or the board default.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'board lifetime', where: 'server/billing.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'FINANCIAL data: a member\'s own hourly rate is personal pay data. Not removed when the member is deleted.',
|
|
},
|
|
{
|
|
collection: 'board_email_addresses',
|
|
definedIn: 'server/emailToCard.js',
|
|
categories: ['contact', 'auth'],
|
|
subjectField: 'userId',
|
|
purpose: 'A member\'s personal secret e-mail address (token) for sending cards to a board.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until the member makes a new address', where: 'server/emailToCard.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Not removed on user deletion or with the board; an orphaned row is refused on use because the member lost access.',
|
|
},
|
|
{
|
|
collection: 'boardMovementMatches',
|
|
definedIn: 'server/publications/boardMovementMatches.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Client-only publication of card ids matching a movement filter.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'not stored', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Virtual collection sent by publication.added; nothing in MongoDB.',
|
|
},
|
|
{
|
|
collection: 'boards',
|
|
definedIn: 'models/boards.js',
|
|
categories: ['identity', 'content'],
|
|
subjectField: 'members.userId, watchers.userId',
|
|
purpose: 'Boards with their title, description, members, roles and settings.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until the board is deleted', where: null },
|
|
erasure: 'anonymize',
|
|
erasureWhere: 'models/lib/userDeletionCleanup.js',
|
|
notes: 'Deletion pulls the user from members and watchers; anonymisation keeps the membership pointing at the renamed account.',
|
|
},
|
|
{
|
|
collection: 'boardTablePages',
|
|
definedIn: 'server/publications/boardTablePage.js',
|
|
categories: ['content', 'identity'],
|
|
subjectField: null,
|
|
purpose: 'Client-only publication of one page of the board Table view.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'not stored', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Virtual collection; carries whole card documents (members, assignees) to board members, nothing in MongoDB.',
|
|
},
|
|
{
|
|
collection: 'boardTextMatches',
|
|
definedIn: 'server/publications/boardTextMatches.js',
|
|
categories: ['content'],
|
|
subjectField: null,
|
|
purpose: 'Client-only publication of cards matching a text filter.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'not stored', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Virtual collection with card title and description; nothing in MongoDB.',
|
|
},
|
|
{
|
|
collection: 'bot_runs',
|
|
definedIn: 'models/botRuns.js',
|
|
categories: ['content', 'usage'],
|
|
subjectField: null,
|
|
purpose: 'One row per time a card is handed to a bot, with what the bot runner reported.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted (no cleanup found)', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Holds the bot\'s text, questions and the card comments sent to it, which can contain personal data; not keyed by userId. Not removed with the board.',
|
|
},
|
|
{
|
|
collection: 'caldavLinks',
|
|
definedIn: 'server/caldavSync.js',
|
|
categories: ['auth'],
|
|
subjectField: null,
|
|
purpose: 'Per-board CalDAV calendar link: URL, username and password for pushing due dates.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until a board admin changes it', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Board-scoped third-party credentials (stored in plain text), not linked to a WeKan user id. Not removed with the board.',
|
|
},
|
|
{
|
|
collection: 'caldavState',
|
|
definedIn: 'server/caldavSync.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Which card due dates were pushed to the CalDAV calendar.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until the card loses its due date', where: 'server/caldavSync.js' },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Card id, board id and due date only.',
|
|
},
|
|
{
|
|
collection: 'card_comment_reactions',
|
|
definedIn: 'models/cardCommentReactions.js',
|
|
categories: ['usage'],
|
|
subjectField: 'reactions.userIds',
|
|
purpose: 'Emoji reactions on card comments and who gave them.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'board lifetime', where: null },
|
|
erasure: 'anonymize',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'The user id should be pulled from reactions.userIds on deletion; nothing does it.',
|
|
},
|
|
{
|
|
collection: 'card_comments',
|
|
definedIn: 'models/cardComments.js',
|
|
categories: ['content'],
|
|
subjectField: 'userId',
|
|
purpose: 'Comments written on cards.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'card lifetime', where: 'models/cards.js' },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Kept on user deletion by design (#1289); free text can contain any personal data, @mentions of usernames are not rewritten.',
|
|
},
|
|
{
|
|
collection: 'card_text_notes',
|
|
definedIn: 'models/cardTextNotes.js',
|
|
categories: ['content'],
|
|
subjectField: 'userId',
|
|
purpose: 'Extra markdown text notes on a card.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'card lifetime', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Authored content kept like comments.',
|
|
},
|
|
{
|
|
collection: 'cardDescriptionDocs',
|
|
definedIn: 'server/sharedDescription.js',
|
|
categories: ['content'],
|
|
subjectField: null,
|
|
purpose: 'Collaborative editing document of a card description.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'card lifetime', where: 'server/sharedDescription.js' },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Removed with the card (Cards.after.remove).',
|
|
},
|
|
{
|
|
collection: 'cards',
|
|
definedIn: 'models/cards.js',
|
|
categories: ['content', 'identity', 'usage'],
|
|
subjectField: 'userId, members, assignees, requesters, assigners, watchers, vote, poker',
|
|
purpose: 'Cards: title, description, dates, people on the card, time spent, votes and planning poker.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'board lifetime', where: 'server/models/boards.js' },
|
|
erasure: 'anonymize',
|
|
erasureWhere: 'models/lib/userDeletionCleanup.js',
|
|
notes: 'Deletion pulls members/assignees/requesters/assigners/watchers; the creator userId, requestedBy/assignedBy text, vote and poker user lists stay.',
|
|
},
|
|
{
|
|
collection: 'cfs_gridfs.attachments.chunks',
|
|
definedIn: 'models/lib/attachmentBackwardCompatibility.js',
|
|
definedBy: 'bucketName: `cfs_gridfs.${coll}`',
|
|
categories: ['content'],
|
|
subjectField: null,
|
|
purpose: 'Legacy (WeKan before Meteor-Files) GridFS chunks of old attachments, read for migration.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until migrated or deleted', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Present only on databases that started before the Meteor-Files migration.',
|
|
},
|
|
{
|
|
collection: 'cfs_gridfs.attachments.files',
|
|
definedIn: 'models/lib/attachmentBackwardCompatibility.js',
|
|
categories: ['content'],
|
|
subjectField: null,
|
|
purpose: 'Legacy GridFS file metadata of old attachments.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until migrated or deleted', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Linked to a person only through cfs.attachments.filerecord.',
|
|
},
|
|
{
|
|
collection: 'cfs_gridfs.avatars.chunks',
|
|
definedIn: 'models/lib/attachmentBackwardCompatibility.js',
|
|
definedBy: 'bucketName: `cfs_gridfs.${coll}`',
|
|
categories: ['identity'],
|
|
subjectField: null,
|
|
purpose: 'Legacy GridFS chunks of old avatars, read for migration.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until migrated or deleted', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Linked to its user only through cfs.avatars.filerecord, like cfs_gridfs.avatars.files.',
|
|
},
|
|
{
|
|
collection: 'cfs_gridfs.avatars.files',
|
|
definedIn: 'models/lib/attachmentBackwardCompatibility.js',
|
|
categories: ['identity'],
|
|
subjectField: null,
|
|
purpose: 'Legacy GridFS file metadata of old avatars.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until migrated or deleted', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'The picture is personal; linked to its user only through cfs.avatars.filerecord.',
|
|
},
|
|
{
|
|
collection: 'cfs.attachments.filerecord',
|
|
definedIn: 'models/lib/attachmentBackwardCompatibility.js',
|
|
categories: ['content'],
|
|
subjectField: 'userId',
|
|
purpose: 'Legacy CollectionFS attachment records, read for migration to Meteor-Files.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until migrated or deleted', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Only on installations upgraded from old WeKan; uploader userId kept like current attachments.',
|
|
},
|
|
{
|
|
collection: 'cfs.avatars.filerecord',
|
|
definedIn: 'models/lib/attachmentBackwardCompatibility.js',
|
|
categories: ['identity'],
|
|
subjectField: 'userId',
|
|
purpose: 'Legacy CollectionFS avatar records, read for migration.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until migrated or deleted', where: null },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Profile pictures of the user; the deletion plan removes only current Avatars, not these legacy rows.',
|
|
},
|
|
{
|
|
collection: 'changeHistory',
|
|
definedIn: 'models/changeHistory.js',
|
|
categories: ['usage', 'content'],
|
|
subjectField: 'userId, restoredByUserId',
|
|
purpose: 'Append-only, hash-chained change history with previous and new content for undo and audit.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'board lifetime', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Rows cannot be deleted without breaking the hash chain (server/lib/historyChainAppend.js); previousContent/newContent can hold any card text.',
|
|
},
|
|
{
|
|
collection: 'checklistItems',
|
|
definedIn: 'models/checklistItems.js',
|
|
categories: ['content'],
|
|
subjectField: 'assigneeId',
|
|
purpose: 'Items of card checklists.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'card lifetime', where: 'models/cards.js' },
|
|
erasure: 'anonymize',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'assigneeId should be cleared when the assignee is deleted; nothing does it.',
|
|
},
|
|
{
|
|
collection: 'checklists',
|
|
definedIn: 'models/checklists.js',
|
|
categories: ['content'],
|
|
subjectField: null,
|
|
purpose: 'Checklists on cards.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'card lifetime', where: 'models/cards.js' },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Titles only; not linked to a person.',
|
|
},
|
|
{
|
|
collection: 'cloudChatMessages',
|
|
definedIn: 'models/cloudPanel.js',
|
|
categories: ['content', 'identity'],
|
|
subjectField: 'userId',
|
|
purpose: 'Legacy Cloud Panel chat between a hosting customer and Cloud Admins (migrated to the support board).',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until the customer domain is deleted', where: 'server/cloudPanel.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'authorName and text identify the customer; not removed on user deletion.',
|
|
},
|
|
{
|
|
collection: 'cloudDomains',
|
|
definedIn: 'models/cloudPanel.js',
|
|
categories: ['identity', 'contact', 'financial'],
|
|
subjectField: 'customerUsernames',
|
|
purpose: 'Hosting customer domains with customer name, e-mail, billing e-mail and contract dates.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until the Cloud Admin deletes the domain', where: 'server/cloudPanel.js' },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'FINANCIAL: customer contact and billing data of a cloud customer; also holds database credentials (secret). Contract data, deleted by a Cloud Admin, not by user erasure.',
|
|
},
|
|
{
|
|
collection: 'cloudInvoices',
|
|
definedIn: 'models/cloudPanel.js',
|
|
categories: ['financial'],
|
|
subjectField: 'createdBy',
|
|
purpose: 'Hosting invoices of a customer domain.',
|
|
legalBasisHint: 'legal obligation',
|
|
retention: { env: null, default: 'until a Cloud Admin deletes the invoice', where: 'server/cloudPanel.js' },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'FINANCIAL data; accounting records.',
|
|
},
|
|
{
|
|
collection: 'cloudSettings',
|
|
definedIn: 'models/cloudPanel.js',
|
|
categories: ['network'],
|
|
subjectField: null,
|
|
purpose: 'Cloud Panel configuration: Cloudflare, Caddy and the addresses Cloud Admins may sign in from.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until changed', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'allowedAddresses can be an admin\'s home IP address; holds API tokens (secrets).',
|
|
},
|
|
{
|
|
collection: 'continuousBackupLease',
|
|
definedIn: 'server/continuousBackup.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Lease so only one server runs continuous backup.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'one row, overwritten', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'continuousBackupSettings',
|
|
definedIn: 'server/continuousBackup.js',
|
|
categories: ['auth'],
|
|
subjectField: 'updatedBy',
|
|
purpose: 'Continuous backup target settings saved by a site administrator.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'one row, overwritten', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'May hold storage credentials; updatedBy is the admin user id only.',
|
|
},
|
|
{
|
|
collection: 'counters',
|
|
definedIn: 'models/counters.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Named sequence counters (e.g. card numbers).',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'permanent', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'cronJobs',
|
|
definedIn: 'server/cron/syncedCron.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'synced-cron run log of scheduled jobs.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: '2 days (collectionTTL 172800 s)', where: 'server/cron/syncedCron.js' },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Job names and times only.',
|
|
},
|
|
{
|
|
collection: 'customBoardRoles',
|
|
definedIn: 'models/customBoardRoles.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Custom board roles and their capabilities.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Role definitions; assignments live in boards.members.',
|
|
},
|
|
{
|
|
collection: 'customFields',
|
|
definedIn: 'models/customFields.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Custom field definitions of boards.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'board lifetime', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Definitions only; the values are on cards.',
|
|
},
|
|
{
|
|
collection: 'dataAccessLog',
|
|
definedIn: 'server/lib/dataAccessLog.js',
|
|
definedBy: "export const DataAccessLog = new Mongo.Collection('dataAccessLog');",
|
|
categories: ['identity', 'network', 'usage'],
|
|
subjectField: 'userId',
|
|
purpose: 'Who downloaded what (WP-11): one row per person, day, kind of export and target, with a count, the last address and the username.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: 'ADMIN_AUDIT_RETENTION_DAYS', default: 'as the audit log: 365 days (0 keeps it)', where: 'server/lib/dataAccessLog.js' },
|
|
erasure: 'anonymize',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'On erasure the username and address are removed and the anonymous user id stays, so the record of the download remains.',
|
|
},
|
|
{
|
|
collection: 'dataHealth',
|
|
definedIn: 'server/lib/dataHealthScan.js',
|
|
categories: ['identity'],
|
|
subjectField: null,
|
|
purpose: 'Last nightly data-health scan result and repair claims.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'replaced by the next scan', where: 'server/lib/dataHealthScan.js' },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Findings list document ids, including user ids (for example user-duplicate-email); no names or addresses.',
|
|
},
|
|
{
|
|
collection: 'documentPreviews',
|
|
definedIn: 'server/lib/documentGif.js',
|
|
categories: ['content'],
|
|
subjectField: null,
|
|
purpose: 'Plain text extracted from attachments, for searching attachment contents.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'attachment lifetime', where: 'server/lib/documentGif.js' },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Follows the attachment (replaced on re-index); may contain any personal data written in the document.',
|
|
},
|
|
{
|
|
collection: 'email_bounces',
|
|
definedIn: 'server/emailBounces.js',
|
|
categories: ['contact', 'usage'],
|
|
subjectField: 'email',
|
|
purpose: 'One row per e-mail address that bounced or complained, with counts and recent events, to stop mailing it.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until an administrator clears the address', where: 'server/emailBounces.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Keyed by e-mail address, not user id; the history holds diagnostic text from the receiving mail server.',
|
|
},
|
|
{
|
|
collection: 'email_to_card_received',
|
|
definedIn: 'server/emailToCard.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Message-IDs already turned into cards, so a retried delivery does not make a second card.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: '30 days (TTL on at)', where: 'server/emailToCard.js' },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Message key and time only.',
|
|
},
|
|
{
|
|
collection: 'eventlog',
|
|
definedIn: 'models/eventLog.js',
|
|
categories: ['identity', 'network', 'usage'],
|
|
subjectField: 'userId, username, actors',
|
|
purpose: 'Admin Panel / Problems: security, speed and test events, one accumulating row per kind of problem.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: 'EVENTLOG_RETENTION_DAYS', default: '90 days', where: 'models/eventLog.js' },
|
|
erasure: 'anonymize',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Holds the most recent username, IP address and geolocation plus a capped per-username and per-address tally (actors); nothing removes a deleted user from it before the retention sweep.',
|
|
},
|
|
{
|
|
collection: 'eventlogAcks',
|
|
definedIn: 'models/eventLog.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'When each Problems stream was last acknowledged.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Only { stream, at }.',
|
|
},
|
|
{
|
|
collection: 'fileIntegrity',
|
|
definedIn: 'models/fileIntegrity.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Filesystem storage baseline: name, size, digests and signature of each stored file.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'while the file exists', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'File names may echo what a user uploaded, but no row is linked to a person.',
|
|
},
|
|
{
|
|
collection: 'fileIntegrityKeys',
|
|
definedIn: 'models/fileIntegrity.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Signing key and scan bookkeeping for the file integrity baseline.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Instance secret, not personal data.',
|
|
},
|
|
{
|
|
collection: 'github_import_jobs',
|
|
definedIn: 'models/githubImportJobs.js',
|
|
categories: ['usage'],
|
|
subjectField: 'userId',
|
|
purpose: 'Progress, results and error log of a background GitHub organization import.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until the owner deletes the job', where: 'server/githubOrgImport.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'The GitHub token is never stored here.',
|
|
},
|
|
{
|
|
collection: 'historyChainHeads',
|
|
definedIn: 'server/lib/storedHistoryChain.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Head hash of each board\'s hash-chained change history.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'board lifetime', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'historyIntegrityReported',
|
|
definedIn: 'server/lib/historyIntegrityScan.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Which broken change-history rows the integrity audit already reported.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Row id, reason and time only.',
|
|
},
|
|
{
|
|
collection: 'historyWriterGates',
|
|
definedIn: 'server/lib/storedHistoryChain.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Which boards are migrated to the coordinated history append path.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'board lifetime', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'historyWriterLeases',
|
|
definedIn: 'server/lib/storedHistoryChain.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Leases of legacy history writer tokens.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until released or taken over', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'idleSessions',
|
|
definedIn: 'server/idleLogout.js',
|
|
categories: ['usage', 'auth'],
|
|
subjectField: 'userId',
|
|
purpose: 'Last activity time per login token, for signing out idle sessions.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: 'LOGOUT_IDLE_MINUTES', default: 'until the session is idle-signed-out', where: 'server/idleLogout.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: '_id is the hashed login token. Rows of a deleted user stay until the idle sweep removes them (only when idle logout is enabled).',
|
|
},
|
|
{
|
|
collection: 'impersonatedUsers',
|
|
definedIn: 'models/impersonatedUsers.js',
|
|
categories: ['usage'],
|
|
subjectField: 'adminId, userId',
|
|
purpose: 'Audit record of an administrator impersonating a user or downloading their attachment.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'No age-based removal yet (README 2.5 proposes ADMIN_AUDIT_RETENTION_DAYS for it). Holds a free-text reason.',
|
|
},
|
|
{
|
|
collection: 'importRuns',
|
|
definedIn: 'server/importRuns.js',
|
|
categories: ['usage'],
|
|
subjectField: 'userId',
|
|
purpose: 'Progress and outcome of board imports, so an administrator can keep or discard an interrupted one.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'No age-based removal found. The discard detail text names the administrator\'s username.',
|
|
},
|
|
{
|
|
collection: 'inbound_mail_state',
|
|
definedIn: 'server/lib/imapInbound.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Per IMAP mailbox poll lease, UIDVALIDITY and last UID read.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'one row per configured mailbox', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'lastError may echo a mail server message; the mailbox credentials live in settings.',
|
|
},
|
|
{
|
|
collection: 'integrations',
|
|
definedIn: 'models/integrations.js',
|
|
categories: ['auth', 'content'],
|
|
subjectField: 'userId',
|
|
purpose: 'Outgoing webhooks of a board (URL, token, events).',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'board lifetime', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'userId is the creator; the token and URL are credentials of the receiving service.',
|
|
},
|
|
{
|
|
collection: 'invitation_codes',
|
|
definedIn: 'models/invitationCodes.js',
|
|
categories: ['contact'],
|
|
subjectField: 'email, authorId',
|
|
purpose: 'Registration invitations sent by e-mail.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until used (then valid: false, kept) or removed by an admin or a bounce', where: 'server/models/settings.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Holds the invitee e-mail address; a used code is only invalidated, not removed. server/emailBounces.js removes valid codes of a bouncing address.',
|
|
},
|
|
{
|
|
collection: 'inviteToBoardRolesSettings',
|
|
definedIn: 'models/inviteToBoardRolesSettings.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Which board roles may invite members.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'legalPages',
|
|
definedIn: 'models/legalPages.js',
|
|
categories: ['contact'],
|
|
subjectField: null,
|
|
purpose: 'The privacy notice, terms, cookie notice and imprint, and the privacy contacts, that the operator publishes (Admin Panel / Settings / Privacy).',
|
|
legalBasisHint: 'legal obligation',
|
|
retention: { env: null, default: 'until changed', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'The imprint and the contacts name the operator and the people to contact, as the operator writes them; modifiedBy is the administrator who saved a page. Published on purpose.',
|
|
},
|
|
{
|
|
collection: 'lists',
|
|
definedIn: 'models/lists.js',
|
|
categories: ['content', 'usage'],
|
|
subjectField: 'watchers',
|
|
purpose: 'Lists of a board.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'board lifetime', where: null },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userDeletionCleanup.js',
|
|
notes: 'The deleted user is pulled from watchers; titles are board content.',
|
|
},
|
|
{
|
|
collection: 'listSyncCredentials',
|
|
definedIn: 'models/listSyncCredentials.js',
|
|
categories: ['auth'],
|
|
subjectField: 'runAsUserId',
|
|
purpose: 'Server-only credentials (token, remote username) of a synced list.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'list lifetime', where: null },
|
|
erasure: 'anonymize',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Never published. runAsUserId names the WeKan account the sync acts as; nothing removes it when that account is deleted. On erasure the link to the account (runAsUserId) is removed and the sync waits for an administrator to pick another account.',
|
|
},
|
|
{
|
|
collection: 'listSyncLeases',
|
|
definedIn: 'server/lib/listSyncLease.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Leases so only one server syncs a list at a time.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until released or taken over', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'No provider URLs or credentials.',
|
|
},
|
|
{
|
|
collection: 'listSyncNotificationPlans',
|
|
definedIn: 'server/notifications/storedDelivery.js',
|
|
categories: ['usage', 'content'],
|
|
subjectField: 'plan.recipients.userId',
|
|
purpose: 'Frozen notification recipients and message for a Sync-applied change.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: 'SYNC_RECEIPT_METADATA_DAYS', default: 'compacted 90 days after completion', where: 'server/lib/syncNotificationRetention.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'server/lib/syncPlanRetention.js',
|
|
notes: 'Compacted after delivery plus the retention period. Integrity-checked: never rewritten on erasure; compacted in place SYNC_RECEIPT_METADATA_DAYS (90) after delivery, and delivery to a deleted account is skipped.',
|
|
},
|
|
{
|
|
collection: 'listSyncNotificationReceipts',
|
|
definedIn: 'server/notifications/storedDelivery.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Delivery-confirmed receipts for Sync notification plans.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Minimal ids and completion time; kept for good.',
|
|
},
|
|
{
|
|
collection: 'listSyncOperationCompletions',
|
|
definedIn: 'server/lib/listSyncOperations.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Immutable completion receipts of list-sync operations.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted (no TTL by design)', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'listSyncOperationDiscards',
|
|
definedIn: 'server/lib/listSyncOperations.js',
|
|
categories: ['usage'],
|
|
subjectField: 'operator',
|
|
purpose: 'Audit record of each stuck list-sync operation an administrator discarded.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted (no TTL by design)', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Names the deciding administrator (operator) and decidedAt.',
|
|
},
|
|
{
|
|
collection: 'listSyncOperationIntents',
|
|
definedIn: 'server/lib/listSyncOperations.js',
|
|
categories: ['usage'],
|
|
subjectField: 'actorId',
|
|
purpose: 'Durable intents of list-sync runs, with the user who started them.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until deleted (no TTL by design)', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'User id only.',
|
|
},
|
|
{
|
|
collection: 'listSyncOperations',
|
|
definedIn: 'server/lib/listSyncOperations.js',
|
|
categories: ['usage'],
|
|
subjectField: 'actorId',
|
|
purpose: 'The current durable list-sync operation per list.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until completed or discarded', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'User id only.',
|
|
},
|
|
{
|
|
collection: 'listSyncOperationSteps',
|
|
definedIn: 'server/lib/listSyncOperations.js',
|
|
categories: ['content'],
|
|
subjectField: null,
|
|
purpose: 'Planned steps of a list-sync operation, kept for crash recovery.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until deleted (no TTL by design)', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'May carry synced card fields.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleAddSwimlaneCommands',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['usage', 'content'],
|
|
subjectField: 'actorId',
|
|
purpose: 'Durable, replay-safe journal of a Sync rule add-swimlane action.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Keeps the acting user id and the card/list data the action wrote, like activities; no retention sweep.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleArchiveCommands',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['usage', 'content'],
|
|
subjectField: 'actorId',
|
|
purpose: 'Durable journal of a Sync rule archive action (up to 1000 cards).',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: 'SYNC_RECEIPT_METADATA_DAYS', default: 'compacted 90 days after completion', where: 'server/lib/syncRuleArchiveRetention.js' },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Card titles and placement until compacted in place.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleArchiveCompletions',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Archive command completion receipts with their time.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Kept for good.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleArchiveEffects',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['usage', 'content'],
|
|
subjectField: 'actorId',
|
|
purpose: 'History and activity content written by a rule archive command.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: 'SYNC_RECEIPT_METADATA_DAYS', default: 'compacted 90 days after completion', where: 'server/lib/syncRuleArchiveRetention.js' },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Removed 90 days after the archive run finished.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleArchiveReceipts',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Per-card receipts of a rule archive command.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Minimal ids; kept for good.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleCardCommands',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['usage', 'content'],
|
|
subjectField: 'actorId',
|
|
purpose: 'Durable, replay-safe journal of a Sync rule card field (members, assignees, labels, dates) action.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Keeps the acting user id and the card/list data the action wrote, like activities; no retention sweep.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleChecklistCommands',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['usage', 'content'],
|
|
subjectField: 'actorId',
|
|
purpose: 'Durable, replay-safe journal of a Sync rule checklist item action.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Keeps the acting user id and the card/list data the action wrote, like activities; no retention sweep.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleChecklistLifecycleCommands',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['usage', 'content'],
|
|
subjectField: 'actorId',
|
|
purpose: 'Durable, replay-safe journal of a Sync rule checklist add/remove action.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Keeps the acting user id and the card/list data the action wrote, like activities; no retention sweep.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleCompletions',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Plan completion receipts with their time.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Kept for good.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleCopyCardCommands',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['usage', 'content'],
|
|
subjectField: 'actorId',
|
|
purpose: 'Durable, replay-safe journal of a Sync rule copy-card action.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Keeps the acting user id and the card/list data the action wrote, like activities; no retention sweep.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleCreateCardCommands',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['usage', 'content'],
|
|
subjectField: 'actorId',
|
|
purpose: 'Durable, replay-safe journal of a Sync rule create-card action.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Keeps the acting user id and the card/list data the action wrote, like activities; no retention sweep.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleEmailAttempts',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'State of each send attempt of a rule e-mail command.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Already minimal metadata (ids, state, times); kept as is by the retention pass.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleEmailCommands',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['contact', 'content'],
|
|
subjectField: 'actorId',
|
|
purpose: 'Durable copy of a rule e-mail (recipients, body, attachments up to 12 MB).',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: 'SYNC_RECEIPT_METADATA_DAYS', default: 'compacted 90 days after completion', where: 'server/lib/syncRuleEmailRetention.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'server/lib/syncRuleEmailRetention.js',
|
|
notes: 'Compacted in place to ids and checksum 90 days after the attempt is terminal. Integrity-checked: never rewritten on erasure; compacted to ids and a checksum SYNC_RECEIPT_METADATA_DAYS (90) after the attempt is terminal.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleEmailOutcomes',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['contact'],
|
|
subjectField: null,
|
|
purpose: 'Recipient addresses of a rule e-mail attempt, for the unconfirmed-recipient review.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: 'SYNC_RECEIPT_METADATA_DAYS', default: 'compacted 90 days after completion', where: 'server/lib/syncRuleEmailRetention.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'server/lib/syncRuleEmailRetention.js',
|
|
notes: 'Removed when the command is compacted; addressed by e-mail, not user id. Integrity-checked: removed with the compaction of its command, SYNC_RECEIPT_METADATA_DAYS (90) after the attempt is terminal.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleEmailResolutions',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['contact', 'usage'],
|
|
subjectField: 'actorId',
|
|
purpose: 'Who accepted a partially accepted rule e-mail attempt, and for which addresses.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Addresses only, no SMTP text; not covered by the e-mail retention pass.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleLinkCardCommands',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['usage', 'content'],
|
|
subjectField: 'actorId',
|
|
purpose: 'Durable, replay-safe journal of a Sync rule link-card action.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Keeps the acting user id and the card/list data the action wrote, like activities; no retention sweep.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleListSkips',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['usage'],
|
|
subjectField: 'actorId',
|
|
purpose: 'Records a rule action skipped because the target list refuses the actor\'s role.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Decision record for replay; no retention.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleMoveAllBoardCommands',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['usage', 'content'],
|
|
subjectField: 'actorId',
|
|
purpose: 'Durable, replay-safe journal of a Sync rule move-all-cards-to-board action.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Keeps the acting user id and the card/list data the action wrote, like activities; no retention sweep.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleMoveAllCommands',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['usage', 'content'],
|
|
subjectField: 'actorId',
|
|
purpose: 'Durable, replay-safe journal of a Sync rule move-all-cards action.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Keeps the acting user id and the card/list data the action wrote, like activities; no retention sweep.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleMoveBoardCommands',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['usage', 'content'],
|
|
subjectField: 'actorId',
|
|
purpose: 'Durable, replay-safe journal of a Sync rule move-card-to-board action.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Keeps the acting user id and the card/list data the action wrote, like activities; no retention sweep.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleMoveCommands',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['usage', 'content'],
|
|
subjectField: 'actorId',
|
|
purpose: 'Durable, replay-safe journal of a Sync rule move-card action.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Keeps the acting user id and the card/list data the action wrote, like activities; no retention sweep.',
|
|
},
|
|
{
|
|
collection: 'listSyncRulePlans',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['usage', 'content', 'contact'],
|
|
subjectField: 'actorId',
|
|
purpose: 'Frozen rules and actions matched by a Sync-applied activity.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: 'SYNC_RECEIPT_METADATA_DAYS', default: 'compacted 90 days after completion', where: 'server/lib/syncRuleRetention.js' },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Whole rule/action documents, including an e-mail action\'s recipients and text, until compacted.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleReceipts',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Per-action completion receipts of rule invocations.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Minimal ids; kept for good.',
|
|
},
|
|
{
|
|
collection: 'listSyncRuleSortListCommands',
|
|
definedIn: 'server/notifications/storedRulePlans.js',
|
|
categories: ['usage', 'content'],
|
|
subjectField: 'actorId',
|
|
purpose: 'Durable, replay-safe journal of a Sync rule sort-list action.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Keeps the acting user id and the card/list data the action wrote, like activities; no retention sweep.',
|
|
},
|
|
{
|
|
collection: 'listSyncRunReports',
|
|
definedIn: 'server/lib/listSyncRunReports.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Status reports of list-sync runs for Admin Panel.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: '30 days (TTL on startedAt)', where: 'server/lib/listSyncRunReports.js' },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Doubtful: not every report field was read; assumed list/board ids, status and counts.',
|
|
},
|
|
{
|
|
collection: 'listSyncTargets',
|
|
definedIn: 'server/lib/listSyncTargets.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Durable mapping from a synced source item to the card it replaced.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'No tokens.',
|
|
},
|
|
{
|
|
collection: 'listSyncWebhookCommentPlans',
|
|
definedIn: 'server/notifications/storedWebhooks.js',
|
|
categories: ['content'],
|
|
subjectField: 'userId',
|
|
purpose: 'Comment text a two-way webhook reply asks WeKan to post.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: 'SYNC_RECEIPT_METADATA_DAYS', default: 'compacted 90 days after completion', where: 'server/lib/syncWebhookRetention.js' },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Removed 90 days after the plan completed.',
|
|
},
|
|
{
|
|
collection: 'listSyncWebhookCommentReceipts',
|
|
definedIn: 'server/notifications/storedWebhooks.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Receipts that a webhook reply comment was written.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Minimal; kept for good.',
|
|
},
|
|
{
|
|
collection: 'listSyncWebhookCompletions',
|
|
definedIn: 'server/notifications/storedWebhooks.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Webhook plan completion receipts with their time.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Kept for good.',
|
|
},
|
|
{
|
|
collection: 'listSyncWebhookPlans',
|
|
definedIn: 'server/notifications/storedWebhooks.js',
|
|
categories: ['content', 'auth'],
|
|
subjectField: null,
|
|
purpose: 'Frozen webhook targets (URL, X-Wekan-Token) and request body of a Sync change.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: 'SYNC_RECEIPT_METADATA_DAYS', default: 'compacted 90 days after completion', where: 'server/lib/syncWebhookRetention.js' },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Body contains activity payload with user names until compacted; holds an endpoint credential.',
|
|
},
|
|
{
|
|
collection: 'listSyncWebhookReceipts',
|
|
definedIn: 'server/notifications/storedWebhooks.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Per-target webhook delivery receipts.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Minimal; kept for good.',
|
|
},
|
|
{
|
|
collection: 'listSyncWebhookResponses',
|
|
definedIn: 'server/notifications/storedWebhooks.js',
|
|
categories: ['content'],
|
|
subjectField: null,
|
|
purpose: 'The receiver\'s reply to a Sync webhook delivery.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: 'SYNC_RECEIPT_METADATA_DAYS', default: 'compacted 90 days after completion', where: 'server/lib/syncWebhookRetention.js' },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Removed 90 days after the plan completed; may contain whatever the receiver returns.',
|
|
},
|
|
{
|
|
collection: 'lockoutSettings',
|
|
definedIn: 'models/lockoutSettings.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Brute-force lockout thresholds.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'loginAddresses',
|
|
definedIn: 'models/loginAddresses.js',
|
|
categories: ['network', 'identity', 'usage'],
|
|
subjectField: 'users (per-account tally)',
|
|
purpose: 'One row per address people log in from, with who uses it and how often.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: 'LOGIN_ADDRESS_RETENTION_DAYS', default: '365 days', where: 'server/lib/loginAddressRetention.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'IP address, geolocation and per-account counts; a deleted user stays in users until the retention sweep.',
|
|
},
|
|
{
|
|
collection: 'meteor_accounts_loginServiceConfiguration',
|
|
definedIn: 'server/lib/oauthProviders.js',
|
|
definedBy: 'ServiceConfiguration',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'OAuth / OIDC client ids and secrets of the instance (accounts-base ServiceConfiguration).',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until the provider is removed', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Instance credentials, not data about a person; a secret, so never exported with personal data.',
|
|
},
|
|
{
|
|
collection: 'migrations',
|
|
definedIn: 'server/migrations/ensureValidSwimlaneIds.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Which data migrations have run.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'instance lifetime', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'notificationEmailCommands',
|
|
definedIn: 'server/notifications/emailQueue.js',
|
|
categories: ['usage'],
|
|
subjectField: 'userId',
|
|
purpose: 'Replay-safe record of admin cancel/resume commands on a user\'s e-mail queue.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: 'EMAIL_RECEIPT_METADATA_DAYS', default: 'compacted after 30 days', where: 'server/lib/emailReceiptRetention.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Holds the target userId and the acting admin\'s actorId.',
|
|
},
|
|
{
|
|
collection: 'notificationEmailControls',
|
|
definedIn: 'server/notifications/emailQueue.js',
|
|
categories: ['usage'],
|
|
subjectField: '_id',
|
|
purpose: 'Per-user e-mail queue control (cancelBefore cutoff, generation).',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Document _id is the userId; no personal content beyond that.',
|
|
},
|
|
{
|
|
collection: 'notificationEmailJobs',
|
|
definedIn: 'server/notifications/emailQueue.js',
|
|
categories: ['contact', 'content', 'usage'],
|
|
subjectField: 'userId',
|
|
purpose: 'Durable outbox of notification e-mails, one job per recipient and event.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: 'EMAIL_RECEIPT_METADATA_DAYS', default: 'body removed when sent/cancelled; metadata compacted after 30 days', where: 'server/lib/emailReceiptRetention.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Pending jobs hold the rendered subject and HTML (card titles, comments, names); the payload is $unset on send (server/lib/emailOutbox.js).',
|
|
},
|
|
{
|
|
collection: 'notificationEmailLeases',
|
|
definedIn: 'server/notifications/emailQueue.js',
|
|
categories: ['usage'],
|
|
subjectField: '_id',
|
|
purpose: 'Per-recipient lease so one server drains a user\'s e-mail queue at a time.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'lease expiry (short-lived)', where: null },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Keyed by userId; holds no content.',
|
|
},
|
|
{
|
|
collection: 'notificationEmailSendSlots',
|
|
definedIn: 'server/notifications/emailQueue.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Global SMTP send-rate slots.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'notificationTrayReceipts',
|
|
definedIn: 'server/notifications/trayQueue.js',
|
|
categories: ['usage'],
|
|
subjectField: 'userId',
|
|
purpose: 'Permanent receipt that an activity was delivered to a user\'s notification tray.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Deliberately no TTL (prevents re-appearance after dismissal); { userId, activityId } only.',
|
|
},
|
|
{
|
|
collection: 'notificationWebhookJobs',
|
|
definedIn: 'server/notifications/webhookQueue.js',
|
|
categories: ['content', 'identity'],
|
|
subjectField: null,
|
|
purpose: 'Durable queue of grouped or scheduled outgoing webhook bodies.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'body removed when sent/cancelled; row kept', where: 'server/lib/webhookOutbox.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'server/lib/webhookOutbox.js',
|
|
notes: 'Pending bodies carry the activity payload (user names, card text); no user id field to select by, so erasure would need to match the body. The body (names, card text) is $unset when the job finishes, so it is kept only until the webhook it was meant for has been called.',
|
|
},
|
|
{
|
|
collection: 'notificationWebhookLeases',
|
|
definedIn: 'server/notifications/webhookQueue.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Per-webhook delivery leases.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted (no retention)', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'org',
|
|
definedIn: 'models/org.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Organizations: name, domains, branding, legal notice URL.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Organization data; membership is on users.orgs and orgUser.',
|
|
},
|
|
{
|
|
collection: 'orgUser',
|
|
definedIn: 'models/orgUser.js',
|
|
categories: ['identity'],
|
|
subjectField: 'userId',
|
|
purpose: 'Membership and role of a user in an organization.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'passkeyChallenges',
|
|
definedIn: 'server/passkeys.js',
|
|
categories: ['auth'],
|
|
subjectField: 'userId',
|
|
purpose: 'Short-lived WebAuthn challenges for passkey registration and sign-in.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'TTL at expiresAt', where: 'server/passkeys.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Expires by TTL (and is removed when used); no deletion hook needed in practice.',
|
|
},
|
|
{
|
|
collection: 'positionHistory',
|
|
definedIn: 'models/positionHistory.js',
|
|
categories: ['content'],
|
|
subjectField: null,
|
|
purpose: 'Original position and title of swimlanes, lists and cards, for restoring order.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'board lifetime', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'No user field.',
|
|
},
|
|
{
|
|
collection: 'presences',
|
|
definedIn: 'models/presences.js',
|
|
categories: ['usage'],
|
|
subjectField: 'userId',
|
|
purpose: 'Online status shown on avatars.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Read by client/components/users/userAvatar.js; no writer found in the current code (legacy presence package).',
|
|
},
|
|
{
|
|
collection: 'recoveryEvents',
|
|
definedIn: 'models/recoveryEvents.js',
|
|
categories: ['identity', 'network', 'usage'],
|
|
subjectField: 'userId, username',
|
|
purpose: 'Record of data recovery, permanent deletion and remediation events.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'anonymize',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Holds username and location of who acted; may hold deletedData (content).',
|
|
},
|
|
{
|
|
collection: 'recoveryStatus',
|
|
definedIn: 'models/recoveryStatus.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Maintenance spinner flag while a recovery runs.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'single document', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'rules',
|
|
definedIn: 'models/rules.js',
|
|
categories: ['content'],
|
|
subjectField: null,
|
|
purpose: 'Board automation rules linking a trigger to an action.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'board lifetime', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Configuration; no user field.',
|
|
},
|
|
{
|
|
collection: 'sandstorm_api_grants',
|
|
definedIn: 'server/sandstormEgress.js',
|
|
categories: ['auth'],
|
|
subjectField: 'userId',
|
|
purpose: 'Sandstorm Powerbox capabilities granted for webhooks, list sync and a user\'s external services.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until revoked', where: 'server/sandstormEgress.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Per-user grants (userId, service) are kept after user deletion; webhook/sync grants have no user.',
|
|
},
|
|
{
|
|
collection: 'savedCardFilters',
|
|
definedIn: 'server/filterPresets.js',
|
|
categories: ['usage'],
|
|
subjectField: 'ownerId',
|
|
purpose: 'Card filter presets a member saved on a board.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until deleted by the member, or with the board', where: 'server/filterPresets.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'server/filterPresets.js',
|
|
notes: 'Meteor.users.after.remove deletes by ownerId; Boards.after.remove deletes by boardId.',
|
|
},
|
|
{
|
|
collection: 'scrumBatchJobs',
|
|
definedIn: 'server/lib/scrumBatchJobs.js',
|
|
categories: ['usage'],
|
|
subjectField: 'userId',
|
|
purpose: 'Background undo/redo job of a large Scrum History batch, one per board.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until the job finishes', where: 'server/lib/scrumBatchJobs.js' },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'Short-lived; user id only.',
|
|
},
|
|
{
|
|
collection: 'scrumDailySnapshots',
|
|
definedIn: 'models/scrumDailySnapshots.js',
|
|
categories: ['content'],
|
|
subjectField: null,
|
|
purpose: 'Daily sprint report observations (burndown).',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'board lifetime', where: 'server/scrumDailySnapshots.js' },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Removed with the board.',
|
|
},
|
|
{
|
|
collection: 'scrumEvents',
|
|
definedIn: 'models/scrumEvents.js',
|
|
categories: ['content'],
|
|
subjectField: 'createdBy, updatedBy',
|
|
purpose: 'Scrum events (meetings) of a board.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'board lifetime', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'scrumHistoryCompletions',
|
|
definedIn: 'server/lib/scrumHistoryPending.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Evidence that a Scrum History restore row completed.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted (no TTL by design)', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'scrumHistoryPending',
|
|
definedIn: 'server/lib/scrumHistoryPending.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Recovery checkpoint of an in-progress Scrum History restore, one per board.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until the restore finishes', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Doubtful: may hold the requesting user id.',
|
|
},
|
|
{
|
|
collection: 'scrumHistoryRequests',
|
|
definedIn: 'server/lib/scrumHistoryPending.js',
|
|
categories: ['usage'],
|
|
subjectField: 'userId',
|
|
purpose: 'Idempotency records of Scrum History undo/redo requests per user.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: 'User id only.',
|
|
},
|
|
{
|
|
collection: 'scrumImportPending',
|
|
definedIn: 'server/lib/scrumImportJournal.js',
|
|
categories: ['content'],
|
|
subjectField: null,
|
|
purpose: 'Recovery checkpoint of a Scrum import, one per destination board.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'board lifetime', where: 'server/lib/scrumImportJournal.js' },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Removed with the board.',
|
|
},
|
|
{
|
|
collection: 'scrumImportSteps',
|
|
definedIn: 'server/lib/scrumImportJournal.js',
|
|
categories: ['content'],
|
|
subjectField: null,
|
|
purpose: 'Per-document recovery data of a Scrum import.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'board lifetime', where: 'server/lib/scrumImportJournal.js' },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Removed with the board.',
|
|
},
|
|
{
|
|
collection: 'scrumReleases',
|
|
definedIn: 'models/scrumReleases.js',
|
|
categories: ['content'],
|
|
subjectField: 'createdBy, updatedBy',
|
|
purpose: 'Scrum releases of a board.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'board lifetime', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'scrumRolloverRows',
|
|
definedIn: 'server/lib/scrumRolloverStore.js',
|
|
categories: ['content'],
|
|
subjectField: null,
|
|
purpose: 'Chunks of a sprint close rollover plan: card Scrum metadata before and after.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until the rollover is applied, or with the board', where: 'server/lib/scrumRolloverStore.js' },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Scrum metadata may carry long texts.',
|
|
},
|
|
{
|
|
collection: 'scrumSnapshotRows',
|
|
definedIn: 'server/lib/scrumSnapshotStore.js',
|
|
categories: ['content'],
|
|
subjectField: null,
|
|
purpose: 'Sprint start, close and daily snapshot rows.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'board lifetime', where: 'server/lib/scrumSnapshotStore.js' },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Doubtful: card rows may include assignee ids.',
|
|
},
|
|
{
|
|
collection: 'scrumSprints',
|
|
definedIn: 'models/scrumSprints.js',
|
|
categories: ['content'],
|
|
subjectField: 'createdBy, updatedBy',
|
|
purpose: 'Scrum sprints of a board.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'board lifetime', where: null },
|
|
erasure: 'keep-pseudonymous',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'sessiondata',
|
|
definedIn: 'models/usersessiondata.js',
|
|
categories: ['usage'],
|
|
subjectField: 'userId',
|
|
purpose: 'Search results and selector of a user\'s global search session.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: '1 day', where: 'server/publications/cards.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Short-lived; removed after a day of no use.',
|
|
},
|
|
{
|
|
collection: 'settings',
|
|
definedIn: 'models/settings.js',
|
|
categories: ['auth'],
|
|
subjectField: null,
|
|
purpose: 'Instance settings, including the SMTP server and its credentials.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'single document', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'No data subject; mailServer.username/password and from address are instance configuration.',
|
|
},
|
|
{
|
|
collection: 'sharedLabels',
|
|
definedIn: 'models/sharedLabels.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Labels shared across an instance, organization or team.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'shopOrders',
|
|
definedIn: 'models/shopOrders.js',
|
|
categories: ['financial'],
|
|
subjectField: null,
|
|
purpose: 'Order numbering and totals of a board shop, for numbering and rate limiting.',
|
|
legalBasisHint: 'legal obligation',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'FINANCIAL: amounts, VAT, payment type; no buyer identity (only byAccount true/false). The buyer name and contact are on the order card.',
|
|
},
|
|
{
|
|
collection: 'shortPasswordLogins',
|
|
definedIn: 'models/shortPasswordLogins.js',
|
|
categories: ['identity', 'auth', 'usage'],
|
|
subjectField: 'userId, username',
|
|
purpose: 'Accounts still logging in with a password shorter than the policy.',
|
|
legalBasisHint: 'legitimate interest',
|
|
retention: { env: 'LOGIN_ADDRESS_RETENTION_DAYS', default: '365 days', where: 'server/lib/loginAddressRetention.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'sqrlNuts',
|
|
definedIn: 'server/sqrl.js',
|
|
categories: ['auth'],
|
|
subjectField: null,
|
|
purpose: 'One-time SQRL nonces.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'TTL at expiresAt', where: 'server/sqrl.js' },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'No user link.',
|
|
},
|
|
{
|
|
collection: 'sqrlSessions',
|
|
definedIn: 'server/sqrl.js',
|
|
categories: ['auth', 'network'],
|
|
subjectField: 'userId',
|
|
purpose: 'Pending SQRL sign-in or association sessions, with the requesting IP.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'TTL at expiresAt', where: 'server/sqrl.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Short-lived, expires by TTL; stores ip and userId/authUserId.',
|
|
},
|
|
{
|
|
collection: 'swimlanes',
|
|
definedIn: 'models/swimlanes.js',
|
|
categories: ['content'],
|
|
subjectField: null,
|
|
purpose: 'Swimlanes of a board.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'board lifetime', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'No user field; titles are board content.',
|
|
},
|
|
{
|
|
collection: 'tableVisibilityModeSettings',
|
|
definedIn: 'models/tableVisibilityModeSettings.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Allowed table visibility modes.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'team',
|
|
definedIn: 'models/team.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Teams: name, description, website.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Membership is on users.teams.',
|
|
},
|
|
{
|
|
collection: 'text_migration_status',
|
|
definedIn: 'models/textMigrationStatus.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Progress of the MongoDB to FerretDB text migration.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'single document', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'timeEntries',
|
|
definedIn: 'models/timeEntries.js',
|
|
categories: ['usage', 'financial'],
|
|
subjectField: 'userId, approvedBy',
|
|
purpose: 'Hours a person worked on a card, approval and invoicing.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'card lifetime; invoiced entries kept', where: 'server/timeEntries.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'FINANCIAL when invoiced (invoiceId): bookkeeping may require keeping it, then pseudonymise instead. Removed with the card unless invoiced.',
|
|
},
|
|
{
|
|
collection: 'translation',
|
|
definedIn: 'models/translation.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Admin-customised translation strings.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'trello_api_credentials',
|
|
definedIn: 'server/trelloApiImport.js',
|
|
categories: ['auth'],
|
|
subjectField: '_id',
|
|
purpose: 'A member\'s saved Trello API key and token (_id is the user id).',
|
|
legalBasisHint: 'consent',
|
|
retention: { env: null, default: 'until the member clears them', where: 'server/trelloApiImport.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Third-party credentials kept after user deletion: WP-4 gap.',
|
|
},
|
|
{
|
|
collection: 'trello_export_jobs',
|
|
definedIn: 'server/trelloApiExport.js',
|
|
categories: ['usage'],
|
|
subjectField: 'userId',
|
|
purpose: 'Progress of a member\'s board export to Trello.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'No removal found for finished jobs.',
|
|
},
|
|
{
|
|
collection: 'trello_import_jobs',
|
|
definedIn: 'models/trelloImportJobs.js',
|
|
categories: ['usage'],
|
|
subjectField: 'userId',
|
|
purpose: 'Progress, results and error log of a background Trello import.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until the owner deletes the job', where: 'server/trelloApiImport.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Trello key and token are never stored here.',
|
|
},
|
|
{
|
|
collection: 'triggers',
|
|
definedIn: 'models/triggers.js',
|
|
categories: ['content'],
|
|
subjectField: null,
|
|
purpose: 'Triggers of board automation rules.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'board lifetime', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Configuration; may name a username in a member trigger.',
|
|
},
|
|
{
|
|
collection: 'unsaved-edits',
|
|
definedIn: 'models/unsavedEdits.js',
|
|
categories: ['content'],
|
|
subjectField: 'userId',
|
|
purpose: 'Drafts of a field a user started editing but did not save.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until saved or discarded', where: null },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'userPositionHistory',
|
|
definedIn: 'models/userPositionHistory.js',
|
|
categories: ['usage'],
|
|
subjectField: 'userId',
|
|
purpose: 'Per-user undo/redo history of moves on a board.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: '1000 newest entries per user and board', where: 'server/models/userPositionHistory.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Trimmed daily (models/lib/positionHistoryCleanup.js); checkpoints are kept.',
|
|
},
|
|
{
|
|
collection: 'users',
|
|
definedIn: 'models/users.js',
|
|
definedBy: 'const Users = Meteor.users;',
|
|
categories: ['identity', 'contact', 'network', 'auth', 'usage'],
|
|
subjectField: '_id',
|
|
purpose: 'The accounts: username, full name, e-mail addresses, profile and preferences, login services, 2FA/passkey/SQRL metadata, push subscriptions, sign-in addresses, and which versions of the terms and privacy notice the person accepted (legalAcceptances, WP-8).',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: 'LOGIN_ADDRESS_RETENTION_DAYS', default: 'until the account is deleted; sign-in address entries 365 days', where: 'server/lib/loginAddressRetention.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'server/models/users.js',
|
|
notes: 'Meteor accounts collection (Meteor.users), so no new Mongo.Collection line. removeUser deletes the document and Users.after.remove runs models/lib/userDeletionCleanup.js; anonymizeUser (models/lib/userAnonymization.js) rewrites names and e-mail and removes loginAddresses, passkeys, sqrl, webPushSubscriptions, ntfy, profile.emailToCard, profile.emailBuffer and every login token (WP-4); legalAcceptances stays, as it names nobody. LOGIN_ADDRESS_RECORDED=false records no sign-in address at all, and USERS_ANONYMIZE_INACTIVE_AFTER_DAYS anonymises an account that many days after it was disabled for inactivity.',
|
|
},
|
|
{
|
|
collection: 'versionChecks',
|
|
definedIn: 'server/statistics.js',
|
|
definedBy: "export const VersionChecks = new Mongo.Collection('versionChecks');",
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'The last result of Check version in Admin Panel / Settings / Version: the newest versions and when, for Problems / Summary.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'one document, replaced by the next check', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'No person in it.',
|
|
},
|
|
{
|
|
collection: 'webPushKeys',
|
|
definedIn: 'server/webPush.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'The instance VAPID key pair for browser push.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'instance lifetime', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'Push subscriptions themselves live on the users document.',
|
|
},
|
|
{
|
|
collection: 'windowsSsoTokens',
|
|
definedIn: 'server/windowsSso.js',
|
|
categories: ['auth'],
|
|
subjectField: 'userId',
|
|
purpose: 'Short-lived one-time tokens of Windows single sign-on.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'TTL at expiresAt', where: 'server/windowsSso.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'models/lib/userErasure.js',
|
|
notes: 'Expires by TTL; _id is the token hash.',
|
|
},
|
|
{
|
|
collection: 'workloadAbsences',
|
|
definedIn: 'models/workload.js',
|
|
categories: ['health', 'usage'],
|
|
subjectField: 'userId, createdBy',
|
|
purpose: 'Absences of a person (vacation, sick, holiday, training, other) for workload planning.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: 'WORKLOAD_ABSENCE_RETENTION_DAYS', default: 'until deleted (off unless set); WORKLOAD_ABSENCE_TYPE_RECORDED=false records no sick leave', where: 'server/lib/workloadAbsenceRetention.js' },
|
|
erasure: 'delete',
|
|
erasureWhere: 'server/workload.js',
|
|
notes: 'HEALTH DATA (GDPR Art. 9): type sick. Removed when the user is deleted; no age-based removal.',
|
|
},
|
|
{
|
|
collection: 'workloadAllocations',
|
|
definedIn: 'models/workload.js',
|
|
categories: ['usage'],
|
|
subjectField: 'userId, createdBy',
|
|
purpose: 'Allocation of a person or role to a board for a period.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'delete',
|
|
erasureWhere: 'server/workload.js',
|
|
notes: '',
|
|
},
|
|
{
|
|
collection: 'workloadCapacities',
|
|
definedIn: 'models/workload.js',
|
|
categories: ['usage'],
|
|
subjectField: 'userId',
|
|
purpose: 'Working hours, work percent, working days and skills of a person.',
|
|
legalBasisHint: 'contract',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'delete',
|
|
erasureWhere: 'server/workload.js',
|
|
notes: 'Employment data (part-time percent).',
|
|
},
|
|
{
|
|
collection: 'workloadHolidays',
|
|
definedIn: 'models/workload.js',
|
|
categories: ['none'],
|
|
subjectField: null,
|
|
purpose: 'Public holidays for everyone.',
|
|
legalBasisHint: 'n/a',
|
|
retention: { env: null, default: 'until deleted', where: null },
|
|
erasure: 'n/a',
|
|
erasureWhere: null,
|
|
notes: 'createdBy is the admin who entered it.',
|
|
},
|
|
].map(entry => Object.freeze(entry)));
|
|
|
|
// Whether the collection holds personal data at all.
|
|
function holdsPersonalData(entry) {
|
|
return !(entry.categories.length === 1 && entry.categories[0] === 'none');
|
|
}
|
|
|
|
function personalDataEntries(inventory = INVENTORY) {
|
|
return inventory.filter(holdsPersonalData);
|
|
}
|
|
|
|
function entriesWithCategory(category, inventory = INVENTORY) {
|
|
return inventory.filter(entry => entry.categories.includes(category));
|
|
}
|
|
|
|
// Collections whose erasure should delete or anonymise but that nothing
|
|
// erases today: the work list of WP-4.
|
|
function erasureGaps(inventory = INVENTORY) {
|
|
return inventory
|
|
.filter(entry => (entry.erasure === 'delete' || entry.erasure === 'anonymize') && !entry.erasureWhere)
|
|
.map(entry => entry.collection);
|
|
}
|
|
|
|
function entryFor(collection, inventory = INVENTORY) {
|
|
return inventory.find(entry => entry.collection === collection) || null;
|
|
}
|
|
|
|
module.exports = {
|
|
CATEGORIES,
|
|
SPECIAL_CATEGORIES,
|
|
ERASURE,
|
|
INVENTORY,
|
|
holdsPersonalData,
|
|
personalDataEntries,
|
|
entriesWithCategory,
|
|
erasureGaps,
|
|
entryFor,
|
|
};
|