@radicaltools/cli 0.3.0 → 0.3.2
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/README.md +332 -44
- package/dist/hub-catalogue/concern/concern-api-collections.radical +1136 -0
- package/dist/hub-catalogue/concern/concern-api-errors.radical +1180 -0
- package/dist/hub-catalogue/concern/concern-api-evolution.radical +449 -210
- package/dist/hub-catalogue/concern/concern-api-idempotency.radical +1218 -0
- package/dist/hub-catalogue/concern/concern-api-resource-design.radical +1102 -0
- package/dist/hub-catalogue/concern/concern-api-style-guide.radical +1210 -0
- package/dist/hub-catalogue/concern/concern-architecture-style.radical +287 -131
- package/dist/hub-catalogue/concern/concern-audit-trail.radical +1096 -0
- package/dist/hub-catalogue/concern/concern-authentication.radical +247 -37
- package/dist/hub-catalogue/concern/concern-authorization.radical +311 -89
- package/dist/hub-catalogue/concern/concern-availability.radical +287 -63
- package/dist/hub-catalogue/concern/concern-backend-stack.radical +300 -381
- package/dist/hub-catalogue/concern/concern-backup-recovery.radical +385 -129
- package/dist/hub-catalogue/concern/concern-caching.radical +1294 -0
- package/dist/hub-catalogue/concern/concern-capacity.radical +194 -81
- package/dist/hub-catalogue/concern/concern-code-documentation.radical +1397 -0
- package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +1409 -0
- package/dist/hub-catalogue/concern/concern-code-review-branching.radical +1416 -0
- package/dist/hub-catalogue/concern/concern-code-style.radical +1058 -0
- package/dist/hub-catalogue/concern/concern-communication-style.radical +473 -167
- package/dist/hub-catalogue/concern/concern-data-classification.radical +970 -0
- package/dist/hub-catalogue/concern/concern-data-consistency.radical +339 -308
- package/dist/hub-catalogue/concern/concern-data-store.radical +480 -158
- package/dist/hub-catalogue/concern/concern-decomposition.radical +260 -85
- package/dist/hub-catalogue/concern/concern-definition-of-done.radical +1214 -0
- package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +966 -0
- package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +1345 -0
- package/dist/hub-catalogue/concern/concern-deployment.radical +343 -92
- package/dist/hub-catalogue/concern/concern-encryption.radical +339 -76
- package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +1197 -0
- package/dist/hub-catalogue/concern/concern-eu-dora.radical +1321 -0
- package/dist/hub-catalogue/concern/concern-frontend-stack.radical +467 -160
- package/dist/hub-catalogue/concern/concern-incident-management.radical +1204 -0
- package/dist/hub-catalogue/concern/concern-infrastructure.radical +1300 -268
- package/dist/hub-catalogue/concern/concern-integration-resilience.radical +88 -51
- package/dist/hub-catalogue/concern/concern-messaging.radical +173 -140
- package/dist/hub-catalogue/concern/concern-module-boundaries.radical +162 -159
- package/dist/hub-catalogue/concern/concern-observability.radical +224 -275
- package/dist/hub-catalogue/concern/concern-operational-readiness.radical +1249 -0
- package/dist/hub-catalogue/concern/concern-personal-data.radical +637 -122
- package/dist/hub-catalogue/concern/concern-quality-priorities.radical +1091 -0
- package/dist/hub-catalogue/concern/concern-rate-limiting.radical +433 -141
- package/dist/hub-catalogue/concern/concern-release-versioning.radical +1358 -0
- package/dist/hub-catalogue/concern/concern-retention.radical +1399 -0
- package/dist/hub-catalogue/concern/concern-secrets.radical +332 -74
- package/dist/hub-catalogue/concern/concern-secure-coding.radical +1379 -0
- package/dist/hub-catalogue/concern/concern-secure-development.radical +1245 -0
- package/dist/hub-catalogue/concern/concern-security-detection.radical +1153 -0
- package/dist/hub-catalogue/concern/concern-supply-chain.radical +257 -183
- package/dist/hub-catalogue/concern/concern-technical-debt.radical +1450 -0
- package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +1145 -0
- package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +271 -137
- package/dist/hub-catalogue/concern/concern-test-strategy.radical +243 -224
- package/dist/hub-catalogue/concern/concern-threat-modelling.radical +1143 -0
- package/dist/index.js +10608 -6579
- package/package.json +1 -1
|
@@ -0,0 +1,970 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "concern-data-classification",
|
|
4
|
+
"category": "concern",
|
|
5
|
+
"name": "Data classification",
|
|
6
|
+
"description": "Which classification levels the organisation uses, who assigns them, where the level of each database and queue is recorded, whether sensitive data is looked for, and where data of the highest level may go. The flow rule is checked on the architecture model itself.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"compliance",
|
|
9
|
+
"data-classification",
|
|
10
|
+
"iso-27001",
|
|
11
|
+
"data-inventory",
|
|
12
|
+
"data-flows",
|
|
13
|
+
"sensitive-data-discovery"
|
|
14
|
+
],
|
|
15
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
16
|
+
"concern": {
|
|
17
|
+
"id": "data-classification",
|
|
18
|
+
"trigger": "LIST NODES WHERE (type = \"database\" OR type = \"queue\") AND external != true",
|
|
19
|
+
"why": "these elements keep data, so which classification level it carries, who sets it and where data of each level may go has to be decided.",
|
|
20
|
+
"group": "compliance"
|
|
21
|
+
},
|
|
22
|
+
"sources": [
|
|
23
|
+
{
|
|
24
|
+
"title": "ISO/IEC 27001:2022, Information security management systems (Annex A 5.12 Classification of information, 5.13 Labelling of information, 5.14 Information transfer)",
|
|
25
|
+
"url": "https://www.iso.org/standard/27001"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"title": "NIST FIPS 199, Standards for Security Categorization of Federal Information and Information Systems",
|
|
29
|
+
"url": "https://csrc.nist.gov/pubs/fips/199/final"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"title": "NIST SP 800-60 Vol. 1 Rev. 1, Guide for Mapping Types of Information and Information Systems to Security Categories",
|
|
33
|
+
"url": "https://csrc.nist.gov/pubs/sp/800/60/v1/r1/final"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"title": "UK Government Security Classifications",
|
|
37
|
+
"url": "https://www.gov.uk/government/publications/government-security-classifications"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"title": "Regulation (EU) 2016/679 (GDPR), Article 9 (special categories) and Article 28 (processors)",
|
|
41
|
+
"url": "https://eur-lex.europa.eu/eli/reg/2016/679/oj"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"title": "PCI Security Standards Council, PCI DSS document library",
|
|
45
|
+
"url": "https://www.pcisecuritystandards.org/document_library/"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"title": "Amazon Macie: supported storage classes and formats",
|
|
49
|
+
"url": "https://docs.aws.amazon.com/macie/latest/user/discovery-supported-storage.html"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"title": "Google Cloud Sensitive Data Protection: data profiles",
|
|
53
|
+
"url": "https://docs.cloud.google.com/sensitive-data-protection/docs/data-profiles"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"title": "Microsoft Purview: data classification in Data Map",
|
|
57
|
+
"url": "https://learn.microsoft.com/en-us/purview/data-map-classification"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"title": "OpenMetadata: classification",
|
|
61
|
+
"url": "https://docs.open-metadata.org/latest/how-to-guides/data-governance/classification"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"title": "AWS Config managed rule required-tags",
|
|
65
|
+
"url": "https://docs.aws.amazon.com/config/latest/developerguide/required-tags.html"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"templateParams": [
|
|
69
|
+
{
|
|
70
|
+
"key": "SCHEME",
|
|
71
|
+
"title": "Levels",
|
|
72
|
+
"label": "Which classification levels does the organisation use?",
|
|
73
|
+
"hint": "The levels are the vocabulary every other rule is written in: who may read, where data may be copied, where it may go. ISO/IEC 27001 asks for a classification scheme (Annex A 5.12) and labels that follow it (5.13), and leaves the levels to you. The answer holds for the whole organisation: every store gets one level from the same list.",
|
|
74
|
+
"defaultValue": "four",
|
|
75
|
+
"options": [
|
|
76
|
+
{
|
|
77
|
+
"value": "four",
|
|
78
|
+
"label": "four levels (public, internal, confidential, restricted)",
|
|
79
|
+
"description": "Public may be published; internal is for staff and contractors; confidential for named roles; restricted for named people, where a leak means severe harm or a regulatory or contractual breach. The common practice under ISO/IEC 27001. Pick it when some data (card numbers, health records, credentials, trade secrets) needs a stricter regime than the rest of what is confidential."
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"value": "three",
|
|
83
|
+
"label": "three levels (public, internal, confidential)",
|
|
84
|
+
"description": "Public, internal, and confidential for everything sensitive. Pick it for a smaller organisation where all sensitive data gets the same treatment: fewer levels are applied more consistently, and confidential is then the highest level."
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"value": "regulated",
|
|
88
|
+
"label": "four levels with regulated categories",
|
|
89
|
+
"description": "The four levels, and on each store the regulated categories it holds: personal data, special-category data (GDPR Art. 9), health data and cardholder data (PCI DSS), each setting the lowest level the store may have. Pick it when rules beyond general confidentiality apply, so that the stores in scope of each one come from a single list."
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"key": "RECORD",
|
|
95
|
+
"title": "Where recorded",
|
|
96
|
+
"label": "Where is each store's level recorded?",
|
|
97
|
+
"hint": "A data inventory in the repository names every database and queue of the architecture model with its level and owner, so the model can be checked against it in every answer. This decides whether the level also travels with the data, where the people and tools that handle it see it.",
|
|
98
|
+
"defaultValue": "inventory",
|
|
99
|
+
"options": [
|
|
100
|
+
{
|
|
101
|
+
"value": "inventory",
|
|
102
|
+
"label": "the inventory in the repository alone",
|
|
103
|
+
"description": "data-inventory.json next to the architecture model is the one record, changed through pull requests. Pick it when the stores number in tens rather than hundreds and no data catalogue is in use."
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"value": "catalogue",
|
|
107
|
+
"label": "the inventory and a data catalogue",
|
|
108
|
+
"description": "Each store's database or topic in the catalogue (OpenMetadata, DataHub, Microsoft Purview or Collibra) carries the level as a tag, which a nightly check compares with the inventory. Pick it when analysts and data engineers find data through a catalogue, so they see the level where they look. The check is written for OpenMetadata."
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"value": "tags",
|
|
112
|
+
"label": "the inventory and tags on the cloud resources",
|
|
113
|
+
"description": "Each database instance, bucket, table and stream carries a data-classification tag with its level, required by an AWS Config rule (the built-in Require a tag policy on Azure) and compared with the inventory nightly. Pick it when access policies, cost reports or scanners should act on the level. The checks are written for AWS."
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"key": "DISCOVERY",
|
|
119
|
+
"title": "Discovery",
|
|
120
|
+
"label": "Is sensitive data looked for automatically?",
|
|
121
|
+
"hint": "A level is what the owner believes the store holds; a scanner finds the card numbers in a store declared internal. Scanners sample and miss things, so they back the owners up and never replace them.",
|
|
122
|
+
"defaultValue": "owners",
|
|
123
|
+
"options": [
|
|
124
|
+
{
|
|
125
|
+
"value": "scanner",
|
|
126
|
+
"label": "the cloud provider's scanner",
|
|
127
|
+
"description": "Amazon Macie (S3 only: databases are exported to S3 as Parquet to be scanned), Google Cloud Sensitive Data Protection discovery (BigQuery, Cloud SQL, Cloud Storage) or Microsoft Purview Data Map scans (Azure SQL, storage) look for credentials, financial and personal data, and a daily check compares what they find with the store's level. Pick it when stores hold free text, files or exports that people fill, where undeclared data lands. The check is written for Macie."
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"value": "owners",
|
|
131
|
+
"label": "no scanner, the owners' declaration alone",
|
|
132
|
+
"description": "Each owner states what the store holds and confirms it at every review; nothing looks inside. Pick it when the schemas are typed and narrow (no free text, no uploaded files) or a scanner costs more than the risk; the decision records that nothing looks."
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"key": "FLOW",
|
|
138
|
+
"title": "Highest level outside",
|
|
139
|
+
"label": "Where may data of the highest level go?",
|
|
140
|
+
"hint": "The architecture model shows which elements reach each store and which of them talk to systems outside the organisation; a check reads the model and the inventory together, so a relation that could carry the most sensitive data outside fails the build that adds it. The highest level is restricted with four levels and confidential with three.",
|
|
141
|
+
"defaultValue": "agreement",
|
|
142
|
+
"options": [
|
|
143
|
+
{
|
|
144
|
+
"value": "never",
|
|
145
|
+
"label": "nowhere outside the organisation",
|
|
146
|
+
"description": "No external system receives data of the highest level; a relation to one from such a store, or from an element that reads or writes it, is listed as carrying none of it. Pick it when nothing at that level needs to leave (ledgers, credentials, trade secrets) and the build should prove it."
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"value": "agreement",
|
|
150
|
+
"label": "to external systems under a signed agreement, encrypted",
|
|
151
|
+
"description": "A flow to an external system is allowed when the inventory lists it with the agreement that covers it (a data processing agreement under GDPR Art. 28 when personal data is in it), the date that agreement ends and the encrypted channel it uses. Pick it when processors are part of the service: a payment provider, e-mail delivery, a hosted CRM."
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"key": "REVIEW_MONTHS",
|
|
157
|
+
"label": "Within how many months must each store's level be reviewed again?",
|
|
158
|
+
"defaultValue": "12",
|
|
159
|
+
"type": "number"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"key": "APPROVERS",
|
|
163
|
+
"label": "Which CODEOWNERS team approves changes to the data inventory?",
|
|
164
|
+
"defaultValue": "@your-org/data-governance"
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"nodes": [
|
|
169
|
+
{
|
|
170
|
+
"id": "need",
|
|
171
|
+
"type": "need",
|
|
172
|
+
"label": "Every store's data has a known level",
|
|
173
|
+
"x": 0,
|
|
174
|
+
"y": 0,
|
|
175
|
+
"kind": "brief",
|
|
176
|
+
"source": "Hub concern pack: Data classification",
|
|
177
|
+
"description": "The system keeps data in databases and queues, and not all of it is equally sensitive. Each store needs a level from one scheme the organisation shares, an owner who answers for it, and rules for where data of each level may go, so that the most sensitive data is not copied to a partner or a tool because nobody knew what it was. What counts as personal, special-category, health or cardholder data is a legal reading the organisation makes (its DPO or compliance officer); the pack decides how the answer is recorded and enforced. The snippets assume the architecture model as a Markdown folder under architecture/ (nodes/**/*.md and relations.json), the inventory as data-inventory.json at the repository root, naming each database and queue by its label in the model, the scripts under scripts/ run by Node 20 with js-yaml, and GitHub as the code host."
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"id": "req-classified",
|
|
181
|
+
"type": "requirement",
|
|
182
|
+
"label": "Every store classified",
|
|
183
|
+
"x": 260,
|
|
184
|
+
"y": 0,
|
|
185
|
+
"ears_type": "ubiquitous",
|
|
186
|
+
"action": "name every database and queue of the architecture model that is not external in data-inventory.json by its label, with one level of the decided scheme, an owner, the kinds of data it holds and the date of its last review, and fail the build of a change that adds a store without its entry",
|
|
187
|
+
"rationale": "Classification has to cover every asset and be kept with it (ISO/IEC 27001 Annex A 5.12); categorising per kind of information and system is how FIPS 199 and NIST SP 800-60 do it. Checked in the build that adds a store, the list cannot fall behind the model."
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"id": "req-handling",
|
|
191
|
+
"type": "requirement",
|
|
192
|
+
"label": "Each level has handling rules",
|
|
193
|
+
"x": 260,
|
|
194
|
+
"y": 130,
|
|
195
|
+
"ears_type": "ubiquitous",
|
|
196
|
+
"action": "keep, for every level in data-inventory.json, written handling rules saying who may read data of that level, where it may be copied and whether it may leave the organisation",
|
|
197
|
+
"rationale": "A level is only a word until the procedures that follow from it are written down (ISO/IEC 27001 Annex A 5.13, labelling and handling according to the scheme)."
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"id": "req-approval",
|
|
201
|
+
"type": "requirement",
|
|
202
|
+
"label": "Level changes approved",
|
|
203
|
+
"x": 260,
|
|
204
|
+
"y": 260,
|
|
205
|
+
"ears_type": "event-driven",
|
|
206
|
+
"trigger": "a pull request adds, removes or changes a store's entry in data-inventory.json",
|
|
207
|
+
"action": "require the approval of {{APPROVERS}} before it merges",
|
|
208
|
+
"rationale": "The owner proposes the level and a second party agrees; a level lowered quietly is how restricted data ends up in an internal tool (ISO/IEC 27001 Annex A 5.12: the scheme is owned and kept)."
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"id": "req-review",
|
|
212
|
+
"type": "requirement",
|
|
213
|
+
"label": "Levels reviewed on time",
|
|
214
|
+
"x": 260,
|
|
215
|
+
"y": 390,
|
|
216
|
+
"ears_type": "state-driven",
|
|
217
|
+
"precondition": "a store's entry has not been reviewed for {{REVIEW_MONTHS}} months",
|
|
218
|
+
"action": "fail the nightly classification check, naming the store and its owner, until the owner confirms or changes its level and what it holds",
|
|
219
|
+
"rationale": "Stores gain columns, exports and uses, and their level drifts with them; classification is to be revisited over the data's life (ISO/IEC 27001 Annex A 5.12)."
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"id": "req-flow-never",
|
|
223
|
+
"type": "requirement",
|
|
224
|
+
"label": "Highest level never leaves",
|
|
225
|
+
"x": 260,
|
|
226
|
+
"y": 520,
|
|
227
|
+
"ears_type": "unwanted-behaviour",
|
|
228
|
+
"unwanted_condition": "a relation in the architecture model connects an external element with a store of the highest level, with an element that contains such a store, or with an element that reads or writes one",
|
|
229
|
+
"action": "fail the build of that change unless data-inventory.json lists the flow as carrying none of the store's data, with the reason",
|
|
230
|
+
"rationale": "The model already shows every path to the outside; checking it in the build that draws the relation stops the integration before it is built, and rules for transfers to outside parties are what ISO/IEC 27001 Annex A 5.14 asks for.",
|
|
231
|
+
"hubWhen": {
|
|
232
|
+
"FLOW": [
|
|
233
|
+
"never"
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"id": "req-flow-agreement",
|
|
239
|
+
"type": "requirement",
|
|
240
|
+
"label": "Highest level leaves only under agreement",
|
|
241
|
+
"x": 260,
|
|
242
|
+
"y": 650,
|
|
243
|
+
"ears_type": "unwanted-behaviour",
|
|
244
|
+
"unwanted_condition": "a relation in the architecture model connects an external element with a store of the highest level, with an element that contains such a store, or with an element that reads or writes one",
|
|
245
|
+
"action": "fail the build unless data-inventory.json lists the flow either as carrying none of the store's data, or with the agreement that covers it, an end date still in the future, and the encrypted channel it uses",
|
|
246
|
+
"rationale": "Processing by a processor has to be governed by a contract (GDPR Art. 28(3)), and transfers to outside parties need agreements (ISO/IEC 27001 Annex A 5.14); listing each flow with its agreement keeps the two in one place, and an ended agreement fails the build.",
|
|
247
|
+
"hubWhen": {
|
|
248
|
+
"FLOW": [
|
|
249
|
+
"agreement"
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"id": "req-categories",
|
|
255
|
+
"type": "requirement",
|
|
256
|
+
"label": "Regulated categories set the floor",
|
|
257
|
+
"x": 260,
|
|
258
|
+
"y": 780,
|
|
259
|
+
"ears_type": "ubiquitous",
|
|
260
|
+
"action": "list, for every store, the regulated categories it holds (personal, special-category, health, cardholder, or an empty list), and keep a store with special-category, health or cardholder data at restricted and one with personal data at confidential or above",
|
|
261
|
+
"rationale": "Special categories of personal data carry a stricter regime of their own (GDPR Art. 9), as do cardholder data (PCI DSS) and health data; the stores in scope of each rule then come from one list.",
|
|
262
|
+
"hubWhen": {
|
|
263
|
+
"SCHEME": [
|
|
264
|
+
"regulated"
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"id": "req-catalogue",
|
|
270
|
+
"type": "requirement",
|
|
271
|
+
"label": "Catalogue shows the level",
|
|
272
|
+
"x": 260,
|
|
273
|
+
"y": 910,
|
|
274
|
+
"ears_type": "ubiquitous",
|
|
275
|
+
"action": "carry each store's level as a DataClassification tag on its database or topic in the data catalogue, the same level as in the inventory, with a mismatch reported by the next nightly check",
|
|
276
|
+
"rationale": "People find data through the catalogue, so the level has to be there, and labels follow the scheme wherever the data is shown (ISO/IEC 27001 Annex A 5.13; OpenMetadata classification).",
|
|
277
|
+
"hubWhen": {
|
|
278
|
+
"RECORD": [
|
|
279
|
+
"catalogue"
|
|
280
|
+
]
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"id": "req-tags",
|
|
285
|
+
"type": "requirement",
|
|
286
|
+
"label": "Cloud resources tagged with the level",
|
|
287
|
+
"x": 260,
|
|
288
|
+
"y": 1040,
|
|
289
|
+
"ears_type": "ubiquitous",
|
|
290
|
+
"action": "tag every cloud resource of a store (database instance, bucket, table, queue, stream) with data-classification set to its level, the same level as in the inventory, with a resource missing the tag or carrying another level reported within 1 day",
|
|
291
|
+
"rationale": "Access policies, cost reports and scanners act on tags, so the label has to be on the resource itself (ISO/IEC 27001 Annex A 5.13); AWS Config's required-tags rule finds resources without it.",
|
|
292
|
+
"hubWhen": {
|
|
293
|
+
"RECORD": [
|
|
294
|
+
"tags"
|
|
295
|
+
]
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"id": "req-discovery",
|
|
300
|
+
"type": "requirement",
|
|
301
|
+
"label": "Undeclared sensitive data found",
|
|
302
|
+
"x": 260,
|
|
303
|
+
"y": 1170,
|
|
304
|
+
"ears_type": "event-driven",
|
|
305
|
+
"trigger": "the scanner finds credentials, financial or personal data in a store classified public or internal",
|
|
306
|
+
"action": "report the store, the kind of data and the object to the store's owner within 1 day, and again every day until the store is reclassified or the data removed",
|
|
307
|
+
"rationale": "Owners declare what they believe a store holds; a scanner finds what actually landed there (Amazon Macie, Google Cloud Sensitive Data Protection, Microsoft Purview Data Map), and a store whose content outgrew its level is a store under-protected (ISO/IEC 27001 Annex A 5.12).",
|
|
308
|
+
"hubWhen": {
|
|
309
|
+
"DISCOVERY": [
|
|
310
|
+
"scanner"
|
|
311
|
+
]
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"id": "sc-classified",
|
|
316
|
+
"type": "scenario",
|
|
317
|
+
"label": "New store needs a level",
|
|
318
|
+
"x": 520,
|
|
319
|
+
"y": 0,
|
|
320
|
+
"given": "a change that adds a queue to the architecture model",
|
|
321
|
+
"when": "the build runs",
|
|
322
|
+
"then": "it fails naming the queue until data-inventory.json has its entry with a level, an owner, what it holds and a review date"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"id": "sc-handling",
|
|
326
|
+
"type": "scenario",
|
|
327
|
+
"label": "Level without rules refused",
|
|
328
|
+
"x": 520,
|
|
329
|
+
"y": 130,
|
|
330
|
+
"given": "the inventory with a level whose handling text is empty",
|
|
331
|
+
"when": "the build runs",
|
|
332
|
+
"then": "it fails naming the level"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"id": "sc-approval",
|
|
336
|
+
"type": "scenario",
|
|
337
|
+
"label": "Lowering needs approval",
|
|
338
|
+
"x": 520,
|
|
339
|
+
"y": 260,
|
|
340
|
+
"given": "a pull request that lowers a store from restricted to internal",
|
|
341
|
+
"when": "only the author's team has approved it",
|
|
342
|
+
"then": "it cannot merge until {{APPROVERS}} approves"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"id": "sc-review",
|
|
346
|
+
"type": "scenario",
|
|
347
|
+
"label": "Overdue review reported",
|
|
348
|
+
"x": 520,
|
|
349
|
+
"y": 390,
|
|
350
|
+
"given": "a store last reviewed {{REVIEW_MONTHS}} months and one day ago",
|
|
351
|
+
"when": "the nightly check runs",
|
|
352
|
+
"then": "it fails naming the store and its owner"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"id": "sc-flow-never",
|
|
356
|
+
"type": "scenario",
|
|
357
|
+
"label": "New outside relation fails",
|
|
358
|
+
"x": 520,
|
|
359
|
+
"y": 520,
|
|
360
|
+
"given": "a store at the highest level read by an element of the model",
|
|
361
|
+
"when": "a change adds a relation from that element to an external system",
|
|
362
|
+
"then": "the build fails naming the store, the external system and the relation, until the flow is listed as carrying none of the store's data",
|
|
363
|
+
"hubWhen": {
|
|
364
|
+
"FLOW": [
|
|
365
|
+
"never"
|
|
366
|
+
]
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"id": "sc-flow-agreement",
|
|
371
|
+
"type": "scenario",
|
|
372
|
+
"label": "Flow needs a live agreement",
|
|
373
|
+
"x": 520,
|
|
374
|
+
"y": 650,
|
|
375
|
+
"given": "a store at the highest level whose reader calls an external system",
|
|
376
|
+
"when": "the flow is missing from the inventory, and again when its agreement has ended",
|
|
377
|
+
"then": "the build fails both times, naming the store, the external system and the relation",
|
|
378
|
+
"hubWhen": {
|
|
379
|
+
"FLOW": [
|
|
380
|
+
"agreement"
|
|
381
|
+
]
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"id": "sc-categories",
|
|
386
|
+
"type": "scenario",
|
|
387
|
+
"label": "Category below its floor refused",
|
|
388
|
+
"x": 520,
|
|
389
|
+
"y": 780,
|
|
390
|
+
"given": "a store classified internal",
|
|
391
|
+
"when": "its entry lists cardholder data",
|
|
392
|
+
"then": "the build fails saying the store must be restricted",
|
|
393
|
+
"hubWhen": {
|
|
394
|
+
"SCHEME": [
|
|
395
|
+
"regulated"
|
|
396
|
+
]
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"id": "sc-catalogue",
|
|
401
|
+
"type": "scenario",
|
|
402
|
+
"label": "Catalogue and inventory agree",
|
|
403
|
+
"x": 520,
|
|
404
|
+
"y": 910,
|
|
405
|
+
"given": "a store restricted in the inventory and tagged internal in the catalogue",
|
|
406
|
+
"when": "the nightly check runs",
|
|
407
|
+
"then": "it fails naming the store and both levels",
|
|
408
|
+
"hubWhen": {
|
|
409
|
+
"RECORD": [
|
|
410
|
+
"catalogue"
|
|
411
|
+
]
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"id": "sc-tags",
|
|
416
|
+
"type": "scenario",
|
|
417
|
+
"label": "Untagged resource reported",
|
|
418
|
+
"x": 520,
|
|
419
|
+
"y": 1040,
|
|
420
|
+
"given": "a store's bucket without the data-classification tag, and its database tagged with another level than the inventory's",
|
|
421
|
+
"when": "the nightly checks run",
|
|
422
|
+
"then": "both resources are reported with their store and the check fails",
|
|
423
|
+
"hubWhen": {
|
|
424
|
+
"RECORD": [
|
|
425
|
+
"tags"
|
|
426
|
+
]
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"id": "sc-discovery",
|
|
431
|
+
"type": "scenario",
|
|
432
|
+
"label": "Card numbers in an internal store",
|
|
433
|
+
"x": 520,
|
|
434
|
+
"y": 1170,
|
|
435
|
+
"given": "a store classified internal whose export bucket gets a file with card numbers",
|
|
436
|
+
"when": "the scanner analyses it and the daily check runs",
|
|
437
|
+
"then": "the check fails naming the bucket, the finding type and the object",
|
|
438
|
+
"hubWhen": {
|
|
439
|
+
"DISCOVERY": [
|
|
440
|
+
"scanner"
|
|
441
|
+
]
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"id": "adr-four",
|
|
446
|
+
"type": "adr",
|
|
447
|
+
"label": "Four classification levels",
|
|
448
|
+
"x": 780,
|
|
449
|
+
"y": 0,
|
|
450
|
+
"concern": "data-classification",
|
|
451
|
+
"status": "accepted",
|
|
452
|
+
"date": "",
|
|
453
|
+
"context": "This store keeps data, and the protection it needs depends on what it holds. The forces: a level nobody records is a level everyone guesses, usually too low for a store someone else filled; too many levels are applied inconsistently, too few put card numbers in the same class as the canteen menu; levels go stale as stores gain columns, exports and copies; the most sensitive data leaves through integrations added for good reasons (a CRM, an e-mail service, an analytics tool), one relation at a time; and auditors and regulators ask which stores are in scope of which rule, which needs one list. How data of each level is encrypted is decided in the Encryption pack, what personal data needs (lawful basis, retention, erasure, where it is kept) in the Personal data pack, credentials in the Secrets pack, and who read restricted data is logged as the Audit trail pack decides.",
|
|
454
|
+
"decision": "Every database and queue is classified at one of four levels, by the harm if its data leaked or was changed: public (none: it may be published), internal (limited harm: staff and contractors), confidential (serious harm: named roles), restricted (severe harm, or a regulatory or contractual breach: named people); limited, serious and severe are the FIPS 199 low, moderate and high impact. The most sensitive data a store holds sets its level. The store's owner (the product owner of the team that runs it) assigns the level, and {{APPROVERS}} approve every change to it through CODEOWNERS on data-inventory.json. That file lists the levels lowest first with their handling rules, and names each database and queue of the architecture model by its label with its level, owner, what it holds and the date of its last review, at most {{REVIEW_MONTHS}} months ago. The level is recorded in {{RECORD}}. Discovery: {{DISCOVERY}}. Restricted data goes {{FLOW}}, as the decision on flows says. How each level is encrypted is the Encryption pack's decision, and who read restricted data is logged as the Audit trail pack decides.",
|
|
455
|
+
"consequences": "• The few stores that need it get a stricter regime than confidential, without dragging every confidential store along.\n• Four levels need judgment between confidential and restricted; the handling rules must draw that line with examples, or people will pick by habit.\n• The inventory is one more file to keep in step with the model; the build keeps them together, so a store cannot merge without its level.\n• The levels say what the data is; the controls each level needs (encryption, access, logging) are decided in other packs and have to name the level.",
|
|
456
|
+
"alternatives": "1. Three levels: simpler, but card numbers and health records share a regime with every confidential spreadsheet.\n2. The UK Government Security Classifications (OFFICIAL, SECRET, TOP SECRET): made for government information; almost all business data would be OFFICIAL and the scheme would tell nothing apart.\n3. Levels kept on a wiki page: nothing keeps them in step with the stores.",
|
|
457
|
+
"hubWhen": {
|
|
458
|
+
"SCHEME": [
|
|
459
|
+
"four"
|
|
460
|
+
]
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"id": "adr-three",
|
|
465
|
+
"type": "adr",
|
|
466
|
+
"label": "Three classification levels",
|
|
467
|
+
"x": 780,
|
|
468
|
+
"y": 130,
|
|
469
|
+
"concern": "data-classification",
|
|
470
|
+
"status": "accepted",
|
|
471
|
+
"date": "",
|
|
472
|
+
"context": "This store keeps data, and the protection it needs depends on what it holds. The forces: a level nobody records is a level everyone guesses, usually too low for a store someone else filled; too many levels are applied inconsistently, too few put card numbers in the same class as the canteen menu; levels go stale as stores gain columns, exports and copies; the most sensitive data leaves through integrations added for good reasons (a CRM, an e-mail service, an analytics tool), one relation at a time; and auditors and regulators ask which stores are in scope of which rule, which needs one list. How data of each level is encrypted is decided in the Encryption pack, what personal data needs (lawful basis, retention, erasure, where it is kept) in the Personal data pack, credentials in the Secrets pack, and who read restricted data is logged as the Audit trail pack decides.",
|
|
473
|
+
"decision": "Every database and queue is classified at one of three levels, by the harm if its data leaked or was changed: public (none: it may be published), internal (limited harm: staff and contractors), confidential (serious or severe harm, or a regulatory or contractual breach: named roles); limited corresponds to the FIPS 199 low impact, confidential covers moderate and high. The most sensitive data a store holds sets its level. The store's owner (the product owner of the team that runs it) assigns the level, and {{APPROVERS}} approve every change to it through CODEOWNERS on data-inventory.json. That file lists the levels lowest first with their handling rules, and names each database and queue of the architecture model by its label with its level, owner, what it holds and the date of its last review, at most {{REVIEW_MONTHS}} months ago. The level is recorded in {{RECORD}}. Discovery: {{DISCOVERY}}. Confidential data goes {{FLOW}}, as the decision on flows says. How each level is encrypted is the Encryption pack's decision, and who read confidential data is logged as the Audit trail pack decides.",
|
|
474
|
+
"consequences": "• Fewer judgment calls: three levels are applied more consistently than four.\n• Card numbers, health data and credentials share the confidential regime with every other confidential store, so that regime has to be strict enough for the worst of them, and costs the rest.\n• The flow rule covers all confidential data, so more relations to outside systems have to be listed.\n• The inventory is one more file to keep in step with the model; the build keeps them together.",
|
|
475
|
+
"alternatives": "1. Four levels: a restricted level for the few stores that need more, at the price of one more judgment call.\n2. Two levels (public and internal): too coarse to say which stores need more than staff access.\n3. Levels kept on a wiki page: nothing keeps them in step with the stores.",
|
|
476
|
+
"hubWhen": {
|
|
477
|
+
"SCHEME": [
|
|
478
|
+
"three"
|
|
479
|
+
]
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"id": "adr-regulated",
|
|
484
|
+
"type": "adr",
|
|
485
|
+
"label": "Four levels with regulated categories",
|
|
486
|
+
"x": 780,
|
|
487
|
+
"y": 260,
|
|
488
|
+
"concern": "data-classification",
|
|
489
|
+
"status": "accepted",
|
|
490
|
+
"date": "",
|
|
491
|
+
"context": "This store keeps data, and the protection it needs depends on what it holds. The forces: a level nobody records is a level everyone guesses, usually too low for a store someone else filled; too many levels are applied inconsistently, too few put card numbers in the same class as the canteen menu; levels go stale as stores gain columns, exports and copies; the most sensitive data leaves through integrations added for good reasons (a CRM, an e-mail service, an analytics tool), one relation at a time; and auditors and regulators ask which stores are in scope of which rule, which needs one list. How data of each level is encrypted is decided in the Encryption pack, what personal data needs (lawful basis, retention, erasure, where it is kept) in the Personal data pack, credentials in the Secrets pack, and who read restricted data is logged as the Audit trail pack decides.",
|
|
492
|
+
"decision": "Every database and queue is classified at one of four levels, by the harm if its data leaked or was changed: public (none), internal (limited harm: staff and contractors), confidential (serious harm: named roles), restricted (severe harm, or a regulatory or contractual breach: named people); limited, serious and severe are the FIPS 199 low, moderate and high impact. Each store also lists the regulated categories it holds: personal data, special-category data (GDPR Art. 9: racial or ethnic origin, political opinions, religious or philosophical beliefs, trade union membership, genetic data, biometric data used to identify a person, health, sex life or sexual orientation), health data under other rules, and cardholder data (PCI DSS). Special-category, health and cardholder data make a store restricted; personal data at least confidential. What personal and special-category data need beyond their level is the Personal data pack's decision; the category marks the store as in scope. The store's owner assigns level and categories, and {{APPROVERS}} approve every change through CODEOWNERS on data-inventory.json, which names each database and queue of the architecture model by its label with its level, categories, owner, what it holds and the date of its last review, at most {{REVIEW_MONTHS}} months ago. The level is recorded in {{RECORD}}. Discovery: {{DISCOVERY}}. Restricted data goes {{FLOW}}, as the decision on flows says. Encryption per level is the Encryption pack's decision; who read restricted data is logged as the Audit trail pack decides.",
|
|
493
|
+
"consequences": "• The stores in scope of the GDPR, PCI DSS or health rules come from one list, which is what an auditor asks for first.\n• Two attributes per store instead of one, and the floors make a store with a single card number restricted.\n• Which data falls in which category is a legal reading the DPO or compliance officer gives; the inventory records it and does not decide it.\n• The inventory is one more file to keep in step with the model; the build keeps them together.",
|
|
494
|
+
"alternatives": "1. Four levels without categories: simpler, but the scope of each regulation has to be rebuilt by hand for each audit.\n2. Categories without levels: tells which law applies but not how to handle data no law names (trade secrets, credentials).\n3. The categories kept only in the record of processing: covers personal data, not cardholder or other regulated data.",
|
|
495
|
+
"hubWhen": {
|
|
496
|
+
"SCHEME": [
|
|
497
|
+
"regulated"
|
|
498
|
+
]
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"id": "adr-flow-never",
|
|
503
|
+
"type": "adr",
|
|
504
|
+
"label": "Highest-level data stays inside",
|
|
505
|
+
"x": 780,
|
|
506
|
+
"y": 390,
|
|
507
|
+
"concern": "data-classification",
|
|
508
|
+
"status": "accepted",
|
|
509
|
+
"date": "",
|
|
510
|
+
"context": "This store keeps data, and the protection it needs depends on what it holds. The forces: a level nobody records is a level everyone guesses, usually too low for a store someone else filled; too many levels are applied inconsistently, too few put card numbers in the same class as the canteen menu; levels go stale as stores gain columns, exports and copies; the most sensitive data leaves through integrations added for good reasons (a CRM, an e-mail service, an analytics tool), one relation at a time; and auditors and regulators ask which stores are in scope of which rule, which needs one list. How data of each level is encrypted is decided in the Encryption pack, what personal data needs (lawful basis, retention, erasure, where it is kept) in the Personal data pack, credentials in the Secrets pack, and who read restricted data is logged as the Audit trail pack decides.",
|
|
511
|
+
"decision": "No data of the highest level (restricted with four levels, confidential with three) is sent to a system outside the organisation. A check in CI reads the architecture model and data-inventory.json together. For every store at the highest level it takes the store, the elements that contain it and every element with an interacts relation to it (external ones aside), and looks at each interacts relation, in either direction, between one of them and an element marked external: true. Relations count both ways, because a call from outside brings data back. The build fails for each such relation unless the inventory lists the flow (store and external element by their labels) with \"data\": \"none\" and the reason. An integration that would carry such data needs the data reclassified first, or this decision superseded. Copies to our own systems (a reporting database, a queue) are stores of their own and get the level of what they hold.",
|
|
512
|
+
"consequences": "• The build shows each path to the outside as soon as the relation is drawn, before the integration is built.\n• The check over-approximates: an element that reads a restricted store and calls a mail service is flagged even when the call carries none of that data, and someone has to say so in the inventory, where a reviewer reads it.\n• It is as good as the model: a relation that is not drawn is not checked, so the model has to show every integration.\n• Processors that would need the data (payment providers, CRMs, support tools) are ruled out at this level.",
|
|
513
|
+
"alternatives": "1. External systems under a signed agreement: realistic when processors are part of the service, and more to keep track of.\n2. A data loss prevention tool on outbound traffic: catches what the model misses, but only after the integration is built and only for traffic it can read.\n3. A review by hand at design time: nothing keeps the next relation honest.",
|
|
514
|
+
"hubWhen": {
|
|
515
|
+
"FLOW": [
|
|
516
|
+
"never"
|
|
517
|
+
]
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"id": "adr-flow-agreement",
|
|
522
|
+
"type": "adr",
|
|
523
|
+
"label": "Highest-level data leaves only under agreement",
|
|
524
|
+
"x": 780,
|
|
525
|
+
"y": 520,
|
|
526
|
+
"concern": "data-classification",
|
|
527
|
+
"status": "accepted",
|
|
528
|
+
"date": "",
|
|
529
|
+
"context": "This store keeps data, and the protection it needs depends on what it holds. The forces: a level nobody records is a level everyone guesses, usually too low for a store someone else filled; too many levels are applied inconsistently, too few put card numbers in the same class as the canteen menu; levels go stale as stores gain columns, exports and copies; the most sensitive data leaves through integrations added for good reasons (a CRM, an e-mail service, an analytics tool), one relation at a time; and auditors and regulators ask which stores are in scope of which rule, which needs one list. How data of each level is encrypted is decided in the Encryption pack, what personal data needs (lawful basis, retention, erasure, where it is kept) in the Personal data pack, credentials in the Secrets pack, and who read restricted data is logged as the Audit trail pack decides.",
|
|
530
|
+
"decision": "Data of the highest level (restricted with four levels, confidential with three) goes to a system outside the organisation only when data-inventory.json lists the flow: the store and the external element by their labels in the model, the data it carries, the agreement that covers it (a data processing agreement under GDPR Art. 28 when personal data is in it, a data-sharing or confidentiality agreement otherwise), the date that agreement ends, and the encrypted channel it uses, named as the Encryption pack decides. A check in CI reads the architecture model and the inventory together. For every store at the highest level it takes the store, the elements that contain it and every element with an interacts relation to it (external ones aside), and looks at each interacts relation, in either direction, between one of them and an element marked external: true. Relations count both ways, because a call from outside brings data back. The build fails for each such relation whose flow is not listed, or whose agreement has ended; a flow that carries none of the store's data is listed with \"data\": \"none\" and the reason. The owner of each flow renews its agreement before the end date.",
|
|
531
|
+
"consequences": "• Every outside party holding the most sensitive data appears in one list with its agreement: the list a DPO or an auditor asks for.\n• An agreement that ends turns the build red on that day, so renewals have to be tracked ahead of it.\n• The check over-approximates: an element that reads a restricted store and calls a mail service is flagged even when the call carries none of that data, and someone has to say so in the inventory.\n• It is as good as the model: a relation that is not drawn is not checked.\n• The check reads the agreement's reference and end date, not its content; whether it covers the data is the DPO's reading.",
|
|
532
|
+
"alternatives": "1. Nowhere outside the organisation: the simplest to prove, and it rules out processors.\n2. A vendor register in a GRC tool without a link to the model: the register and the system drift apart.\n3. A data loss prevention tool on outbound traffic: catches what the model misses, but only after the integration is built.",
|
|
533
|
+
"hubWhen": {
|
|
534
|
+
"FLOW": [
|
|
535
|
+
"agreement"
|
|
536
|
+
]
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"id": "ff-inventory",
|
|
541
|
+
"type": "fitness-fn",
|
|
542
|
+
"label": "Every store in the inventory",
|
|
543
|
+
"x": 1040,
|
|
544
|
+
"y": 0,
|
|
545
|
+
"characteristic": "security",
|
|
546
|
+
"scope": "atomic",
|
|
547
|
+
"cadence": "triggered",
|
|
548
|
+
"trigger": "pull-request",
|
|
549
|
+
"invocation": "automated",
|
|
550
|
+
"description": "A Node script in CI reads the front matter of every node file under architecture/nodes, takes the databases and queues not marked external, and checks each against data-inventory.json by its label; it also fails on an entry whose store is gone from the model and on a level whose handling rules are empty.\n\nThreshold: 0 databases or queues of the model (not external) without an entry with a level of the scheme, an owner, what it holds and a review date; 0 entries naming no store of the model; 0 levels without handling rules\n\nTool: Node 20 with js-yaml, a step of the pull-request workflow\n\n```js\n// scripts/check-data-inventory.mjs, run from the repository root in CI: node scripts/check-data-inventory.mjs\nimport { readFileSync, readdirSync } from 'node:fs'\nimport { join } from 'node:path'\nimport yaml from 'js-yaml'\n\nconst [dir = 'architecture', file = 'data-inventory.json'] = process.argv.slice(2)\nconst inventory = JSON.parse(readFileSync(file, 'utf8'))\nconst levels = inventory.levels.map((l) => l.name)\nconst problems = inventory.levels.filter((l) => !l.handling?.trim()).map((l) => `level ${l.name} has no handling rules`)\nconst stores = readdirSync(join(dir, 'nodes'), { recursive: true }).filter((f) => f.endsWith('.md'))\n .map((f) => yaml.load(readFileSync(join(dir, 'nodes', f), 'utf8').split(/^---$/m)[1]))\n .filter((n) => (n.type === 'database' || n.type === 'queue') && n.external !== true)\nfor (const store of stores) {\n const entry = inventory.stores.find((e) => e.element === store.label)\n if (!entry) problems.push(`${store.label}: no entry in ${file}`)\n else if (!levels.includes(entry.level) || !entry.owner || !entry.holds?.length || !/^\\d{4}-\\d{2}-\\d{2}$/.test(entry.reviewed ?? ''))\n problems.push(`${store.label}: needs a level (${levels.join(', ')}), an owner, what it holds and a reviewed date`)\n}\nfor (const entry of inventory.stores)\n if (!stores.some((s) => s.label === entry.element)) problems.push(`${entry.element}: in ${file} but no database or queue of the model`)\nif (problems.length) { console.error(problems.join('\\n')); process.exit(1) }\n```"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"id": "ff-review",
|
|
554
|
+
"type": "fitness-fn",
|
|
555
|
+
"label": "Levels reviewed in time",
|
|
556
|
+
"x": 1040,
|
|
557
|
+
"y": 130,
|
|
558
|
+
"characteristic": "security",
|
|
559
|
+
"scope": "atomic",
|
|
560
|
+
"cadence": "temporal",
|
|
561
|
+
"every": "365d",
|
|
562
|
+
"invocation": "manual",
|
|
563
|
+
"description": "A nightly job compares each entry's reviewed date with today minus {{REVIEW_MONTHS}} months and fails, listing each overdue store with its owner, so the owner confirms or changes the level and what the store holds and updates the date in a pull request.\n\nThreshold: 0 inventory entries whose review date is more than {{REVIEW_MONTHS}} months old\n\nTool: bash with jq and GNU date in a scheduled GitHub Actions job\n\n```bash\n#!/usr/bin/env bash\n# nightly: every store's classification reviewed within {{REVIEW_MONTHS}} months\nset -euo pipefail\ncutoff=$(date -u -d \"-{{REVIEW_MONTHS}} months\" +%F) # GNU date, as on ubuntu-latest runners\noverdue=$(jq -r --arg cutoff \"$cutoff\" \\\n '.stores[] | select(.reviewed < $cutoff) | \"\\(.element): owner \\(.owner), last reviewed \\(.reviewed)\"' data-inventory.json)\n[ -z \"$overdue\" ] || { echo \"classification reviews overdue:\"; echo \"$overdue\"; exit 1; }\n```"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"id": "ff-approval",
|
|
567
|
+
"type": "fitness-fn",
|
|
568
|
+
"label": "Inventory owned by the approvers",
|
|
569
|
+
"x": 1040,
|
|
570
|
+
"y": 260,
|
|
571
|
+
"characteristic": "security",
|
|
572
|
+
"scope": "atomic",
|
|
573
|
+
"cadence": "triggered",
|
|
574
|
+
"trigger": "pull-request",
|
|
575
|
+
"invocation": "automated",
|
|
576
|
+
"description": "A job reads CODEOWNERS for the inventory's line, asks GitHub whether CODEOWNERS has errors (an unknown team makes the line silently void), and checks that the rules on main include a pull_request rule with require_code_owner_review. The rest of the ruleset is the Code review and branching pack's.\n\nThreshold: CODEOWNERS gives /data-inventory.json to {{APPROVERS}}, has 0 errors, and a ruleset on main requires a code owner's review\n\nTool: GitHub CLI (gh api: codeowners/errors and rules/branches/main)\n\n```bash\n#!/usr/bin/env bash\n# CI on main and nightly: changes to the inventory need {{APPROVERS}}\nset -euo pipefail\nrepo=$(gh repo view --json nameWithOwner -q .nameWithOwner)\ngrep -Eq '^/data-inventory\\.json[[:space:]]+.*{{APPROVERS}}' .github/CODEOWNERS \\\n || { echo \"CODEOWNERS does not give /data-inventory.json to {{APPROVERS}}\"; exit 1; }\n[ \"$(gh api \"repos/$repo/codeowners/errors\" -q '.errors | length')\" = 0 ] \\\n || { echo \"CODEOWNERS has errors: gh api repos/$repo/codeowners/errors\"; exit 1; }\n[ \"$(gh api \"repos/$repo/rules/branches/main\" -q '[.[] | select(.type == \"pull_request\") | .parameters.require_code_owner_review] | any')\" = true ] \\\n || { echo \"no ruleset on main requires a code owner's review\"; exit 1; }\n```"
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"id": "ff-flow-never",
|
|
580
|
+
"type": "fitness-fn",
|
|
581
|
+
"label": "No path from the highest level outside",
|
|
582
|
+
"x": 1040,
|
|
583
|
+
"y": 390,
|
|
584
|
+
"characteristic": "security",
|
|
585
|
+
"scope": "atomic",
|
|
586
|
+
"cadence": "triggered",
|
|
587
|
+
"trigger": "pull-request",
|
|
588
|
+
"invocation": "automated",
|
|
589
|
+
"description": "A Node script in the pull-request build reads architecture/nodes (front matter: id, type, label, external; a node's children are in its folder), architecture/relations.json and data-inventory.json. For every store at the highest level it takes the store, the elements that contain it and every element with an interacts relation to it (external ones aside), and looks at each interacts relation, in either direction, between one of them and an element marked external: true. Relations count both ways, because a call from outside brings data back. Each such relation fails the build unless the inventory's flows list it with \"data\": \"none\", and the message names the store, the external element and the relation.\n\nThreshold: 0 interacts relations between an external element and a store of the highest level, an element containing it, or an element reading or writing it, unless listed in the inventory with \"data\": \"none\"\n\nTool: Node 20 with js-yaml, a step of the pull-request workflow (beside radical check, if the model is checked there too)\n\n```js\n// scripts/check-data-flows.mjs, run from the repository root in CI: node scripts/check-data-flows.mjs\nimport { readFileSync, readdirSync } from 'node:fs'\nimport { dirname, join } from 'node:path'\nimport yaml from 'js-yaml'\nconst read = (f) => readFileSync(f, 'utf8')\nconst inventory = JSON.parse(read('data-inventory.json'))\nconst nodes = readdirSync('architecture/nodes', { recursive: true }).filter((f) => f.endsWith('.md')).map((f) => ({\n ...yaml.load(read(join('architecture/nodes', f)).split(/^---$/m)[1]), folder: f.endsWith('_index.md') ? dirname(f) : f.slice(0, -3) }))\nconst byId = new Map(nodes.map((n) => [n.id, n]))\nconst parentOf = (n) => nodes.find((p) => p.folder === dirname(n.folder)) // a node's children live in its folder\nconst links = JSON.parse(read('architecture/relations.json')).filter((r) => r.relationType === 'interacts')\n .flatMap((r) => [[r.sourceId, r.targetId, r], [r.targetId, r.sourceId, r]]) // both ways: a call brings data back too\nconst top = inventory.levels.at(-1).name // levels are listed lowest first\nconst allowed = (store, to) => (inventory.flows ?? []).some((f) => f.store === store && f.to === to && f.data === 'none')\nfor (const entry of inventory.stores.filter((e) => e.level === top)) {\n const store = nodes.find((n) => n.label === entry.element && ['database', 'queue'].includes(n.type))\n const near = new Set() // the store, what holds it, and what reads or writes it\n for (let n = store; n; n = parentOf(n)) near.add(n.id)\n for (const [a, b] of links) if (a === store?.id && !byId.get(b)?.external) near.add(b)\n for (const [a, b, r] of links) if (near.has(a) && byId.get(b)?.external && !allowed(entry.element, byId.get(b).label)) {\n console.error(`${entry.element} (${top}) can reach ${byId.get(b).label} through \"${byId.get(r.sourceId).label} → ${byId.get(r.targetId).label}\" with no allowed flow in data-inventory.json`)\n process.exitCode = 1\n }\n}\n```",
|
|
590
|
+
"hubWhen": {
|
|
591
|
+
"FLOW": [
|
|
592
|
+
"never"
|
|
593
|
+
]
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"id": "ff-flow-agreement",
|
|
598
|
+
"type": "fitness-fn",
|
|
599
|
+
"label": "Every path outside under a live agreement",
|
|
600
|
+
"x": 1040,
|
|
601
|
+
"y": 520,
|
|
602
|
+
"characteristic": "security",
|
|
603
|
+
"scope": "atomic",
|
|
604
|
+
"cadence": "triggered",
|
|
605
|
+
"trigger": "pull-request",
|
|
606
|
+
"invocation": "automated",
|
|
607
|
+
"description": "A Node script in the pull-request build, and nightly so that an agreement ending turns it red, reads architecture/nodes (front matter: id, type, label, external; a node's children are in its folder), architecture/relations.json and data-inventory.json. For every store at the highest level it takes the store, the elements that contain it and every element with an interacts relation to it (external ones aside), and looks at each interacts relation, in either direction, between one of them and an element marked external: true. Relations count both ways, because a call from outside brings data back. Each such relation fails unless the inventory's flows list it with \"data\": \"none\", or with an agreement, an until date in the future and a channel; the message names the store, the external element and the relation.\n\nThreshold: 0 interacts relations between an external element and a store of the highest level, an element containing it, or an element reading or writing it, without a listed flow that carries no data or names an agreement, an end date after today and a channel\n\nTool: Node 20 with js-yaml, a step of the pull-request workflow and of a nightly job\n\n```js\n// scripts/check-data-flows.mjs, run from the repository root in CI: node scripts/check-data-flows.mjs\nimport { readFileSync, readdirSync } from 'node:fs'\nimport { dirname, join } from 'node:path'\nimport yaml from 'js-yaml'\nconst read = (f) => readFileSync(f, 'utf8')\nconst inventory = JSON.parse(read('data-inventory.json'))\nconst nodes = readdirSync('architecture/nodes', { recursive: true }).filter((f) => f.endsWith('.md')).map((f) => ({\n ...yaml.load(read(join('architecture/nodes', f)).split(/^---$/m)[1]), folder: f.endsWith('_index.md') ? dirname(f) : f.slice(0, -3) }))\nconst byId = new Map(nodes.map((n) => [n.id, n]))\nconst parentOf = (n) => nodes.find((p) => p.folder === dirname(n.folder)) // a node's children live in its folder\nconst links = JSON.parse(read('architecture/relations.json')).filter((r) => r.relationType === 'interacts')\n .flatMap((r) => [[r.sourceId, r.targetId, r], [r.targetId, r.sourceId, r]]) // both ways: a call brings data back too\nconst top = inventory.levels.at(-1).name // levels are listed lowest first\nconst allowed = (store, to) => (inventory.flows ?? []).some((f) => f.store === store && f.to === to &&\n (f.data === 'none' || (f.agreement && f.channel && Date.parse(f.until) > Date.now())))\nfor (const entry of inventory.stores.filter((e) => e.level === top)) {\n const store = nodes.find((n) => n.label === entry.element && ['database', 'queue'].includes(n.type))\n const near = new Set() // the store, what holds it, and what reads or writes it\n for (let n = store; n; n = parentOf(n)) near.add(n.id)\n for (const [a, b] of links) if (a === store?.id && !byId.get(b)?.external) near.add(b)\n for (const [a, b, r] of links) if (near.has(a) && byId.get(b)?.external && !allowed(entry.element, byId.get(b).label)) {\n console.error(`${entry.element} (${top}) can reach ${byId.get(b).label} through \"${byId.get(r.sourceId).label} → ${byId.get(r.targetId).label}\" with no allowed flow in data-inventory.json`)\n process.exitCode = 1\n }\n}\n```",
|
|
608
|
+
"hubWhen": {
|
|
609
|
+
"FLOW": [
|
|
610
|
+
"agreement"
|
|
611
|
+
]
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"id": "ff-categories",
|
|
616
|
+
"type": "fitness-fn",
|
|
617
|
+
"label": "Categories at or above their floor",
|
|
618
|
+
"x": 1040,
|
|
619
|
+
"y": 650,
|
|
620
|
+
"characteristic": "security",
|
|
621
|
+
"scope": "atomic",
|
|
622
|
+
"cadence": "triggered",
|
|
623
|
+
"trigger": "pull-request",
|
|
624
|
+
"invocation": "automated",
|
|
625
|
+
"description": "A Node script in CI reads data-inventory.json and fails on an entry with no categories list, a category outside the four, or a level below the lowest its categories allow.\n\nThreshold: 0 entries without a categories list; 0 unknown categories; 0 stores below the floor of a category they hold (special-category, health, cardholder: restricted; personal: confidential)\n\nTool: Node 20, a step of the pull-request workflow\n\n```js\n// scripts/check-data-categories.mjs: the lowest level each regulated category allows\nimport { readFileSync } from 'node:fs'\n\nconst inventory = JSON.parse(readFileSync('data-inventory.json', 'utf8'))\nconst FLOOR = { personal: 'confidential', 'special-category': 'restricted', health: 'restricted', cardholder: 'restricted' }\nconst rank = (level) => inventory.levels.findIndex((l) => l.name === level)\nconst problems = inventory.stores.flatMap((s) => !Array.isArray(s.categories)\n ? [`${s.element}: no categories (an empty list when it holds none of ${Object.keys(FLOOR).join(', ')})`]\n : s.categories.map((c) => !(c in FLOOR) ? `${s.element}: unknown category ${c}`\n : rank(s.level) < rank(FLOOR[c]) ? `${s.element}: holds ${c} data, so it is at least ${FLOOR[c]}, not ${s.level}` : '').filter(Boolean))\nif (problems.length) { console.error(problems.join('\\n')); process.exit(1) }\n```",
|
|
626
|
+
"hubWhen": {
|
|
627
|
+
"SCHEME": [
|
|
628
|
+
"regulated"
|
|
629
|
+
]
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"id": "ff-catalogue",
|
|
634
|
+
"type": "fitness-fn",
|
|
635
|
+
"label": "Catalogue level equals the inventory",
|
|
636
|
+
"x": 1040,
|
|
637
|
+
"y": 780,
|
|
638
|
+
"characteristic": "security",
|
|
639
|
+
"scope": "atomic",
|
|
640
|
+
"cadence": "triggered",
|
|
641
|
+
"trigger": "nightly",
|
|
642
|
+
"invocation": "automated",
|
|
643
|
+
"description": "A nightly job reads each store's catalogue entity and fully qualified name from the inventory (catalogue.entity is databases or topics), fetches it from the OpenMetadata API with its tags, and compares the tags of the DataClassification classification (one tag per level, named as the level) with the inventory. With DataHub, Microsoft Purview or Collibra, the same comparison runs against their APIs.\n\nThreshold: 0 stores whose database or topic in OpenMetadata lacks the DataClassification tag of the inventory's level or carries another one\n\nTool: bash with curl and jq against the OpenMetadata REST API (GET /api/v1/databases/name/{fqn} and /api/v1/topics/name/{fqn} with fields=tags)\n\n```bash\n#!/usr/bin/env bash\n# nightly: the DataClassification tag in OpenMetadata equals the inventory's level ($OM_URL, $OM_TOKEN: a bot's token)\nset -euo pipefail\nfail=0\nwhile IFS=$'\\t' read -r element level entity fqn; do\n tags=$(curl -fsS -H \"Authorization: Bearer $OM_TOKEN\" \"$OM_URL/api/v1/$entity/name/$fqn?fields=tags\" \\\n | jq -r '[.tags[].tagFQN | select(startswith(\"DataClassification.\"))] | join(\",\")')\n [ \"$tags\" = \"DataClassification.$level\" ] \\\n || { echo \"$element: the catalogue has '${tags:-no level}', the inventory $level\"; fail=1; }\ndone < <(jq -r '.stores[] | [.element, .level, .catalogue.entity, .catalogue.fqn] | @tsv' data-inventory.json)\nexit $fail\n```",
|
|
644
|
+
"hubWhen": {
|
|
645
|
+
"RECORD": [
|
|
646
|
+
"catalogue"
|
|
647
|
+
]
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"id": "ff-tags-required",
|
|
652
|
+
"type": "fitness-fn",
|
|
653
|
+
"label": "Store resources carry the tag",
|
|
654
|
+
"x": 1040,
|
|
655
|
+
"y": 910,
|
|
656
|
+
"characteristic": "security",
|
|
657
|
+
"scope": "atomic",
|
|
658
|
+
"cadence": "continual",
|
|
659
|
+
"invocation": "automated",
|
|
660
|
+
"description": "An AWS Config managed rule (REQUIRED_TAGS) evaluates every RDS instance, DynamoDB table, S3 bucket and Redshift cluster for a data-classification tag when it changes, and a nightly job fails while any is non-compliant. The rule reports and does not block creation. Queues and streams (SQS, Kinesis, MSK) are outside the rule's resource types and are covered by the nightly comparison with the inventory. On Azure the built-in Require a tag on resources policy does this job.\n\nThreshold: 0 NON_COMPLIANT resources for the data-classification-tag Config rule (RDS instances, DynamoDB tables, S3 buckets, Redshift clusters)\n\nTool: Terraform (aws_config_config_rule) and the AWS CLI (configservice get-compliance-details-by-config-rule)\n\n```hcl\n# infra/data-classification.tf: the store resources AWS Config can evaluate must carry the tag\nresource \"aws_config_config_rule\" \"data_classification_tag\" {\n name = \"data-classification-tag\"\n source {\n owner = \"AWS\"\n source_identifier = \"REQUIRED_TAGS\"\n }\n input_parameters = jsonencode({ tag1Key = \"data-classification\" }) # its value is compared with the inventory nightly\n scope {\n compliance_resource_types = [\"AWS::RDS::DBInstance\", \"AWS::DynamoDB::Table\", \"AWS::S3::Bucket\", \"AWS::Redshift::Cluster\"]\n }\n depends_on = [aws_config_configuration_recorder.main]\n}\n# nightly in CI, failing while any of them lacks the tag:\n# missing=$(aws configservice get-compliance-details-by-config-rule --config-rule-name data-classification-tag \\\n# --compliance-types NON_COMPLIANT --output text \\\n# --query \"EvaluationResults[].EvaluationResultIdentifier.EvaluationResultQualifier.[ResourceType, ResourceId]\")\n# [ -z \"$missing\" ] || { echo \"resources without a data-classification tag:\"; echo \"$missing\"; exit 1; }\n```",
|
|
661
|
+
"hubWhen": {
|
|
662
|
+
"RECORD": [
|
|
663
|
+
"tags"
|
|
664
|
+
]
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"id": "ff-tags-match",
|
|
669
|
+
"type": "fitness-fn",
|
|
670
|
+
"label": "Tags equal the inventory",
|
|
671
|
+
"x": 1040,
|
|
672
|
+
"y": 1040,
|
|
673
|
+
"characteristic": "security",
|
|
674
|
+
"scope": "atomic",
|
|
675
|
+
"cadence": "triggered",
|
|
676
|
+
"trigger": "nightly",
|
|
677
|
+
"invocation": "automated",
|
|
678
|
+
"description": "A nightly job takes every resource ARN the inventory lists for a store (resources: database instances, buckets, tables, queues, streams) and reads its tags with the Resource Groups Tagging API; a resource that has never been tagged is not returned at all, so it reports as None. The API is regional: the job runs once per region the stores live in.\n\nThreshold: 0 resources listed in the inventory whose data-classification tag is missing or differs from the store's level\n\nTool: bash with jq and the AWS CLI (resourcegroupstaggingapi get-resources --resource-arn-list)\n\n```bash\n#!/usr/bin/env bash\n# nightly, per region: every resource the inventory lists carries data-classification = its level\nset -euo pipefail\nfail=0\nwhile IFS=$'\\t' read -r element level arn; do\n got=$(aws resourcegroupstaggingapi get-resources --resource-arn-list \"$arn\" --output text \\\n --query \"ResourceTagMappingList[0].Tags[?Key=='data-classification'].Value | [0]\")\n [ \"$got\" = \"$level\" ] || { echo \"$element: $arn is tagged '$got', the inventory says $level\"; fail=1; }\ndone < <(jq -r '.stores[] | .element as $e | .level as $l | .resources[]? | [$e, $l, .] | @tsv' data-inventory.json)\nexit $fail\n```",
|
|
679
|
+
"hubWhen": {
|
|
680
|
+
"RECORD": [
|
|
681
|
+
"tags"
|
|
682
|
+
]
|
|
683
|
+
}
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"id": "ff-discovery",
|
|
687
|
+
"type": "fitness-fn",
|
|
688
|
+
"label": "No sensitive data in low-level stores",
|
|
689
|
+
"x": 1040,
|
|
690
|
+
"y": 1170,
|
|
691
|
+
"characteristic": "security",
|
|
692
|
+
"scope": "holistic",
|
|
693
|
+
"cadence": "triggered",
|
|
694
|
+
"trigger": "nightly",
|
|
695
|
+
"invocation": "automated",
|
|
696
|
+
"description": "Macie's automated sensitive data discovery runs over the S3 buckets; database contents reach it as RDS or Aurora snapshot exports (Parquet) and DynamoDB table exports in buckets the inventory lists under the store's resources. A daily job asks Macie for sensitive-data findings (category CLASSIFICATION) of the last day in the buckets of stores classified public or internal, prints bucket, finding type and object, and fails, so the owner is told the same day. On Google Cloud the job reads Sensitive Data Protection data profiles instead, on Azure the classifications of Purview Data Map scans.\n\nThreshold: 0 Macie sensitive-data findings created in the last 24 hours in an S3 bucket of a store classified public or internal\n\nTool: bash with jq and the AWS CLI (macie2 list-findings and get-findings)\n\n```bash\n#!/usr/bin/env bash\n# daily: sensitive-data findings of the last 24 hours in buckets of stores classified public or internal\nset -euo pipefail\nbuckets=$(jq -c '[.stores[] | select(.level == \"public\" or .level == \"internal\") | .resources[]?\n | select(startswith(\"arn:aws:s3:::\")) | ltrimstr(\"arn:aws:s3:::\")] | .[:50]' data-inventory.json)\n[ \"$buckets\" = \"[]\" ] && exit 0\nsince=$(( ($(date +%s) - 86400) * 1000 )) # Unix time in milliseconds, as the Macie API takes it\ncriteria=\"{\\\"criterion\\\":{\\\"category\\\":{\\\"eq\\\":[\\\"CLASSIFICATION\\\"]},\\\"createdAt\\\":{\\\"gte\\\":$since},\\\"resourcesAffected.s3Bucket.name\\\":{\\\"eq\\\":$buckets}}}\"\nids=$(aws macie2 list-findings --finding-criteria \"$criteria\" --query 'findingIds[:50]' --output json)\n[ \"$ids\" = \"[]\" ] && exit 0\naws macie2 get-findings --finding-ids $(jq -r '.[]' <<< \"$ids\") --output text \\\n --query 'findings[].[resourcesAffected.s3Bucket.name, type, resourcesAffected.s3Object.key]'\necho \"sensitive data in stores classified public or internal: tell each owner, then reclassify the store or remove the data\"\nexit 1\n```",
|
|
697
|
+
"hubWhen": {
|
|
698
|
+
"DISCOVERY": [
|
|
699
|
+
"scanner"
|
|
700
|
+
]
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
],
|
|
704
|
+
"relations": [
|
|
705
|
+
{
|
|
706
|
+
"id": "req-classified--derives--need",
|
|
707
|
+
"sourceId": "req-classified",
|
|
708
|
+
"targetId": "need",
|
|
709
|
+
"relationType": "derives"
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"id": "req-handling--derives--need",
|
|
713
|
+
"sourceId": "req-handling",
|
|
714
|
+
"targetId": "need",
|
|
715
|
+
"relationType": "derives"
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"id": "req-approval--derives--need",
|
|
719
|
+
"sourceId": "req-approval",
|
|
720
|
+
"targetId": "need",
|
|
721
|
+
"relationType": "derives"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"id": "req-review--derives--need",
|
|
725
|
+
"sourceId": "req-review",
|
|
726
|
+
"targetId": "need",
|
|
727
|
+
"relationType": "derives"
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"id": "req-flow-never--derives--need",
|
|
731
|
+
"sourceId": "req-flow-never",
|
|
732
|
+
"targetId": "need",
|
|
733
|
+
"relationType": "derives"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"id": "req-flow-agreement--derives--need",
|
|
737
|
+
"sourceId": "req-flow-agreement",
|
|
738
|
+
"targetId": "need",
|
|
739
|
+
"relationType": "derives"
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"id": "req-categories--derives--need",
|
|
743
|
+
"sourceId": "req-categories",
|
|
744
|
+
"targetId": "need",
|
|
745
|
+
"relationType": "derives"
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"id": "req-catalogue--derives--need",
|
|
749
|
+
"sourceId": "req-catalogue",
|
|
750
|
+
"targetId": "need",
|
|
751
|
+
"relationType": "derives"
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"id": "req-tags--derives--need",
|
|
755
|
+
"sourceId": "req-tags",
|
|
756
|
+
"targetId": "need",
|
|
757
|
+
"relationType": "derives"
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
"id": "req-discovery--derives--need",
|
|
761
|
+
"sourceId": "req-discovery",
|
|
762
|
+
"targetId": "need",
|
|
763
|
+
"relationType": "derives"
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"id": "sc-classified--verifies--req-classified",
|
|
767
|
+
"sourceId": "sc-classified",
|
|
768
|
+
"targetId": "req-classified",
|
|
769
|
+
"relationType": "verifies"
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"id": "sc-handling--verifies--req-handling",
|
|
773
|
+
"sourceId": "sc-handling",
|
|
774
|
+
"targetId": "req-handling",
|
|
775
|
+
"relationType": "verifies"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"id": "sc-approval--verifies--req-approval",
|
|
779
|
+
"sourceId": "sc-approval",
|
|
780
|
+
"targetId": "req-approval",
|
|
781
|
+
"relationType": "verifies"
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"id": "sc-review--verifies--req-review",
|
|
785
|
+
"sourceId": "sc-review",
|
|
786
|
+
"targetId": "req-review",
|
|
787
|
+
"relationType": "verifies"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"id": "sc-flow-never--verifies--req-flow-never",
|
|
791
|
+
"sourceId": "sc-flow-never",
|
|
792
|
+
"targetId": "req-flow-never",
|
|
793
|
+
"relationType": "verifies"
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
"id": "sc-flow-agreement--verifies--req-flow-agreement",
|
|
797
|
+
"sourceId": "sc-flow-agreement",
|
|
798
|
+
"targetId": "req-flow-agreement",
|
|
799
|
+
"relationType": "verifies"
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
"id": "sc-categories--verifies--req-categories",
|
|
803
|
+
"sourceId": "sc-categories",
|
|
804
|
+
"targetId": "req-categories",
|
|
805
|
+
"relationType": "verifies"
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
"id": "sc-catalogue--verifies--req-catalogue",
|
|
809
|
+
"sourceId": "sc-catalogue",
|
|
810
|
+
"targetId": "req-catalogue",
|
|
811
|
+
"relationType": "verifies"
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"id": "sc-tags--verifies--req-tags",
|
|
815
|
+
"sourceId": "sc-tags",
|
|
816
|
+
"targetId": "req-tags",
|
|
817
|
+
"relationType": "verifies"
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"id": "sc-discovery--verifies--req-discovery",
|
|
821
|
+
"sourceId": "sc-discovery",
|
|
822
|
+
"targetId": "req-discovery",
|
|
823
|
+
"relationType": "verifies"
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
"id": "ff-inventory--implements--adr-four",
|
|
827
|
+
"sourceId": "ff-inventory",
|
|
828
|
+
"targetId": "adr-four",
|
|
829
|
+
"relationType": "implements"
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
"id": "ff-inventory--implements--adr-three",
|
|
833
|
+
"sourceId": "ff-inventory",
|
|
834
|
+
"targetId": "adr-three",
|
|
835
|
+
"relationType": "implements"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"id": "ff-inventory--implements--adr-regulated",
|
|
839
|
+
"sourceId": "ff-inventory",
|
|
840
|
+
"targetId": "adr-regulated",
|
|
841
|
+
"relationType": "implements"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"id": "ff-review--implements--adr-four",
|
|
845
|
+
"sourceId": "ff-review",
|
|
846
|
+
"targetId": "adr-four",
|
|
847
|
+
"relationType": "implements"
|
|
848
|
+
},
|
|
849
|
+
{
|
|
850
|
+
"id": "ff-review--implements--adr-three",
|
|
851
|
+
"sourceId": "ff-review",
|
|
852
|
+
"targetId": "adr-three",
|
|
853
|
+
"relationType": "implements"
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"id": "ff-review--implements--adr-regulated",
|
|
857
|
+
"sourceId": "ff-review",
|
|
858
|
+
"targetId": "adr-regulated",
|
|
859
|
+
"relationType": "implements"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"id": "ff-approval--implements--adr-four",
|
|
863
|
+
"sourceId": "ff-approval",
|
|
864
|
+
"targetId": "adr-four",
|
|
865
|
+
"relationType": "implements"
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"id": "ff-approval--implements--adr-three",
|
|
869
|
+
"sourceId": "ff-approval",
|
|
870
|
+
"targetId": "adr-three",
|
|
871
|
+
"relationType": "implements"
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
"id": "ff-approval--implements--adr-regulated",
|
|
875
|
+
"sourceId": "ff-approval",
|
|
876
|
+
"targetId": "adr-regulated",
|
|
877
|
+
"relationType": "implements"
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"id": "ff-flow-never--implements--adr-flow-never",
|
|
881
|
+
"sourceId": "ff-flow-never",
|
|
882
|
+
"targetId": "adr-flow-never",
|
|
883
|
+
"relationType": "implements"
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
"id": "ff-flow-agreement--implements--adr-flow-agreement",
|
|
887
|
+
"sourceId": "ff-flow-agreement",
|
|
888
|
+
"targetId": "adr-flow-agreement",
|
|
889
|
+
"relationType": "implements"
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"id": "ff-categories--implements--adr-regulated",
|
|
893
|
+
"sourceId": "ff-categories",
|
|
894
|
+
"targetId": "adr-regulated",
|
|
895
|
+
"relationType": "implements"
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
"id": "ff-catalogue--implements--adr-four",
|
|
899
|
+
"sourceId": "ff-catalogue",
|
|
900
|
+
"targetId": "adr-four",
|
|
901
|
+
"relationType": "implements"
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
"id": "ff-catalogue--implements--adr-three",
|
|
905
|
+
"sourceId": "ff-catalogue",
|
|
906
|
+
"targetId": "adr-three",
|
|
907
|
+
"relationType": "implements"
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
"id": "ff-catalogue--implements--adr-regulated",
|
|
911
|
+
"sourceId": "ff-catalogue",
|
|
912
|
+
"targetId": "adr-regulated",
|
|
913
|
+
"relationType": "implements"
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"id": "ff-tags-required--implements--adr-four",
|
|
917
|
+
"sourceId": "ff-tags-required",
|
|
918
|
+
"targetId": "adr-four",
|
|
919
|
+
"relationType": "implements"
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"id": "ff-tags-required--implements--adr-three",
|
|
923
|
+
"sourceId": "ff-tags-required",
|
|
924
|
+
"targetId": "adr-three",
|
|
925
|
+
"relationType": "implements"
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"id": "ff-tags-required--implements--adr-regulated",
|
|
929
|
+
"sourceId": "ff-tags-required",
|
|
930
|
+
"targetId": "adr-regulated",
|
|
931
|
+
"relationType": "implements"
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
"id": "ff-tags-match--implements--adr-four",
|
|
935
|
+
"sourceId": "ff-tags-match",
|
|
936
|
+
"targetId": "adr-four",
|
|
937
|
+
"relationType": "implements"
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
"id": "ff-tags-match--implements--adr-three",
|
|
941
|
+
"sourceId": "ff-tags-match",
|
|
942
|
+
"targetId": "adr-three",
|
|
943
|
+
"relationType": "implements"
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
"id": "ff-tags-match--implements--adr-regulated",
|
|
947
|
+
"sourceId": "ff-tags-match",
|
|
948
|
+
"targetId": "adr-regulated",
|
|
949
|
+
"relationType": "implements"
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"id": "ff-discovery--implements--adr-four",
|
|
953
|
+
"sourceId": "ff-discovery",
|
|
954
|
+
"targetId": "adr-four",
|
|
955
|
+
"relationType": "implements"
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"id": "ff-discovery--implements--adr-three",
|
|
959
|
+
"sourceId": "ff-discovery",
|
|
960
|
+
"targetId": "adr-three",
|
|
961
|
+
"relationType": "implements"
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
"id": "ff-discovery--implements--adr-regulated",
|
|
965
|
+
"sourceId": "ff-discovery",
|
|
966
|
+
"targetId": "adr-regulated",
|
|
967
|
+
"relationType": "implements"
|
|
968
|
+
}
|
|
969
|
+
]
|
|
970
|
+
}
|