mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 17:45:18 -05:00
From docs/Compliance/README.md's P3 list and row 2.2: - Emergency access: Admin Panel / People's user popup has "Emergency access" with a note before Impersonate. It is kept as reason emergency with the note (shown in the Impersonation Report), and every other administrator who can sign in gets an e-mail at once; a failed e-mail never stops the impersonation (models/lib/emergencyAccess.js). - The administrators' audit log is hash-chained: each row carries its place, the previous row's hash and its own. Its _id is its place, so two servers writing at once cannot both take it - the unique _id refuses the second, which takes the next. A daily check, and verifyAdminAuditChain, walk it from the oldest row kept and report an edited or removed row in Problems / Filesystem integrity (models/lib/auditChain.js). - REGISTRATION_MINIMUM_AGE: the sign-up form asks "I am at least N years old" and a password sign-up without it is refused; administrators' accounts and identity providers' are not asked, and nothing is stored (models/lib/registrationAge.js). On every platform and the Helm chart. - Records of processing (draft) in Admin Panel / Settings / Legal pages: every collection holding personal data, why, how long with this server's values, and the outside services this server really uses, as Markdown to complete (models/lib/ropaDraft.js). Seven new strings, translated in every language. Low confidence: chr, dz, bo, gv, ak, ay, bm, ee, ff, fj, gn, haw, bua, cv, ba, csb, ace, bi, fur, an, ast-ES, co, fo, hsb, gd, ht, bho, as, iu, kl, kw, ks, nah, rup, sah, lld, szl, sm, ss, nd, qu, om, pap, lg, rn, rw, nso, st, sn, ny, mai, kok, sc, scn, nap, mg, la, ig, ky, ja-HI, tig, tlh, vo, ve-PP, wal, zgh, uz-AR, to, tpi, ts, tn, ve, wa, wa-RR, wo, wuu-Hans, yi, yo, tk_TM, ug, tt, ti, oc, rm, sd, ps. The wrong-language catalog values the translators saw are in TODO.md. Thanks to xet7 !
80 lines
4.2 KiB
JavaScript
80 lines
4.2 KiB
JavaScript
'use strict';
|
|
|
|
// A draft of the records of processing activities (docs/Compliance/README.md
|
|
// row 2.2; [GDPR] Art. 30(1)(a)-(g), [LGPD] Art. 37) for the operator - the
|
|
// controller - to complete: what this WeKan stores about people, why, for how
|
|
// long ON THIS SERVER, and which outside services it hands personal data to,
|
|
// as this server is set up. Admin Panel / Settings / Legal pages offers it as
|
|
// Markdown to copy.
|
|
//
|
|
// Built from the personal-data inventory (models/lib/personalDataInventory.js)
|
|
// and the facts the server reads (server/methods/legalPages.js
|
|
// getRopaDraft), so it changes when they do. Pure: tests/ropaDraft.test.cjs.
|
|
|
|
const { INVENTORY } = require('./personalDataInventory');
|
|
|
|
// The outside services, and when this server hands them personal data.
|
|
const SERVICES = Object.freeze([
|
|
['pwnedPasswords', 'Have I Been Pwned (api.pwnedpasswords.com)', 'the first 5 hex digits of a new password\'s SHA-1 - never the password or who chose it (PASSWORD_CHECK_PWNED)'],
|
|
['defaultAvatar', 'The default avatar service', 'what DEFAULT_AVATAR_URL puts in the address, for a user without an avatar of their own'],
|
|
['mail', 'The mail server', 'e-mail addresses, names and the text of notifications (MAIL_URL)'],
|
|
['objectStorage', 'Object storage (S3, Azure, Google Cloud Storage or WebDAV)', 'attachments and avatars, stored there (Admin Panel / Attachments / Storage)'],
|
|
['webhooks', 'Outgoing webhooks', 'card and board events - usernames and card text - sent to the addresses board admins set'],
|
|
['activityPub', 'ActivityPub (the fediverse)', 'public boards and their authors\' names, to other servers that follow them'],
|
|
]);
|
|
|
|
// One Markdown table cell: the backslash escaped first, then the pipe, and a
|
|
// line break made a space (as docs/Databases/FerretDB/1/SpeedTest/report.cjs
|
|
// mdCell does, after CodeQL js/incomplete-sanitization).
|
|
const cell = value => String(value === undefined || value === null ? '' : value)
|
|
.replace(/\\/g, '\\\\').replace(/\|/g, '\\|').replace(/\r?\n/g, ' ');
|
|
|
|
const personal = inventory => inventory.filter(e => Array.isArray(e.categories) && !(e.categories.length === 1 && e.categories[0] === 'none'));
|
|
|
|
// values: { [ENV_NAME]: value set on this server, or '' }, services: { [id]: true }.
|
|
function ropaDraft({ inventory = INVENTORY, values = {}, services = {}, today = new Date() } = {}) {
|
|
const rows = personal(inventory);
|
|
const retention = e => {
|
|
const env = e.retention && e.retention.env;
|
|
const set = env && values[env] !== undefined && values[env] !== '' ? ` - set here: ${env}=${values[env]}` : '';
|
|
return `${(e.retention && e.retention.default) || '(fill in)'}${set}`;
|
|
};
|
|
const used = SERVICES.filter(([id]) => services[id] === true);
|
|
return [
|
|
'# Records of processing activities (draft)',
|
|
'',
|
|
`Drafted on ${today.toISOString().slice(0, 10)} from this WeKan's settings. Complete the parts marked "fill in" and keep it up to date ([GDPR] Art. 30).`,
|
|
'',
|
|
'## Controller',
|
|
'',
|
|
'- Name and contact: (fill in)',
|
|
'- Data protection officer: (fill in, if any)',
|
|
'- Representative in the EU: (fill in, if any)',
|
|
'',
|
|
'## Processing: running the boards',
|
|
'',
|
|
'- Purpose: planning and tracking work on shared boards, and the accounts that use them.',
|
|
'- Data subjects: the people who have an account here, and people named on the boards.',
|
|
'- Legal basis: (fill in - for example contract, or legitimate interest).',
|
|
'- Security measures: see Admin Panel / Problems / Compliance and docs/Security/Compliance.',
|
|
'',
|
|
'## What is stored, why and for how long',
|
|
'',
|
|
'| Collection | Categories | Purpose | Kept | Erasure |',
|
|
'| --- | --- | --- | --- | --- |',
|
|
...rows.map(e => `| ${cell(e.collection)} | ${cell(e.categories.join(', '))} | ${cell(e.purpose)} | ${cell(retention(e))} | ${cell(e.erasure)} |`),
|
|
'',
|
|
'## Recipients outside this server',
|
|
'',
|
|
...(used.length ? used.map(([, name, what]) => `- ${name}: ${what}.`) : ['- None, as this server is set up.']),
|
|
'- Your hosting provider, backups and anything else around WeKan: (fill in).',
|
|
'',
|
|
'## Transfers to third countries',
|
|
'',
|
|
'(fill in - where the server, its backups and the services above are.)',
|
|
'',
|
|
].join('\n');
|
|
}
|
|
|
|
module.exports = { SERVICES, ropaDraft };
|