@rasensio/aidlc-content 2.25.0 → 2.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/hygiene-and-compliance.md +20 -4
- package/docs/lifecycle.md +11 -2
- package/docs/roadmap.md +6 -1
- package/package.json +1 -1
- package/packs/aspice/controls.yaml +561 -0
- package/packs/aspice/guidance/aspice-constraints.md +109 -0
- package/packs/aspice/pack.yaml +30 -0
- package/packs/gdpr/controls.yaml +287 -0
- package/packs/gdpr/guidance/gdpr-constraints.md +141 -0
- package/packs/gdpr/pack.yaml +24 -0
- package/packs/sox/controls.yaml +228 -0
- package/packs/sox/guidance/sox-constraints.md +99 -0
- package/packs/sox/pack.yaml +30 -0
- package/skills/20-requirements.md +3 -2
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: aspice-constraints
|
|
3
|
+
description: Automotive SPICE 4.0 software engineering outcomes that apply while code is being written
|
|
4
|
+
---
|
|
5
|
+
# Automotive SPICE Constraints
|
|
6
|
+
|
|
7
|
+
**This pack's control text has not been reviewed by a compliance practitioner.**
|
|
8
|
+
It was written by an engineer reading the process assessment model. Treat it as a working
|
|
9
|
+
draft: useful for building the evidence an assessor asks for while you write code, not as
|
|
10
|
+
an opinion on how an assessment would rate your processes. Nothing here makes a project
|
|
11
|
+
ASPICE compliant, certified, or assessed at any level.
|
|
12
|
+
|
|
13
|
+
The control text paraphrases the process assessment model in this pack's own words and
|
|
14
|
+
cites process and outcome numbers only. It quotes nothing: the model is the VDA's text,
|
|
15
|
+
and the model itself is obtained from the VDA.
|
|
16
|
+
|
|
17
|
+
## Edition and numbering
|
|
18
|
+
|
|
19
|
+
This pack targets **Automotive SPICE PAM 4.0**. Control ids are written `SWE<p>.<o>`:
|
|
20
|
+
`SWE1.3` means outcome 3 of process SWE.1. Excluded processes are written without the
|
|
21
|
+
dot — `MAN3` is MAN.3, `SUP10` is SUP.10 — and process attributes as `PA1.1`.
|
|
22
|
+
|
|
23
|
+
Reading from 3.1: 3.1's "software qualification test" is 4.0's **SWE.6 "software
|
|
24
|
+
verification"**, and 4.0's SWE.5 covers both component verification and integration
|
|
25
|
+
verification.
|
|
26
|
+
|
|
27
|
+
## What an assessment rates, and what this pack gives
|
|
28
|
+
|
|
29
|
+
Automotive SPICE rates an **organisation's processes across its projects**. An assessor
|
|
30
|
+
looks at many projects and rates process attributes into a capability level. A per-change
|
|
31
|
+
artifact trail is **input to that rating, not the rating**. No output of this pack states
|
|
32
|
+
or implies a capability level, and none should be presented as one. The report lists the
|
|
33
|
+
nine process attributes as not covered, and says why.
|
|
34
|
+
|
|
35
|
+
## What this pack covers, and what it does not
|
|
36
|
+
|
|
37
|
+
It covers the **software engineering processes SWE.1 to SWE.6 only**. These processes are
|
|
38
|
+
not covered: system engineering (SYS), hardware engineering (HWE), machine learning
|
|
39
|
+
engineering (MLE and SUP.11), validation (VAL), management (MAN), the other support
|
|
40
|
+
processes (SUP), supply (SPL), acquisition (ACQ), reuse (REU) and process improvement
|
|
41
|
+
(PIM). Each is listed in the pack's `controls.yaml` under `excluded:` with a reason:
|
|
42
|
+
`organizational` where nothing in a software change can speak to it, `not-yet-built` where
|
|
43
|
+
the trail holds input to it and this pack does not yet map it.
|
|
44
|
+
|
|
45
|
+
Of the 33 outcomes of SWE.1 to SWE.6, 16 are controls. The other 17 are excluded, each
|
|
46
|
+
with a note saying what the trail cannot show — among them every "agreed and communicated
|
|
47
|
+
to all affected parties" outcome, since the trail records a person's review, not who was
|
|
48
|
+
told.
|
|
49
|
+
|
|
50
|
+
## Which controls apply, and when
|
|
51
|
+
|
|
52
|
+
| Phase | Controls to have in mind |
|
|
53
|
+
|---|---|
|
|
54
|
+
| Requirements | SWE1.1, SWE1.3, SWE1.4, SWE1.5 |
|
|
55
|
+
| Design | SWE2.1, SWE2.2, SWE2.3, SWE3.1, SWE3.3 |
|
|
56
|
+
| Implementation | SWE3.2, SWE3.3, SWE4.1 |
|
|
57
|
+
| Testing | SWE4.1, SWE4.3, SWE5.6, SWE6.1, SWE6.3, SWE6.4 |
|
|
58
|
+
|
|
59
|
+
Run `aidlc compliance check` for each control's exact fail condition. Apply the fail
|
|
60
|
+
condition as written rather than your reading of the outcome — that is what makes two
|
|
61
|
+
reviews of the same change agree.
|
|
62
|
+
|
|
63
|
+
## What each control asks of you while you build
|
|
64
|
+
|
|
65
|
+
Every control is evidenced: the record is the evidence, so make sure each leaves one.
|
|
66
|
+
|
|
67
|
+
- **SWE1.1, requirements specified.** `requirements.md` states numbered acceptance
|
|
68
|
+
criteria, `AC-1` onwards.
|
|
69
|
+
- **SWE1.3, requirements analysed.** `requirements.md` names what you read of the existing
|
|
70
|
+
system, and resolves its open questions or says there are none.
|
|
71
|
+
- **SWE1.4, effect on the environment.** `requirements.md` has a non-functional section —
|
|
72
|
+
compatibility, resources, bounds — or says the change has no such effect.
|
|
73
|
+
- **SWE1.5, traced to the source.** `requirements.md` names where its criteria come from:
|
|
74
|
+
the roadmap item, or a customer requirement. Where system requirements live in another
|
|
75
|
+
tool, cite their ids in `requirements.md`; that is the only link the trail can keep.
|
|
76
|
+
- **SWE2.1, architecture designed.** `design.md` names its components, their
|
|
77
|
+
responsibilities, and how they interact.
|
|
78
|
+
- **SWE2.2, architecture analysed.** `design.md` records each design decision with its
|
|
79
|
+
reason and the alternative it rejected.
|
|
80
|
+
- **SWE2.3, design traced to requirements.** Every `design.md` section names the `AC-n` it
|
|
81
|
+
addresses, and every active criterion is addressed somewhere.
|
|
82
|
+
- **SWE3.1, detailed design.** `design.md` gives the interfaces — signatures, data shapes,
|
|
83
|
+
file formats — of the components the change touches.
|
|
84
|
+
- **SWE3.2, units built as designed.** Every task in `tasks.md` is ticked done or deferred
|
|
85
|
+
in place with a dated reason.
|
|
86
|
+
- **SWE3.3, work traced to requirements.** Every task in `tasks.md` cites the criteria it
|
|
87
|
+
serves, or says it is a chore; every active criterion is claimed by a task.
|
|
88
|
+
- **SWE4.1 and SWE4.3, unit verification.** `test-results.md` names the tests for the
|
|
89
|
+
units the change adds or alters, and records their outcome.
|
|
90
|
+
- **SWE5.6, integrated software verified.** `test-results.md` records a run of the whole
|
|
91
|
+
suite on the integrated change, and its outcome.
|
|
92
|
+
- **SWE6.1 and SWE6.3, verified against requirements.** Every active criterion has a test
|
|
93
|
+
that names it, and `test-results.md` records a result per criterion, explaining any
|
|
94
|
+
failure.
|
|
95
|
+
- **SWE6.4, tests traced to requirements.** `test-results.md` records the criterion-to-test
|
|
96
|
+
matrix the testing gate builds: no criterion without a test, no test citing no criterion.
|
|
97
|
+
|
|
98
|
+
## What the trail does not establish
|
|
99
|
+
|
|
100
|
+
The trail shows a change passed through requirements, design, implementation and testing,
|
|
101
|
+
and a requirement changed after its phase closed is recorded when it goes through
|
|
102
|
+
`aidlc amend`. An artifact edited directly after its phase closed — without
|
|
103
|
+
`aidlc amend` — is **not** detected: every gate still passes. So the trail does **not**
|
|
104
|
+
establish that `requirements.md`, `design.md` and the shipped code still agree. Do not
|
|
105
|
+
represent this pack's traceability controls as evidence of that agreement.
|
|
106
|
+
|
|
107
|
+
The report counts an evidenced control as evidenced when its named file exists in the
|
|
108
|
+
instance's state directory. It does not read the file's contents; the fail condition,
|
|
109
|
+
applied by a review, does.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
id: aspice
|
|
2
|
+
# The edition is part of the name on purpose. The report prints this string as its
|
|
3
|
+
# section heading, and the outcome numbers only mean something against PAM 4.0:
|
|
4
|
+
# 3.1 numbered its verification processes differently, and its "software
|
|
5
|
+
# qualification test" is 4.0's SWE.6 (automotive-spice-pack/AC-2, AC-4).
|
|
6
|
+
regime: Automotive SPICE 4.0
|
|
7
|
+
version: 0.1.0
|
|
8
|
+
|
|
9
|
+
# Industry-scoped, unlike soc2 and iso27001. Automotive SPICE is asked for by
|
|
10
|
+
# carmakers of their software suppliers; offering it to every project would be
|
|
11
|
+
# noise. Naming a real industry is also what turns on the init wizard's industry
|
|
12
|
+
# question (automotive-spice-pack/AC-23).
|
|
13
|
+
industries:
|
|
14
|
+
- automotive
|
|
15
|
+
|
|
16
|
+
entitlement: unrestricted
|
|
17
|
+
|
|
18
|
+
# Null on purpose. The control text in this pack was written by an engineer reading
|
|
19
|
+
# the process assessment model, not by a compliance practitioner. Nulling this field
|
|
20
|
+
# obliges the constraint layer to say so, obliges every report to say so, and makes
|
|
21
|
+
# a doctor check watch for someone editing the statement out.
|
|
22
|
+
reviewed_by: null
|
|
23
|
+
|
|
24
|
+
layers:
|
|
25
|
+
- name: aspice-constraints
|
|
26
|
+
file: aspice-constraints.md
|
|
27
|
+
# Pack layers are delivered as a read-instruction whatever their size. A small
|
|
28
|
+
# layer that got inlined would put pack text inside an emitted skill, which is
|
|
29
|
+
# forbidden outright.
|
|
30
|
+
always_pointer: true
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
# GDPR — Regulation (EU) 2016/679, the articles a change trail can speak to.
|
|
2
|
+
#
|
|
3
|
+
# Ids are written ART<n>: `ART25` is Article 25. Whole articles only, with no
|
|
4
|
+
# paragraph suffix. The pack validator accepts that shape and rejects `Art. 25`, and
|
|
5
|
+
# the ART prefix keeps every id distinct from the SOC 2 pack's CC ids and the ISO
|
|
6
|
+
# 27001 pack's A ids, which matters because `aidlc compliance check` keys agent
|
|
7
|
+
# outcomes by control id across all installed packs (gdpr-pack/AC-3, gdpr-pack/AC-20).
|
|
8
|
+
#
|
|
9
|
+
# The text below paraphrases the regulation in this pack's own words. It is not
|
|
10
|
+
# legal advice, and nothing here makes a project GDPR compliant.
|
|
11
|
+
#
|
|
12
|
+
# Chapters II to V (Articles 5 to 50) hold the duties of controllers and
|
|
13
|
+
# processors; every one of those articles is either a control or listed under
|
|
14
|
+
# `excluded`. Chapters I and VI to XI are not listed: they hold scope and
|
|
15
|
+
# definitions, supervisory authorities, cooperation between them, remedies and
|
|
16
|
+
# penalties, member-state rules for specific situations, and delegated acts and
|
|
17
|
+
# final provisions. None of them is a duty a change could show. The constraint layer
|
|
18
|
+
# says so.
|
|
19
|
+
#
|
|
20
|
+
# `kind` says what the AIDLC artifact trail can establish:
|
|
21
|
+
#
|
|
22
|
+
# evidenced the trail genuinely demonstrates the control
|
|
23
|
+
# checked-only the control operates over a running system or a document kept
|
|
24
|
+
# outside the repository, so no artifact here evidences it; the pack
|
|
25
|
+
# supplies a fail condition an agent applies, and the trail records
|
|
26
|
+
# only that the check happened
|
|
27
|
+
#
|
|
28
|
+
# Exactly one control is `evidenced`. Three are `checked-only`. Forty-two articles
|
|
29
|
+
# of Chapters II to V are not covered at all, each listed below with its reason.
|
|
30
|
+
#
|
|
31
|
+
# The three design controls share one opening clause in `fails_when`, "The change
|
|
32
|
+
# adds or changes personal data, and", so a change that touches none fails none of
|
|
33
|
+
# them on that ground (gdpr-pack/AC-10). After it, each names only the gap it owns.
|
|
34
|
+
#
|
|
35
|
+
# `references` on ART32 names the SOC 2 and ISO 27001 controls that already hold the
|
|
36
|
+
# security rules, as `<pack>#<control id>`, so a rule lives in one place
|
|
37
|
+
# (gdpr-pack/AC-11, gdpr-pack/AC-12). ART32 keeps its own narrow fail condition, about
|
|
38
|
+
# the personal data alone, so it can be applied when no other pack is installed
|
|
39
|
+
# (gdpr-pack/AC-13).
|
|
40
|
+
|
|
41
|
+
controls:
|
|
42
|
+
# -------------------------------------------------------------------------
|
|
43
|
+
# Evidenced: the lifecycle trail is real evidence for this control.
|
|
44
|
+
# -------------------------------------------------------------------------
|
|
45
|
+
- id: ART25
|
|
46
|
+
kind: evidenced
|
|
47
|
+
check_kind: agent
|
|
48
|
+
severity: critical
|
|
49
|
+
phases:
|
|
50
|
+
- design
|
|
51
|
+
requires: >-
|
|
52
|
+
Data protection by design and by default. When deciding how personal data will
|
|
53
|
+
be processed, and while processing it, the controller builds in measures that
|
|
54
|
+
fit the risk and put the data protection principles into effect, such as
|
|
55
|
+
pseudonymisation and collecting no more data than the purpose needs. By
|
|
56
|
+
default, only the personal data each purpose needs is processed, kept, and made
|
|
57
|
+
reachable.
|
|
58
|
+
look_at: >-
|
|
59
|
+
The `## Personal data` section of design.md, then the change itself for the
|
|
60
|
+
signs that it touches personal data: new or changed fields, tables or columns
|
|
61
|
+
about people; data written to logs, events, analytics or exports; and data sent
|
|
62
|
+
to a third party.
|
|
63
|
+
fails_when: >-
|
|
64
|
+
The change adds or changes personal data, and design.md has no personal data
|
|
65
|
+
statement, or the statement does not name which personal data the change
|
|
66
|
+
touches and about whom.
|
|
67
|
+
evidence_artifact: design.md
|
|
68
|
+
|
|
69
|
+
# -------------------------------------------------------------------------
|
|
70
|
+
# Checked-only: the record of processing and the risk assessment are documents
|
|
71
|
+
# the organisation keeps outside the repository, and security of processing
|
|
72
|
+
# operates over a running system. The pack asks the question; the trail records
|
|
73
|
+
# that it was asked, never that the document exists or the measures work.
|
|
74
|
+
# -------------------------------------------------------------------------
|
|
75
|
+
- id: ART30
|
|
76
|
+
kind: checked-only
|
|
77
|
+
check_kind: agent
|
|
78
|
+
severity: major
|
|
79
|
+
phases:
|
|
80
|
+
- design
|
|
81
|
+
requires: >-
|
|
82
|
+
The controller keeps a record of its processing activities: the purposes, the
|
|
83
|
+
categories of people and of personal data, the recipients, any transfers out of
|
|
84
|
+
the EU, the time limits for erasure, and a general description of the security
|
|
85
|
+
measures. A processor keeps a matching record of what it does for each
|
|
86
|
+
controller.
|
|
87
|
+
look_at: >-
|
|
88
|
+
The Record of processing line of the `## Personal data` section in design.md,
|
|
89
|
+
read against what the change does: a new purpose, a new category of data or of
|
|
90
|
+
people, a new recipient, a new transfer, or a changed retention period.
|
|
91
|
+
fails_when: >-
|
|
92
|
+
The change adds or changes personal data, and the personal data statement does
|
|
93
|
+
not say whether the record of processing activities under Article 30 needs an
|
|
94
|
+
update, or gives no reason for its answer.
|
|
95
|
+
|
|
96
|
+
- id: ART35
|
|
97
|
+
kind: checked-only
|
|
98
|
+
check_kind: agent
|
|
99
|
+
severity: major
|
|
100
|
+
phases:
|
|
101
|
+
- design
|
|
102
|
+
requires: >-
|
|
103
|
+
Before processing that is likely to put people's rights and freedoms at high
|
|
104
|
+
risk, especially with new technologies, the controller assesses the impact on
|
|
105
|
+
the protection of personal data. Profiling that leads to decisions with real
|
|
106
|
+
effects on people, large-scale use of special categories or criminal-offence
|
|
107
|
+
data, and large-scale monitoring of public places always need one.
|
|
108
|
+
look_at: >-
|
|
109
|
+
The Risk assessment line of the `## Personal data` section in design.md, read
|
|
110
|
+
against what the change does: profiling or automated decisions, special
|
|
111
|
+
categories of data, data at large scale, monitoring, or a new technology.
|
|
112
|
+
fails_when: >-
|
|
113
|
+
The change adds or changes personal data, and the personal data statement does
|
|
114
|
+
not say whether a risk assessment under Article 35 is needed, or gives no reason
|
|
115
|
+
for its answer.
|
|
116
|
+
|
|
117
|
+
- id: ART32
|
|
118
|
+
kind: checked-only
|
|
119
|
+
check_kind: agent
|
|
120
|
+
severity: critical
|
|
121
|
+
phases:
|
|
122
|
+
- implementation
|
|
123
|
+
- deployment
|
|
124
|
+
requires: >-
|
|
125
|
+
Measures that fit the risk to the personal data — such as pseudonymisation and
|
|
126
|
+
encryption, keeping the data confidential, intact and available, restoring
|
|
127
|
+
access to it after an incident, and testing regularly that the measures work.
|
|
128
|
+
look_at: >-
|
|
129
|
+
Code in the change that stores, sends, logs or reads the personal data that
|
|
130
|
+
the personal data statement in design.md names, and the Protection line of that
|
|
131
|
+
statement.
|
|
132
|
+
fails_when: >-
|
|
133
|
+
The change adds or changes personal data, and the code stores or sends that
|
|
134
|
+
data unencrypted, writes it to a log or an error message, or lets a code path
|
|
135
|
+
read it without checking who is asking.
|
|
136
|
+
# Access, transmission and logging in SOC 2; logging and cryptography in ISO
|
|
137
|
+
# 27001. Every one is a covered control of its pack, which the content test
|
|
138
|
+
# asserts, and no run of eight words from their fail conditions appears above.
|
|
139
|
+
references: soc2#CC6.1, soc2#CC6.7, soc2#CC7.2, iso27001#A8.15, iso27001#A8.24
|
|
140
|
+
|
|
141
|
+
# ---------------------------------------------------------------------------
|
|
142
|
+
# Not covered. Forty-two of the forty-six articles in Chapters II to V.
|
|
143
|
+
#
|
|
144
|
+
# organizational the duty is the organisation's: a legal decision, a contract, a
|
|
145
|
+
# process for answering people, or a dealing with an authority; a
|
|
146
|
+
# tool that reads code cannot speak to it
|
|
147
|
+
# not-yet-built a code lifecycle could say something here, and this pack does
|
|
148
|
+
# not yet
|
|
149
|
+
# ---------------------------------------------------------------------------
|
|
150
|
+
excluded:
|
|
151
|
+
# Chapter II — principles (Articles 5 to 11).
|
|
152
|
+
- id: ART5
|
|
153
|
+
reason: not-yet-built
|
|
154
|
+
note: >-
|
|
155
|
+
The principles. Data minimisation and storage limitation have a code angle:
|
|
156
|
+
the personal data statement names the data, but this pack does not check that
|
|
157
|
+
each field is needed or that it has a retention limit.
|
|
158
|
+
- id: ART6
|
|
159
|
+
reason: organizational
|
|
160
|
+
note: >-
|
|
161
|
+
Choosing a lawful basis for processing is a legal decision the organisation
|
|
162
|
+
makes and records; no change trail shows it.
|
|
163
|
+
- id: ART7
|
|
164
|
+
reason: organizational
|
|
165
|
+
note: >-
|
|
166
|
+
Consent is a legal condition the organisation must be able to prove. A consent
|
|
167
|
+
checkbox in the code is not the control.
|
|
168
|
+
- id: ART8
|
|
169
|
+
reason: organizational
|
|
170
|
+
note: Conditions for a child's consent are a legal decision, like Article 7.
|
|
171
|
+
- id: ART9
|
|
172
|
+
reason: organizational
|
|
173
|
+
note: >-
|
|
174
|
+
The legal ground for processing special categories of data is the
|
|
175
|
+
organisation's. The risk such data carries is asked about through ART35.
|
|
176
|
+
- id: ART10
|
|
177
|
+
reason: organizational
|
|
178
|
+
note: The legal ground for processing criminal-offence data is the organisation's.
|
|
179
|
+
- id: ART11
|
|
180
|
+
reason: organizational
|
|
181
|
+
|
|
182
|
+
# Chapter III — the rights of the people the data is about (Articles 12 to 23).
|
|
183
|
+
# Answering a person's request is the organisation's process. An export or delete
|
|
184
|
+
# function in the code is not the control.
|
|
185
|
+
- id: ART12
|
|
186
|
+
reason: organizational
|
|
187
|
+
- id: ART13
|
|
188
|
+
reason: organizational
|
|
189
|
+
note: Telling people what is collected is a privacy notice, written and kept by the organisation.
|
|
190
|
+
- id: ART14
|
|
191
|
+
reason: organizational
|
|
192
|
+
- id: ART15
|
|
193
|
+
reason: organizational
|
|
194
|
+
note: >-
|
|
195
|
+
Answering a request for access is the organisation's process. An export
|
|
196
|
+
function in the code is not the control.
|
|
197
|
+
- id: ART16
|
|
198
|
+
reason: organizational
|
|
199
|
+
- id: ART17
|
|
200
|
+
reason: organizational
|
|
201
|
+
note: >-
|
|
202
|
+
Answering a request for erasure is the organisation's process. A delete
|
|
203
|
+
function in the code is not the control.
|
|
204
|
+
- id: ART18
|
|
205
|
+
reason: organizational
|
|
206
|
+
- id: ART19
|
|
207
|
+
reason: organizational
|
|
208
|
+
- id: ART20
|
|
209
|
+
reason: organizational
|
|
210
|
+
- id: ART21
|
|
211
|
+
reason: organizational
|
|
212
|
+
- id: ART22
|
|
213
|
+
reason: organizational
|
|
214
|
+
note: >-
|
|
215
|
+
Whether automated decisions about people are allowed is a legal question. The
|
|
216
|
+
risk they carry is asked about through ART35.
|
|
217
|
+
- id: ART23
|
|
218
|
+
reason: organizational
|
|
219
|
+
note: Restrictions of these rights are set by Union or member-state law.
|
|
220
|
+
|
|
221
|
+
# Chapter IV — controller and processor (Articles 24 to 43), less the three
|
|
222
|
+
# controls above.
|
|
223
|
+
- id: ART24
|
|
224
|
+
reason: organizational
|
|
225
|
+
- id: ART26
|
|
226
|
+
reason: organizational
|
|
227
|
+
note: An arrangement between joint controllers is a contract.
|
|
228
|
+
- id: ART27
|
|
229
|
+
reason: organizational
|
|
230
|
+
- id: ART28
|
|
231
|
+
reason: organizational
|
|
232
|
+
note: >-
|
|
233
|
+
Processor contracts are agreements between organisations. Calling a third
|
|
234
|
+
party's API in the code is not the control; naming that third party in the
|
|
235
|
+
personal data statement is what this pack asks.
|
|
236
|
+
- id: ART29
|
|
237
|
+
reason: organizational
|
|
238
|
+
- id: ART31
|
|
239
|
+
reason: organizational
|
|
240
|
+
note: Cooperating with a supervisory authority is the organisation's dealing.
|
|
241
|
+
- id: ART33
|
|
242
|
+
reason: organizational
|
|
243
|
+
note: >-
|
|
244
|
+
Notifying a supervisory authority of a breach is an incident-response process,
|
|
245
|
+
not a property of a change.
|
|
246
|
+
- id: ART34
|
|
247
|
+
reason: organizational
|
|
248
|
+
note: >-
|
|
249
|
+
Telling people about a breach is an incident-response process, not a property
|
|
250
|
+
of a change.
|
|
251
|
+
- id: ART36
|
|
252
|
+
reason: organizational
|
|
253
|
+
note: Consulting the supervisory authority after a high-risk assessment is the organisation's dealing.
|
|
254
|
+
- id: ART37
|
|
255
|
+
reason: organizational
|
|
256
|
+
note: Appointing a data protection officer is the organisation's decision.
|
|
257
|
+
- id: ART38
|
|
258
|
+
reason: organizational
|
|
259
|
+
- id: ART39
|
|
260
|
+
reason: organizational
|
|
261
|
+
- id: ART40
|
|
262
|
+
reason: organizational
|
|
263
|
+
- id: ART41
|
|
264
|
+
reason: organizational
|
|
265
|
+
- id: ART42
|
|
266
|
+
reason: organizational
|
|
267
|
+
note: Certification schemes are run by accredited bodies, not by a code tool.
|
|
268
|
+
- id: ART43
|
|
269
|
+
reason: organizational
|
|
270
|
+
|
|
271
|
+
# Chapter V — transfers out of the EU (Articles 44 to 50). The legal ground for a
|
|
272
|
+
# transfer is the organisation's; naming a new recipient outside the EU in the
|
|
273
|
+
# personal data statement is what this pack asks, through ART30.
|
|
274
|
+
- id: ART44
|
|
275
|
+
reason: organizational
|
|
276
|
+
- id: ART45
|
|
277
|
+
reason: organizational
|
|
278
|
+
- id: ART46
|
|
279
|
+
reason: organizational
|
|
280
|
+
- id: ART47
|
|
281
|
+
reason: organizational
|
|
282
|
+
- id: ART48
|
|
283
|
+
reason: organizational
|
|
284
|
+
- id: ART49
|
|
285
|
+
reason: organizational
|
|
286
|
+
- id: ART50
|
|
287
|
+
reason: organizational
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gdpr-constraints
|
|
3
|
+
description: GDPR constraints for changes that add or change personal data — the personal data statement at design, and security of processing while code is written
|
|
4
|
+
---
|
|
5
|
+
# GDPR Constraints
|
|
6
|
+
|
|
7
|
+
**This pack's control text has not been reviewed by a compliance practitioner.**
|
|
8
|
+
It was written by an engineer reading the regulation, and it paraphrases
|
|
9
|
+
Regulation (EU) 2016/679 in its own words. **It is not legal advice.** Treat it as a
|
|
10
|
+
working draft: useful for asking the right questions while you design and build a
|
|
11
|
+
change, not as an opinion on whether your processing is lawful. Nothing here makes a
|
|
12
|
+
project GDPR compliant.
|
|
13
|
+
|
|
14
|
+
## Which controls apply, and when
|
|
15
|
+
|
|
16
|
+
| Phase | Controls to have in mind |
|
|
17
|
+
|---|---|
|
|
18
|
+
| Design | ART25, ART30, ART35 |
|
|
19
|
+
| Implementation | ART32 |
|
|
20
|
+
| Deployment | ART32 |
|
|
21
|
+
|
|
22
|
+
`ART25` is Article 25; every id is a whole article. Run `aidlc compliance check` for
|
|
23
|
+
each control's exact fail condition, and apply the fail condition as written rather
|
|
24
|
+
than your reading of the article — that is what makes two reviews of the same change
|
|
25
|
+
agree.
|
|
26
|
+
|
|
27
|
+
**ART25 is evidenced.** Privacy by design is a duty about how a change is designed,
|
|
28
|
+
and `design.md` is where this lifecycle records the design, so the trail shows it.
|
|
29
|
+
|
|
30
|
+
**ART30, ART32 and ART35 are checked only.** The record of processing and the risk
|
|
31
|
+
assessment are documents the organisation keeps outside the repository, and security
|
|
32
|
+
of processing operates over a running system. The pack gives you a question to
|
|
33
|
+
answer or a fail condition to apply, and the trail records that you did. Never
|
|
34
|
+
present a checked-only control as evidence.
|
|
35
|
+
|
|
36
|
+
## The personal data statement
|
|
37
|
+
|
|
38
|
+
Every `design.md` carries a `## Personal data` section, whatever the change. It is
|
|
39
|
+
the one place the three design controls look.
|
|
40
|
+
|
|
41
|
+
When the change adds or changes no personal data, the section is one line, and that
|
|
42
|
+
line is the whole statement:
|
|
43
|
+
|
|
44
|
+
```markdown
|
|
45
|
+
## Personal data
|
|
46
|
+
|
|
47
|
+
This change adds or changes no personal data.
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Otherwise it has four labelled lines:
|
|
51
|
+
|
|
52
|
+
```markdown
|
|
53
|
+
## Personal data
|
|
54
|
+
|
|
55
|
+
- **Data:** <which personal data, about whom>
|
|
56
|
+
- **Risk assessment (Art. 35):** needed | not needed — <why>
|
|
57
|
+
- **Record of processing (Art. 30):** update needed | no update needed — <why>
|
|
58
|
+
- **Protection (Art. 32):** <how the code protects it in storage, in transit and in logs>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Personal data is anything that identifies a person or can be tied to one: a name, an
|
|
62
|
+
email address, an account id, an IP address, a location, a device id, a record of
|
|
63
|
+
what someone did. A change touches it when it adds or changes a field, table or
|
|
64
|
+
column about people, writes such data to a log, an event, analytics or an export, or
|
|
65
|
+
sends it to a third party. When in doubt, say what the data is and answer the
|
|
66
|
+
questions; a statement that over-reports costs a line, and one that under-reports is
|
|
67
|
+
the gap this pack exists to catch.
|
|
68
|
+
|
|
69
|
+
Each design control owns one part of the statement:
|
|
70
|
+
|
|
71
|
+
- **ART25** fails when the change touches personal data and the statement is missing
|
|
72
|
+
or does not name the data and whom it is about.
|
|
73
|
+
- **ART35** fails when the statement does not say whether a risk assessment is
|
|
74
|
+
needed, or gives no reason.
|
|
75
|
+
- **ART30** fails when the statement does not say whether the record of processing
|
|
76
|
+
needs an update, or gives no reason.
|
|
77
|
+
|
|
78
|
+
A statement saying the change touches no personal data fails none of them on that
|
|
79
|
+
ground. Each fail condition begins "The change adds or changes personal data, and",
|
|
80
|
+
so a reviewer who finds personal data the statement missed still fails `ART25`.
|
|
81
|
+
|
|
82
|
+
The Protection line is guidance for `ART32` at implementation, not a fail condition
|
|
83
|
+
of the design controls.
|
|
84
|
+
|
|
85
|
+
## What ART25's evidence does not show
|
|
86
|
+
|
|
87
|
+
The trail shows that a personal data statement was written for the change and that
|
|
88
|
+
it answered the questions. It does **not** show that the measures it describes are
|
|
89
|
+
appropriate, that the risk assessment it asks for was carried out, or that the record
|
|
90
|
+
of processing was updated. Those are judgements and documents the organisation owns.
|
|
91
|
+
Do not represent this pack's `ART25` output as evidence that a change's processing is
|
|
92
|
+
lawful or its protection adequate.
|
|
93
|
+
|
|
94
|
+
## Security of processing lives in the other packs
|
|
95
|
+
|
|
96
|
+
This pack does not restate security rules. `ART32` names the SOC 2 and ISO 27001
|
|
97
|
+
controls that hold them — access, transmission and logging (`soc2#CC6.1`,
|
|
98
|
+
`soc2#CC6.7`, `soc2#CC7.2`), logging and cryptography (`iso27001#A8.15`,
|
|
99
|
+
`iso27001#A8.24`) — so there is one place to change when a rule changes. With either
|
|
100
|
+
pack installed, apply those controls to the personal data the statement names. With
|
|
101
|
+
neither installed, apply `ART32`'s own fail condition: it speaks only of that
|
|
102
|
+
personal data.
|
|
103
|
+
|
|
104
|
+
## What this pack does not cover
|
|
105
|
+
|
|
106
|
+
Most of the GDPR is the organisation's, not the code's. This pack does not cover:
|
|
107
|
+
|
|
108
|
+
- **Lawful basis and consent** (Articles 6 to 10) — a legal decision the organisation
|
|
109
|
+
makes and records; a consent checkbox is not the control.
|
|
110
|
+
- **Processor contracts** (Article 28) and joint-controller arrangements — agreements
|
|
111
|
+
between organisations.
|
|
112
|
+
- **Data subject requests** (Articles 12 to 23) — answering a person's request for
|
|
113
|
+
access, erasure, correction or a copy of their data is the organisation's process.
|
|
114
|
+
An export or delete function in the code is not the control.
|
|
115
|
+
- **Breach notification** (Articles 33 and 34) — an incident-response process, not a
|
|
116
|
+
property of a change.
|
|
117
|
+
- **Transfers out of the EU** (Articles 44 to 50) — the legal ground for a transfer is
|
|
118
|
+
the organisation's. A new recipient belongs in the statement, which `ART30` asks
|
|
119
|
+
about.
|
|
120
|
+
- **The data protection officer** (Articles 37 to 39), codes of conduct and
|
|
121
|
+
certification schemes (Articles 40 to 43), and prior consultation with the
|
|
122
|
+
authority (Article 36).
|
|
123
|
+
- **The principles** (Article 5) — data minimisation and storage limitation have a
|
|
124
|
+
code angle, and this pack does not yet check that each field is needed or has a
|
|
125
|
+
retention limit.
|
|
126
|
+
|
|
127
|
+
Every article from 5 to 50 that is not a control is listed in `controls.yaml` with
|
|
128
|
+
its reason. The rest of the regulation is not listed, because none of it is a duty a
|
|
129
|
+
change could show:
|
|
130
|
+
|
|
131
|
+
- **Chapter I** holds the scope of the regulation and its definitions.
|
|
132
|
+
- **Chapter VI** sets up the supervisory authorities.
|
|
133
|
+
- **Chapter VII** covers cooperation between the authorities and the European Data
|
|
134
|
+
Protection Board.
|
|
135
|
+
- **Chapter VIII** holds remedies, liability and penalties.
|
|
136
|
+
- **Chapter IX** leaves rules for specific situations, such as journalism and
|
|
137
|
+
employment, to member states.
|
|
138
|
+
- **Chapters X and XI** hold delegated acts and final provisions.
|
|
139
|
+
|
|
140
|
+
The pack is also not the UK GDPR, any member state's national data protection law, or
|
|
141
|
+
the ePrivacy Directive.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
id: gdpr
|
|
2
|
+
regime: GDPR
|
|
3
|
+
version: 0.1.0
|
|
4
|
+
|
|
5
|
+
# The GDPR binds anyone processing personal data of people in the EU, whatever
|
|
6
|
+
# their industry, so like SOC 2 and ISO 27001 it is not industry-scoped.
|
|
7
|
+
industries:
|
|
8
|
+
- any
|
|
9
|
+
|
|
10
|
+
entitlement: unrestricted
|
|
11
|
+
|
|
12
|
+
# Null on purpose. The control text in this pack was written by an engineer reading
|
|
13
|
+
# the regulation, not by a compliance practitioner or a lawyer. Nulling this field
|
|
14
|
+
# obliges the constraint layer to say so, obliges every report to say so, and makes
|
|
15
|
+
# a doctor check watch for someone editing the statement out.
|
|
16
|
+
reviewed_by: null
|
|
17
|
+
|
|
18
|
+
layers:
|
|
19
|
+
- name: gdpr-constraints
|
|
20
|
+
file: gdpr-constraints.md
|
|
21
|
+
# Pack layers are delivered as a read-instruction whatever their size. A small
|
|
22
|
+
# layer that got inlined would put pack text inside an emitted skill, which is
|
|
23
|
+
# forbidden outright.
|
|
24
|
+
always_pointer: true
|