@radicaltools/mcp 0.3.0 → 0.3.1
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/dist/{chunk-Z7THA3L5.js → chunk-2SZDTOYJ.js} +65 -33
- package/dist/{elkLayout-TAUBPPVN.js → elkLayout-VYJDCCIT.js} +1 -1
- 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 +1001 -230
- package/package.json +1 -1
|
@@ -15,10 +15,9 @@
|
|
|
15
15
|
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
16
16
|
"concern": {
|
|
17
17
|
"id": "tenant-isolation",
|
|
18
|
-
"trigger": "LIST
|
|
19
|
-
"applyTo": "target",
|
|
18
|
+
"trigger": "LIST NODES WHERE type = \"database\" AND external != true",
|
|
20
19
|
"why": "these databases keep the system's data, so whether several customer organisations share them, and how their data is kept apart, has to be decided.",
|
|
21
|
-
"group": "
|
|
20
|
+
"group": "security"
|
|
22
21
|
},
|
|
23
22
|
"sources": [
|
|
24
23
|
{
|
|
@@ -37,9 +36,17 @@
|
|
|
37
36
|
"title": "OWASP ASVS 4.0.3, V4 Access Control",
|
|
38
37
|
"url": "https://owasp.org/www-project-application-security-verification-standard/"
|
|
39
38
|
},
|
|
39
|
+
{
|
|
40
|
+
"title": "OWASP API Security Top 10 2023, API1 Broken Object Level Authorization",
|
|
41
|
+
"url": "https://owasp.org/API-Security/editions/2023/en/0xa1-broken-object-level-authorization/"
|
|
42
|
+
},
|
|
40
43
|
{
|
|
41
44
|
"title": "NIST SP 800-57 Part 1 Rev. 5, Recommendation for Key Management",
|
|
42
45
|
"url": "https://csrc.nist.gov/pubs/sp/800/57/pt1/r5/final"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"title": "Regulation (EU) 2016/679 (GDPR), Art. 17 and Art. 28",
|
|
49
|
+
"url": "https://eur-lex.europa.eu/eli/reg/2016/679/oj"
|
|
43
50
|
}
|
|
44
51
|
],
|
|
45
52
|
"templateParams": [
|
|
@@ -52,7 +59,7 @@
|
|
|
52
59
|
"options": [
|
|
53
60
|
{
|
|
54
61
|
"value": "pool",
|
|
55
|
-
"label": "shared
|
|
62
|
+
"label": "shared tables with row-level security",
|
|
56
63
|
"description": "All tenants in the same tables, every row carrying a tenant id, and the database itself filtering by it (PostgreSQL row-level security, SQL Server security policies). Pick it for many small tenants (hundreds or more) on a self-service plan."
|
|
57
64
|
},
|
|
58
65
|
{
|
|
@@ -68,12 +75,12 @@
|
|
|
68
75
|
{
|
|
69
76
|
"value": "silo",
|
|
70
77
|
"label": "a deployment per tenant",
|
|
71
|
-
"description": "Each tenant runs its own copy of the whole stack in its own account or project. Pick it for a handful of large or regulated customers (government, health, banking) who pay for it, or when a customer must run it in their own cloud."
|
|
78
|
+
"description": "Each tenant runs its own copy of the whole stack in its own account or project. Pick it for a handful of large or regulated customers (government, health, banking) who pay for it, or when a customer must run it in their own cloud; the noisy-neighbour question is then moot."
|
|
72
79
|
},
|
|
73
80
|
{
|
|
74
81
|
"value": "single",
|
|
75
82
|
"label": "one organisation only",
|
|
76
|
-
"description": "The system serves one organisation and will not hold another's data. Pick it for an in-house system; the decision records it so that a second customer is not added on the quiet."
|
|
83
|
+
"description": "The system serves one organisation and will not hold another's data. Pick it for an in-house system; the decision records it so that a second customer is not added on the quiet. The next two questions are then moot."
|
|
77
84
|
}
|
|
78
85
|
]
|
|
79
86
|
},
|
|
@@ -81,7 +88,7 @@
|
|
|
81
88
|
"key": "NOISY",
|
|
82
89
|
"title": "Noisy neighbours",
|
|
83
90
|
"label": "How is one tenant's load kept from slowing the others?",
|
|
84
|
-
"hint": "Where tenants share a database or service, one tenant's import or report can take it from everyone. Limits per tenant keep the damage to that tenant.",
|
|
91
|
+
"hint": "Where tenants share a database or service, one tenant's import or report can take it from everyone. Limits per tenant keep the damage to that tenant. Only when tenants share a database or service (shared tables, a schema or a database per tenant).",
|
|
85
92
|
"defaultValue": "quotas",
|
|
86
93
|
"options": [
|
|
87
94
|
{
|
|
@@ -100,7 +107,7 @@
|
|
|
100
107
|
"key": "KEYS",
|
|
101
108
|
"title": "Encryption keys",
|
|
102
109
|
"label": "Whose keys encrypt each tenant's data?",
|
|
103
|
-
"hint": "Keys per tenant make a leaked backup or a missed filter less useful, and deleting a tenant's key deletes its data everywhere, backups included.",
|
|
110
|
+
"hint": "Keys per tenant make a leaked backup or a missed filter less useful, and deleting a tenant's key deletes its data everywhere, backups included. Only for the multi-tenant models; with one organisation only, keys are decided in the Encryption pack.",
|
|
104
111
|
"defaultValue": "tenant",
|
|
105
112
|
"options": [
|
|
106
113
|
{
|
|
@@ -116,7 +123,7 @@
|
|
|
116
123
|
{
|
|
117
124
|
"value": "shared",
|
|
118
125
|
"label": "platform keys",
|
|
119
|
-
"description": "The data stores are encrypted at rest with the platform's keys, the same for all tenants; isolation rests on access control. Pick it for data of low sensitivity, or while no customer asks for more."
|
|
126
|
+
"description": "The data stores are encrypted at rest with the platform's keys, the same for all tenants, as decided in the Encryption pack; isolation rests on access control. Pick it for data of low sensitivity, or while no customer asks for more."
|
|
120
127
|
}
|
|
121
128
|
]
|
|
122
129
|
},
|
|
@@ -128,7 +135,7 @@
|
|
|
128
135
|
},
|
|
129
136
|
{
|
|
130
137
|
"key": "OFFBOARD_DAYS",
|
|
131
|
-
"label": "Days within which a leaving tenant's data is erased",
|
|
138
|
+
"label": "Days within which a leaving tenant's data is erased from the live stores",
|
|
132
139
|
"defaultValue": "30",
|
|
133
140
|
"type": "number"
|
|
134
141
|
}
|
|
@@ -143,7 +150,7 @@
|
|
|
143
150
|
"y": 0,
|
|
144
151
|
"kind": "brief",
|
|
145
152
|
"source": "Hub concern pack: Tenant isolation",
|
|
146
|
-
"description": "Customer organisations may share this system, and the element keeps their data. No tenant may ever see, change or slow down another: a forgotten tenant filter, a tenant id taken from the request, a shared cache key or file path, or one tenant's heavy job each breaks that promise for everyone. Customers also ask whose keys protect their data, where it is kept, and for proof that it is gone when they leave. If the system serves one organisation only, that has to be a decision too, so a second one is not added on the quiet."
|
|
153
|
+
"description": "Customer organisations may share this system, and the element keeps their data. No tenant may ever see, change or slow down another: a forgotten tenant filter, a tenant id taken from the request, a shared cache key or file path, or one tenant's heavy job each breaks that promise for everyone. Customers also ask whose keys protect their data, where it is kept, and for proof that it is gone when they leave. If the system serves one organisation only, that has to be a decision too, so a second one is not added on the quiet. The snippets assume the application under src/ (src/app exports the router's table, src/tenants the catalogue and offboarding, src/crypto the envelope layer, src/stores the data access) and the tests under tests/ with their fixtures in tests/tenants."
|
|
147
154
|
},
|
|
148
155
|
{
|
|
149
156
|
"id": "req-tenant-context",
|
|
@@ -158,8 +165,7 @@
|
|
|
158
165
|
"ISOLATION": [
|
|
159
166
|
"pool",
|
|
160
167
|
"schema",
|
|
161
|
-
"database"
|
|
162
|
-
"silo"
|
|
168
|
+
"database"
|
|
163
169
|
]
|
|
164
170
|
}
|
|
165
171
|
},
|
|
@@ -177,8 +183,7 @@
|
|
|
177
183
|
"ISOLATION": [
|
|
178
184
|
"pool",
|
|
179
185
|
"schema",
|
|
180
|
-
"database"
|
|
181
|
-
"silo"
|
|
186
|
+
"database"
|
|
182
187
|
]
|
|
183
188
|
}
|
|
184
189
|
},
|
|
@@ -344,36 +349,15 @@
|
|
|
344
349
|
]
|
|
345
350
|
}
|
|
346
351
|
},
|
|
347
|
-
{
|
|
348
|
-
"id": "req-platform-keys",
|
|
349
|
-
"type": "requirement",
|
|
350
|
-
"label": "Encrypted at rest",
|
|
351
|
-
"x": 260,
|
|
352
|
-
"y": 1430,
|
|
353
|
-
"ears_type": "ubiquitous",
|
|
354
|
-
"action": "encrypt every data store and backup at rest with platform-managed AES-256 keys rotated at least every 12 months",
|
|
355
|
-
"rationale": "With shared keys isolation rests on access control alone, but a lost disk or snapshot must still be unreadable (NIST SP 800-57 Part 1, cryptoperiods).",
|
|
356
|
-
"hubWhen": {
|
|
357
|
-
"ISOLATION": [
|
|
358
|
-
"pool",
|
|
359
|
-
"schema",
|
|
360
|
-
"database",
|
|
361
|
-
"silo"
|
|
362
|
-
],
|
|
363
|
-
"KEYS": [
|
|
364
|
-
"shared"
|
|
365
|
-
]
|
|
366
|
-
}
|
|
367
|
-
},
|
|
368
352
|
{
|
|
369
353
|
"id": "req-offboard",
|
|
370
354
|
"type": "requirement",
|
|
371
355
|
"label": "Leaving tenant erased",
|
|
372
356
|
"x": 260,
|
|
373
|
-
"y":
|
|
357
|
+
"y": 1430,
|
|
374
358
|
"ears_type": "event-driven",
|
|
375
359
|
"trigger": "a tenant's contract ends",
|
|
376
|
-
"action": "offer an export of its data for 30 days, then erase its data from every store, cache
|
|
360
|
+
"action": "offer an export of its data for 30 days, then erase its data from every live store, cache and search index within {{OFFBOARD_DAYS}} days, make its copies in backups unreadable (by deleting its key) or let them expire with the backup retention, and give it a deletion certificate that states when the last copy is gone",
|
|
377
361
|
"rationale": "A tenant leaving must be able to take its data and prove it is gone; data in backups and indexes is the part usually forgotten (GDPR Art. 17 and 28(3)(g); AWS SaaS Lens, tenant offboarding).",
|
|
378
362
|
"hubWhen": {
|
|
379
363
|
"ISOLATION": [
|
|
@@ -389,7 +373,7 @@
|
|
|
389
373
|
"type": "requirement",
|
|
390
374
|
"label": "One organisation only",
|
|
391
375
|
"x": 260,
|
|
392
|
-
"y":
|
|
376
|
+
"y": 1560,
|
|
393
377
|
"ears_type": "ubiquitous",
|
|
394
378
|
"action": "hold the data of exactly one organisation per deployment, and refuse to create a second organisation or import records belonging to another one",
|
|
395
379
|
"rationale": "Without a tenant boundary in the design, a second customer added on the quiet would share everything with the first; this makes the boundary a requirement.",
|
|
@@ -412,8 +396,7 @@
|
|
|
412
396
|
"ISOLATION": [
|
|
413
397
|
"pool",
|
|
414
398
|
"schema",
|
|
415
|
-
"database"
|
|
416
|
-
"silo"
|
|
399
|
+
"database"
|
|
417
400
|
]
|
|
418
401
|
}
|
|
419
402
|
},
|
|
@@ -430,8 +413,7 @@
|
|
|
430
413
|
"ISOLATION": [
|
|
431
414
|
"pool",
|
|
432
415
|
"schema",
|
|
433
|
-
"database"
|
|
434
|
-
"silo"
|
|
416
|
+
"database"
|
|
435
417
|
]
|
|
436
418
|
}
|
|
437
419
|
},
|
|
@@ -504,7 +486,7 @@
|
|
|
504
486
|
"y": 780,
|
|
505
487
|
"given": "the infrastructure code of two tenant stacks",
|
|
506
488
|
"when": "their resources and access policies are compared",
|
|
507
|
-
"then": "no data store, queue, key or credential appears in both, and both run the same release",
|
|
489
|
+
"then": "no data store, queue, key or credential appears in both, and both run the same release or the newer stack's release is less than 7 days old",
|
|
508
490
|
"hubWhen": {
|
|
509
491
|
"ISOLATION": [
|
|
510
492
|
"silo"
|
|
@@ -591,36 +573,15 @@
|
|
|
591
573
|
]
|
|
592
574
|
}
|
|
593
575
|
},
|
|
594
|
-
{
|
|
595
|
-
"id": "sc-platform-keys",
|
|
596
|
-
"type": "scenario",
|
|
597
|
-
"label": "Stores encrypted",
|
|
598
|
-
"x": 520,
|
|
599
|
-
"y": 1430,
|
|
600
|
-
"given": "the infrastructure as deployed",
|
|
601
|
-
"when": "its data stores and backups are listed",
|
|
602
|
-
"then": "each is encrypted at rest and its key was rotated within the last 12 months",
|
|
603
|
-
"hubWhen": {
|
|
604
|
-
"ISOLATION": [
|
|
605
|
-
"pool",
|
|
606
|
-
"schema",
|
|
607
|
-
"database",
|
|
608
|
-
"silo"
|
|
609
|
-
],
|
|
610
|
-
"KEYS": [
|
|
611
|
-
"shared"
|
|
612
|
-
]
|
|
613
|
-
}
|
|
614
|
-
},
|
|
615
576
|
{
|
|
616
577
|
"id": "sc-offboard",
|
|
617
578
|
"type": "scenario",
|
|
618
579
|
"label": "Tenant offboarded",
|
|
619
580
|
"x": 520,
|
|
620
|
-
"y":
|
|
581
|
+
"y": 1430,
|
|
621
582
|
"given": "a tenant whose contract has ended and whose export period has passed",
|
|
622
583
|
"when": "{{OFFBOARD_DAYS}} days have passed",
|
|
623
|
-
"then": "no store, cache
|
|
584
|
+
"then": "no live store, cache or index returns any of its data, and the certificate states the date the last backup copy expires or became unreadable",
|
|
624
585
|
"hubWhen": {
|
|
625
586
|
"ISOLATION": [
|
|
626
587
|
"pool",
|
|
@@ -635,7 +596,7 @@
|
|
|
635
596
|
"type": "scenario",
|
|
636
597
|
"label": "Second organisation refused",
|
|
637
598
|
"x": 520,
|
|
638
|
-
"y":
|
|
599
|
+
"y": 1560,
|
|
639
600
|
"given": "a deployment serving one organisation",
|
|
640
601
|
"when": "an administrator tries to create a second organisation",
|
|
641
602
|
"then": "it is refused and the attempt is recorded",
|
|
@@ -655,7 +616,7 @@
|
|
|
655
616
|
"status": "accepted",
|
|
656
617
|
"date": "",
|
|
657
618
|
"context": "This element keeps data, and the system may serve several customer organisations (tenants) from one deployment. The forces: one query that forgets the tenant filter, one cache key or file path without the tenant, or one tenant id taken from the request instead of the credential shows a customer another's data; the more is shared, the cheaper each tenant is to run and the further one mistake reaches; one tenant's load slows everyone sharing the same database or service (the noisy neighbour); customers ask for their own keys, their own region and proof that their data is gone when they leave; and per-tenant schemas, databases or deployments multiply what has to be migrated and run.",
|
|
658
|
-
"decision": "All tenants share the same database and tables; every table with tenant data has a non-null tenant_id column, leading every index and key, and row-level security policies that compare it with the tenant set for the transaction (PostgreSQL RLS with FORCE ROW LEVEL SECURITY and SET LOCAL app.tenant_id; SQL Server security policies; on Aurora or Cloud SQL the same). The application connects as a role without BYPASSRLS; migrations run as another. The tenant comes from the token, is set by middleware, and is part of every cache key, object-store prefix and message. Encryption keys: {{KEYS}}. Noisy neighbours: {{NOISY}}.",
|
|
619
|
+
"decision": "All tenants share the same database and tables; every table with tenant data has a non-null tenant_id column, leading every index and key, and row-level security policies that compare it with the tenant set for the transaction (PostgreSQL RLS with FORCE ROW LEVEL SECURITY and SET LOCAL app.tenant_id; SQL Server security policies; on Aurora or Cloud SQL the same). The application connects as a role without BYPASSRLS; migrations run as another. The tenant comes from the token, is set by middleware, and is part of every cache key, object-store prefix and message. A request naming another tenant's record gets 404 and a security event. Encryption keys: {{KEYS}}. Noisy neighbours: {{NOISY}}.",
|
|
659
620
|
"consequences": "• The cheapest model per tenant: onboarding is a row, one migration covers everyone.\n• A query that forgets the tenant still returns only the tenant's rows; the database holds the boundary.\n• Per-tenant backup, restore and residency are hard: they mean filtered exports, not a file per tenant.\n• Noisy neighbours share everything, so quotas are a must.\n• Connection pooling must reset the tenant setting between transactions (SET LOCAL, not SET).",
|
|
660
621
|
"alternatives": "1. A tenant filter only in the application code (ORM global scope): no database feature needed, but one raw query crosses the boundary.\n2. A schema per tenant: cleaner per-tenant export, migrations multiply.\n3. A database per tenant: the strongest storage isolation, the highest cost per tenant.",
|
|
661
622
|
"hubWhen": {
|
|
@@ -674,7 +635,7 @@
|
|
|
674
635
|
"status": "accepted",
|
|
675
636
|
"date": "",
|
|
676
637
|
"context": "This element keeps data, and the system may serve several customer organisations (tenants) from one deployment. The forces: one query that forgets the tenant filter, one cache key or file path without the tenant, or one tenant id taken from the request instead of the credential shows a customer another's data; the more is shared, the cheaper each tenant is to run and the further one mistake reaches; one tenant's load slows everyone sharing the same database or service (the noisy neighbour); customers ask for their own keys, their own region and proof that their data is gone when they leave; and per-tenant schemas, databases or deployments multiply what has to be migrated and run.",
|
|
677
|
-
"decision": "Each tenant gets its own schema in a shared database, with a database role granted only on that schema; a request opens its connection with its tenant's role and search path. Migrations run per schema with Flyway or Liquibase (one target per schema), driven by the tenant catalogue, and the release waits until all schemas are migrated or reports the failures. Plan for at most a few hundred schemas per database (catalogue size and migration time grow with each); beyond that, add a database and shard tenants over them. Encryption keys: {{KEYS}}. Noisy neighbours: {{NOISY}}.",
|
|
638
|
+
"decision": "Each tenant gets its own schema in a shared database, with a database role granted only on that schema; a request opens its connection with its tenant's role and search path. Migrations run per schema with Flyway or Liquibase (one target per schema), driven by the tenant catalogue, and the release waits until all schemas are migrated or reports the failures. Plan for at most a few hundred schemas per database (catalogue size and migration time grow with each); beyond that, add a database and shard tenants over them. The tenant comes from the token and is part of every cache key, object-store prefix and message. Encryption keys: {{KEYS}}. Noisy neighbours: {{NOISY}}.",
|
|
678
639
|
"consequences": "• A forgotten filter cannot cross schemas: the role is refused by the database.\n• Per-tenant export and restore are a schema dump.\n• Every migration runs once per tenant: release time and failure handling grow with the number of tenants.\n• Connection pools per role or per schema multiply connections; a pooler (PgBouncer) is needed.",
|
|
679
640
|
"alternatives": "1. Pooled tables with row-level security: cheaper, scales to many more tenants.\n2. A database per tenant: isolates load and backups too, costs more.\n3. Schemas without a role per tenant: simpler, but a query naming another schema is not refused.",
|
|
680
641
|
"hubWhen": {
|
|
@@ -693,7 +654,7 @@
|
|
|
693
654
|
"status": "accepted",
|
|
694
655
|
"date": "",
|
|
695
656
|
"context": "This element keeps data, and the system may serve several customer organisations (tenants) from one deployment. The forces: one query that forgets the tenant filter, one cache key or file path without the tenant, or one tenant id taken from the request instead of the credential shows a customer another's data; the more is shared, the cheaper each tenant is to run and the further one mistake reaches; one tenant's load slows everyone sharing the same database or service (the noisy neighbour); customers ask for their own keys, their own region and proof that their data is gone when they leave; and per-tenant schemas, databases or deployments multiply what has to be migrated and run.",
|
|
696
|
-
"decision": "Each tenant gets its own database (or managed instance), created by the onboarding pipeline with credentials valid for that database only and kept in the secret store under the tenant's id. A tenant catalogue maps tenant to connection; the application resolves it from the token's tenant on every request and never takes a connection string from the request. Small tenants can share an instance with a database each (Azure SQL elastic pools, Aurora with a database per tenant); large or regulated ones get an instance of their own, in the region they ask for. Migrations run per database from the catalogue. Encryption keys: {{KEYS}}. Noisy neighbours: {{NOISY}}.",
|
|
657
|
+
"decision": "Each tenant gets its own database (or managed instance), created by the onboarding pipeline with credentials valid for that database only and kept in the secret store under the tenant's id. A tenant catalogue maps tenant to connection; the application resolves it from the token's tenant on every request and never takes a connection string from the request. Small tenants can share an instance with a database each (Azure SQL elastic pools, Aurora with a database per tenant); large or regulated ones get an instance of their own, in the region they ask for. Migrations run per database from the catalogue. The tenant is part of every cache key, object-store prefix and message. Encryption keys: {{KEYS}}. Noisy neighbours: {{NOISY}}.",
|
|
697
658
|
"consequences": "• Storage, backups, restores and residency are per tenant.\n• A tenant's heavy queries load its own database first; the shared application tier still needs quotas.\n• Cost and operations grow with the number of tenants: monitoring, patching and migrations per database.\n• The tenant catalogue is critical: a wrong entry routes one tenant to another's data.",
|
|
698
659
|
"alternatives": "1. A schema per tenant: cheaper, weaker isolation of load and backups.\n2. Pooled tables with row-level security: the cheapest, no per-tenant restore.\n3. A deployment per tenant: isolates the application too, the highest cost.",
|
|
699
660
|
"hubWhen": {
|
|
@@ -712,7 +673,7 @@
|
|
|
712
673
|
"status": "accepted",
|
|
713
674
|
"date": "",
|
|
714
675
|
"context": "This element keeps data, and the system may serve several customer organisations (tenants) from one deployment. The forces: one query that forgets the tenant filter, one cache key or file path without the tenant, or one tenant id taken from the request instead of the credential shows a customer another's data; the more is shared, the cheaper each tenant is to run and the further one mistake reaches; one tenant's load slows everyone sharing the same database or service (the noisy neighbour); customers ask for their own keys, their own region and proof that their data is gone when they leave; and per-tenant schemas, databases or deployments multiply what has to be migrated and run. Here each tenant is large or regulated enough to pay for, or require, a stack of its own.",
|
|
715
|
-
"decision": "Each tenant runs its own copy of the whole stack in its own cloud account or project (AWS account per tenant via Control Tower / Organizations, Azure subscription, Google Cloud project), created from the same infrastructure code (Terraform or Pulumi modules with the tenant as input) and deployed by one pipeline that rolls each release out to every stack within 7 days, in waves. Nothing is shared between stacks but the pipeline and the observability backend, which receives data tagged per tenant. Encryption keys: {{KEYS}}.",
|
|
676
|
+
"decision": "Each tenant runs its own copy of the whole stack in its own cloud account or project (AWS account per tenant via Control Tower / Organizations, Azure subscription, Google Cloud project), created from the same infrastructure code (Terraform or Pulumi modules with the tenant as input) and deployed by one pipeline that rolls each release out to every stack within 7 days, in waves. Nothing is shared between stacks but the pipeline and the observability backend, which receives data tagged per tenant; there is no noisy neighbour to hold back. Encryption keys: {{KEYS}}.",
|
|
716
677
|
"consequences": "• The strongest isolation: no shared data store, network or quota; no noisy neighbour.\n• Cost and operations per tenant are the highest: every stack is monitored, patched and upgraded.\n• Stacks drift apart unless the pipeline is the only way to change them.\n• Onboarding a tenant takes an account and a full deployment, not a row.",
|
|
717
678
|
"alternatives": "1. A database per tenant with a shared application: most of the data isolation at a fraction of the cost.\n2. Pooled tables with row-level security: cheapest, weakest.\n3. Tenants run it themselves (on-premises or in their cloud): full control for them, upgrades out of our hands.",
|
|
718
679
|
"hubWhen": {
|
|
@@ -731,7 +692,7 @@
|
|
|
731
692
|
"status": "accepted",
|
|
732
693
|
"date": "",
|
|
733
694
|
"context": "This element keeps data, and the system may serve several customer organisations (tenants) from one deployment. The forces: one query that forgets the tenant filter, one cache key or file path without the tenant, or one tenant id taken from the request instead of the credential shows a customer another's data; the more is shared, the cheaper each tenant is to run and the further one mistake reaches; one tenant's load slows everyone sharing the same database or service (the noisy neighbour); customers ask for their own keys, their own region and proof that their data is gone when they leave; and per-tenant schemas, databases or deployments multiply what has to be migrated and run. Here the system serves one organisation, and no customer data of another is expected.",
|
|
734
|
-
"decision": "The system serves exactly one organisation; its data model has no tenant and the deployment refuses to create a second organisation. Serving another organisation means another deployment, or superseding this decision with one of the multi-tenant models first.
|
|
695
|
+
"decision": "The system serves exactly one organisation; its data model has no tenant and the deployment refuses to create a second organisation. Serving another organisation means another deployment, or superseding this decision with one of the multi-tenant models first. There is no tenant to separate, so per-tenant quotas and per-tenant keys do not apply; encryption at rest is decided in the Encryption pack.",
|
|
735
696
|
"consequences": "• No tenant filter, no tenant catalogue, no per-tenant quotas: the simplest data model.\n• A second customer cannot be added without a migration of the data model or a separate deployment.\n• The decision makes the boundary explicit, so it is not crossed by accident.",
|
|
736
697
|
"alternatives": "1. Pooled tables with a tenant id from the start: little cost now, and ready for a second customer, but a boundary nobody tests until then.\n2. A deployment per customer when a second one comes: no change to the data model.",
|
|
737
698
|
"hubWhen": {
|
|
@@ -750,7 +711,7 @@
|
|
|
750
711
|
"status": "accepted",
|
|
751
712
|
"date": "",
|
|
752
713
|
"context": "This element keeps data, and the system may serve several customer organisations (tenants) from one deployment. The forces: one query that forgets the tenant filter, one cache key or file path without the tenant, or one tenant id taken from the request instead of the credential shows a customer another's data; the more is shared, the cheaper each tenant is to run and the further one mistake reaches; one tenant's load slows everyone sharing the same database or service (the noisy neighbour); customers ask for their own keys, their own region and proof that their data is gone when they leave; and per-tenant schemas, databases or deployments multiply what has to be migrated and run.",
|
|
753
|
-
"decision": "Every tenant has limits enforced where load enters: {{TENANT_RPS}} requests per second at the gateway (Envoy or Kong rate limiting keyed by the token's tenant, or AWS API Gateway usage plans), a cap on concurrent database queries per tenant in the connection pool, and a per-tenant concurrency limit in the job queue (BullMQ groups
|
|
714
|
+
"decision": "Every tenant has limits enforced where load enters: {{TENANT_RPS}} requests per second at the gateway (Envoy or Kong rate limiting keyed by the token's tenant, or AWS API Gateway usage plans), a cap on concurrent database queries per tenant in the connection pool, and a per-tenant concurrency limit in the job queue (BullMQ Pro groups or Sidekiq Enterprise limits, both paid; in the open versions a queue per tenant with its own concurrency). Statement timeouts bound one query. Load, latency and errors are measured per tenant, so the noisy one is visible.",
|
|
754
715
|
"consequences": "• One tenant's burst costs that tenant, not everyone.\n• Limits need tuning per plan and a way to raise them for a tenant.\n• Every metric gains a tenant label: watch its cardinality.",
|
|
755
716
|
"alternatives": "1. Quotas plus dedicated capacity for large tenants: needed once tenant sizes differ by orders of magnitude.\n2. Scaling the shared pool for the largest tenant: simple, expensive, and still one tenant's query can lock a table.",
|
|
756
717
|
"hubWhen": {
|
|
@@ -774,7 +735,7 @@
|
|
|
774
735
|
"status": "accepted",
|
|
775
736
|
"date": "",
|
|
776
737
|
"context": "This element keeps data, and the system may serve several customer organisations (tenants) from one deployment. The forces: one query that forgets the tenant filter, one cache key or file path without the tenant, or one tenant id taken from the request instead of the credential shows a customer another's data; the more is shared, the cheaper each tenant is to run and the further one mistake reaches; one tenant's load slows everyone sharing the same database or service (the noisy neighbour); customers ask for their own keys, their own region and proof that their data is gone when they leave; and per-tenant schemas, databases or deployments multiply what has to be migrated and run.",
|
|
777
|
-
"decision": "Every tenant has quotas as in the pool ({{TENANT_RPS}} requests per second at the gateway, query and job concurrency per tenant), and tenants are placed by tier: the standard tier in shared pools, the premium tier on dedicated capacity (its own database and worker nodes, the same code). A tenant using more than 20% of a shared pool for 7 days is proposed for the premium tier; the tenant catalogue routes each tenant, and moving one is a scripted copy with a short write freeze (pg_dump or logical replication, AWS DMS).",
|
|
738
|
+
"decision": "Every tenant has quotas as in the pool ({{TENANT_RPS}} requests per second at the gateway, query and job concurrency per tenant), and tenants are placed by tier: the standard tier in shared pools, the premium tier on dedicated capacity (its own database and worker nodes, the same code). A tenant using more than 20% of a shared pool for 7 days is proposed for the premium tier; the tenant catalogue routes each tenant, and moving one is a scripted copy with a short write freeze (pg_dump or logical replication, AWS DMS). The application emits database time per tenant and pool (a db_query_seconds_total counter with tenant and pool labels), which the share alert reads.",
|
|
778
739
|
"consequences": "• Large tenants get guaranteed capacity, small ones stay cheap.\n• Two placement models to run and test, and a move procedure to rehearse.\n• The tenant catalogue decides where data lives: it must be correct and audited.",
|
|
779
740
|
"alternatives": "1. Quotas only: simpler, but the largest tenants are throttled.\n2. Dedicated capacity for every tenant: no noisy neighbours, at the cost per tenant of a database each.",
|
|
780
741
|
"hubWhen": {
|
|
@@ -798,7 +759,7 @@
|
|
|
798
759
|
"status": "accepted",
|
|
799
760
|
"date": "",
|
|
800
761
|
"context": "This element keeps data, and the system may serve several customer organisations (tenants) from one deployment. The forces: one query that forgets the tenant filter, one cache key or file path without the tenant, or one tenant id taken from the request instead of the credential shows a customer another's data; the more is shared, the cheaper each tenant is to run and the further one mistake reaches; one tenant's load slows everyone sharing the same database or service (the noisy neighbour); customers ask for their own keys, their own region and proof that their data is gone when they leave; and per-tenant schemas, databases or deployments multiply what has to be migrated and run.",
|
|
801
|
-
"decision": "Each tenant has its own key in the platform's key management service (AWS KMS, Azure Key Vault, Google Cloud KMS), and data is encrypted with data keys it wraps, the tenant id as encryption context (AWS Encryption SDK, Tink). Key policies let only the services act on it; keys rotate every 12 months. When a tenant leaves, its key is scheduled for deletion after the export period, which makes its data unreadable everywhere, backups included.",
|
|
762
|
+
"decision": "Each tenant has its own key in the platform's key management service (AWS KMS, Azure Key Vault, Google Cloud KMS), and data is encrypted with data keys it wraps, the tenant id as encryption context (AWS Encryption SDK, Tink), through one envelope layer in the application that every store goes through. Key policies let only the services act on it; keys rotate every 12 months. When a tenant leaves, its key is scheduled for deletion after the export period, which makes its data unreadable everywhere, backups included.",
|
|
802
763
|
"consequences": "• A missed filter or a leaked backup exposes ciphertext of other tenants, not data.\n• Erasure is provable: deleting the key is the deletion.\n• Key management cost and calls grow with tenants and requests; cache data keys for a few minutes.\n• Queries over encrypted fields are limited: encrypt fields, not whole tables, where search is needed.",
|
|
803
764
|
"alternatives": "1. Customer-managed keys: control for the customer, but a revoked key stops their service.\n2. Platform keys for all: simplest, no per-tenant erasure by key.",
|
|
804
765
|
"hubWhen": {
|
|
@@ -823,7 +784,7 @@
|
|
|
823
784
|
"status": "accepted",
|
|
824
785
|
"date": "",
|
|
825
786
|
"context": "This element keeps data, and the system may serve several customer organisations (tenants) from one deployment. The forces: one query that forgets the tenant filter, one cache key or file path without the tenant, or one tenant id taken from the request instead of the credential shows a customer another's data; the more is shared, the cheaper each tenant is to run and the further one mistake reaches; one tenant's load slows everyone sharing the same database or service (the noisy neighbour); customers ask for their own keys, their own region and proof that their data is gone when they leave; and per-tenant schemas, databases or deployments multiply what has to be migrated and run.",
|
|
826
|
-
"decision": "Tenants that ask for it keep their key in their own key management service (AWS KMS in their account with a key policy granting our role, Azure Key Vault with a managed identity, Google Cloud KMS with Cloud EKM, or an HSM through KMIP); the others get a key per tenant in ours. Data is encrypted with data keys wrapped by the tenant's key, the tenant id as encryption context; cached data keys live at most 5 minutes, so a revocation takes effect within that. A revoked key puts the tenant in a suspended state with a clear message, not a stream of errors.",
|
|
787
|
+
"decision": "Tenants that ask for it keep their key in their own key management service (AWS KMS in their account with a key policy granting our role, Azure Key Vault with a managed identity, Google Cloud KMS with Cloud EKM, or an HSM through KMIP); the others get a key per tenant in ours. Data is encrypted with data keys wrapped by the tenant's key, the tenant id as encryption context, through one envelope layer in the application; cached data keys live at most 5 minutes, so a revocation takes effect within that. A revoked key puts the tenant in a suspended state with a clear message, not a stream of errors.",
|
|
827
788
|
"consequences": "• Customers can cut our access to their data at any time, which regulated customers require.\n• A customer's key outage is our outage for that tenant: support needs to tell the two apart.\n• Onboarding needs the customer's key set up and tested before data arrives.",
|
|
828
789
|
"alternatives": "1. A key per tenant in our key management service: the same isolation, without the customer's control.\n2. Platform keys for all: simplest, refused by customers who require their own keys.",
|
|
829
790
|
"hubWhen": {
|
|
@@ -848,8 +809,8 @@
|
|
|
848
809
|
"status": "accepted",
|
|
849
810
|
"date": "",
|
|
850
811
|
"context": "This element keeps data, and the system may serve several customer organisations (tenants) from one deployment. The forces: one query that forgets the tenant filter, one cache key or file path without the tenant, or one tenant id taken from the request instead of the credential shows a customer another's data; the more is shared, the cheaper each tenant is to run and the further one mistake reaches; one tenant's load slows everyone sharing the same database or service (the noisy neighbour); customers ask for their own keys, their own region and proof that their data is gone when they leave; and per-tenant schemas, databases or deployments multiply what has to be migrated and run.",
|
|
851
|
-
"decision": "
|
|
852
|
-
"consequences": "• Nothing to manage per tenant; no extra calls or cost.\n• A missed filter or leaked backup exposes every tenant in it: access control carries the whole boundary.\n• Erasure in backups takes as long as backup retention.",
|
|
812
|
+
"decision": "The same platform-managed keys encrypt every tenant's data at rest; keys and rotation as decided in the Encryption pack. Tenant isolation rests on the access control of the isolation model; erasure of a leaving tenant is by deleting its data from the live stores, and its copies in backups expire with the backup retention, which the deletion certificate states. Revisit when a customer asks for its own key or must be able to prove erasure sooner.",
|
|
813
|
+
"consequences": "• Nothing to manage per tenant; no extra calls or cost.\n• A missed filter or leaked backup exposes every tenant in it: access control carries the whole boundary.\n• Erasure in backups takes as long as backup retention, and the certificate has to say so.",
|
|
853
814
|
"alternatives": "1. A key per tenant: limits a leak and proves erasure, at some cost.\n2. Customer-managed keys: control for the customer.",
|
|
854
815
|
"hubWhen": {
|
|
855
816
|
"ISOLATION": [
|
|
@@ -869,9 +830,51 @@
|
|
|
869
830
|
"label": "Cross-tenant calls return nothing",
|
|
870
831
|
"x": 1040,
|
|
871
832
|
"y": 0,
|
|
872
|
-
"
|
|
873
|
-
"
|
|
874
|
-
"
|
|
833
|
+
"characteristic": "security",
|
|
834
|
+
"scope": "atomic",
|
|
835
|
+
"cadence": "triggered",
|
|
836
|
+
"trigger": "pull-request",
|
|
837
|
+
"invocation": "automated",
|
|
838
|
+
"description": "An integration test sets up two tenants with data of every kind (UUID ids, so a substring match is safe), then calls every operation as a user of the first with the second's ids and a forged tenant header and body field, expecting 404 or nothing of the second back, the second's data unchanged, and a security event per attempt. The operations come from the router, so a new one is tested without anyone adding it.\n\nThreshold: 0 records of another tenant returned or changed, over every operation, with forged tenant headers included; every cross-tenant attempt leaves 1 security event\n\nTool: Vitest with supertest (or the test runner and HTTP client of your stack)\n\n```ts\nimport request from 'supertest'\nimport { app, routes } from '../src/app'\nimport { securityEvents } from '../src/security/events'\nimport { seedTwoTenants } from './tenants'\n\nconst { a, b } = await seedTwoTenants() // users, tokens and UUID record ids of each\n\ndescribe.each(routes)('$method $path', (route) => {\n it('never shows or changes tenant B to tenant A', async () => {\n const before = await securityEvents.count({ tenant: a.tenantId, kind: 'cross-tenant' })\n const res = await request(app)[route.method.toLowerCase()](route.withIds(b.ids))\n .set('Authorization', `Bearer ${a.token}`)\n .set('X-Tenant-Id', b.tenantId) // forged: must be ignored\n .send({ ...route.exampleBody, tenantId: b.tenantId })\n expect(JSON.stringify(res.body)).not.toContain(b.tenantId)\n for (const id of Object.values(b.ids)) expect(JSON.stringify(res.body)).not.toContain(id)\n expect(await b.snapshot()).toEqual(b.before)\n if (route.path.includes(':id')) {\n expect(res.status).toBe(404)\n expect(await securityEvents.count({ tenant: a.tenantId, kind: 'cross-tenant' })).toBe(before + 1)\n }\n })\n})\n```",
|
|
839
|
+
"hubWhen": {
|
|
840
|
+
"ISOLATION": [
|
|
841
|
+
"pool",
|
|
842
|
+
"schema",
|
|
843
|
+
"database"
|
|
844
|
+
]
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"id": "ff-tenant-context",
|
|
849
|
+
"type": "fitness-fn",
|
|
850
|
+
"label": "Tenant carried everywhere",
|
|
851
|
+
"x": 1040,
|
|
852
|
+
"y": 130,
|
|
853
|
+
"characteristic": "security",
|
|
854
|
+
"scope": "atomic",
|
|
855
|
+
"cadence": "triggered",
|
|
856
|
+
"trigger": "pull-request",
|
|
857
|
+
"invocation": "automated",
|
|
858
|
+
"description": "An integration test runs every operation once as a user of tenant A against a fresh cache, object store, queue and log capture, then reads back every cache key, object key, message and log line written and expects each to carry the tenant.\n\nThreshold: After one request per operation as tenant A, 100% of cache keys, object keys, messages and log lines written carry tenant A; 0 without\n\nTool: Vitest with supertest and Testcontainers (Redis, the object store and the broker of the deployment), logs captured by a test transport\n\n```ts\nimport request from 'supertest'\nimport { app, routes } from '../src/app'\nimport { cache, objects, queue, logs } from './tenants/capture' // fresh per run; each returns what was written\nimport { seedTwoTenants } from './tenants'\n\nconst { a } = await seedTwoTenants()\n\nit('carries the tenant to every cache key, object key, message and log line', async () => {\n for (const route of routes) await request(app)[route.method.toLowerCase()](route.withIds(a.ids)).set('Authorization', `Bearer ${a.token}`)\n for (const key of await cache.keys()) expect(key).toContain(a.tenantId)\n for (const key of await objects.keys()) expect(key.startsWith(`${a.tenantId}/`)).toBe(true)\n for (const message of await queue.messages()) expect(message.headers.tenant).toBe(a.tenantId)\n for (const line of await logs.lines()) expect(line.tenant).toBe(a.tenantId)\n})\n```",
|
|
859
|
+
"hubWhen": {
|
|
860
|
+
"ISOLATION": [
|
|
861
|
+
"pool",
|
|
862
|
+
"schema",
|
|
863
|
+
"database"
|
|
864
|
+
]
|
|
865
|
+
}
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"id": "ff-cross-tenant-alert",
|
|
869
|
+
"type": "fitness-fn",
|
|
870
|
+
"label": "Boundary probing alerted",
|
|
871
|
+
"x": 1040,
|
|
872
|
+
"y": 260,
|
|
873
|
+
"characteristic": "security",
|
|
874
|
+
"scope": "atomic",
|
|
875
|
+
"cadence": "continual",
|
|
876
|
+
"invocation": "automated",
|
|
877
|
+
"description": "The application counts cross-tenant attempts per tenant (security_events_total with kind=\"cross-tenant\"); an alerting rule pages when a tenant crosses 10 in an hour.\n\nThreshold: An alert within 5 minutes when one tenant produces more than 10 cross-tenant security events in an hour\n\nTool: Prometheus alerting rules\n\n```yaml\ngroups:\n - name: tenant-isolation\n rules:\n - alert: TenantProbingBoundary\n expr: sum by (tenant) (increase(security_events_total{kind=\"cross-tenant\"}[1h])) > 10\n for: 5m\n labels: { severity: page }\n annotations:\n summary: \"Tenant {{ $labels.tenant }} made more than 10 cross-tenant attempts in an hour\"\n```",
|
|
875
878
|
"hubWhen": {
|
|
876
879
|
"ISOLATION": [
|
|
877
880
|
"pool",
|
|
@@ -885,25 +888,67 @@
|
|
|
885
888
|
"type": "fitness-fn",
|
|
886
889
|
"label": "Row-level security on every table",
|
|
887
890
|
"x": 1040,
|
|
888
|
-
"y":
|
|
889
|
-
"
|
|
890
|
-
"
|
|
891
|
-
"
|
|
891
|
+
"y": 390,
|
|
892
|
+
"characteristic": "security",
|
|
893
|
+
"scope": "atomic",
|
|
894
|
+
"cadence": "triggered",
|
|
895
|
+
"trigger": "pull-request",
|
|
896
|
+
"invocation": "automated",
|
|
897
|
+
"description": "A database test runs after the migrations in CI and fails on any table holding tenant data without forced row-level security, or when the application role can bypass it.\n\nThreshold: 0 tables with a tenant_id column without row-level security enabled and forced; the application role has no BYPASSRLS\n\nTool: pgTAP (run with pg_prove)\n\n```sql\nBEGIN;\nSELECT plan(2);\n\nSELECT is_empty($$\n SELECT c.relname\n FROM pg_class c\n JOIN pg_namespace n ON n.oid = c.relnamespace\n WHERE c.relkind = 'r' AND n.nspname = 'public'\n AND EXISTS (SELECT 1 FROM pg_attribute a WHERE a.attrelid = c.oid AND a.attname = 'tenant_id')\n AND NOT (c.relrowsecurity AND c.relforcerowsecurity)\n$$, 'every table with tenant_id has forced row-level security');\n\nSELECT ok(NOT (SELECT rolbypassrls FROM pg_roles WHERE rolname = 'app'), 'the app role cannot bypass RLS');\n\nSELECT * FROM finish();\nROLLBACK;\n```",
|
|
892
898
|
"hubWhen": {
|
|
893
899
|
"ISOLATION": [
|
|
894
900
|
"pool"
|
|
895
901
|
]
|
|
896
902
|
}
|
|
897
903
|
},
|
|
904
|
+
{
|
|
905
|
+
"id": "ff-schema-roles",
|
|
906
|
+
"type": "fitness-fn",
|
|
907
|
+
"label": "Tenant roles see one schema",
|
|
908
|
+
"x": 1040,
|
|
909
|
+
"y": 520,
|
|
910
|
+
"characteristic": "security",
|
|
911
|
+
"scope": "atomic",
|
|
912
|
+
"cadence": "triggered",
|
|
913
|
+
"trigger": "pull-request",
|
|
914
|
+
"invocation": "automated",
|
|
915
|
+
"description": "A database test runs after onboarding two tenants in CI: as the first tenant's role it names a table of the second's schema and expects a permission error, and it lists the privileges of every tenant role outside its own schema.\n\nThreshold: Every tenant role is refused with 42501 on a table of another tenant's schema; 0 tenant roles with a privilege outside their own schema\n\nTool: pgTAP (run with pg_prove)\n\n```sql\nBEGIN;\nSELECT plan(2);\n\nSET ROLE tenant_a;\nSELECT throws_ok(\n $$ SELECT * FROM tenant_b.orders $$,\n '42501', NULL, 'tenant A''s role cannot read tenant B''s schema'\n);\nRESET ROLE;\n\nSELECT is_empty($$\n SELECT grantee, table_schema, table_name\n FROM information_schema.role_table_grants\n WHERE grantee LIKE 'tenant\\_%' AND table_schema <> grantee\n$$, 'no tenant role has a privilege outside its own schema');\n\nSELECT * FROM finish();\nROLLBACK;\n```",
|
|
916
|
+
"hubWhen": {
|
|
917
|
+
"ISOLATION": [
|
|
918
|
+
"schema"
|
|
919
|
+
]
|
|
920
|
+
}
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"id": "ff-database-credentials",
|
|
924
|
+
"type": "fitness-fn",
|
|
925
|
+
"label": "Credentials open one database",
|
|
926
|
+
"x": 1040,
|
|
927
|
+
"y": 650,
|
|
928
|
+
"characteristic": "security",
|
|
929
|
+
"scope": "atomic",
|
|
930
|
+
"cadence": "triggered",
|
|
931
|
+
"trigger": "pull-request",
|
|
932
|
+
"invocation": "automated",
|
|
933
|
+
"description": "An integration test onboards two tenants, tries the first tenant's credentials against the second's database and expects a refusal, then makes a request as the first tenant and checks pg_stat_activity of the second's database for connections from the application.\n\nThreshold: A tenant's credentials open only that tenant's database; a request of tenant A opens 0 connections to tenant B's database\n\nTool: Vitest with Testcontainers (PostgreSQL) and the node-postgres client\n\n```ts\nimport { Client } from 'pg'\nimport request from 'supertest'\nimport { app } from '../src/app'\nimport { catalogue } from '../src/tenants/catalogue'\nimport { onboard, seedTwoTenants } from './tenants'\n\nit('routes a tenant to its own database and nowhere else', async () => {\n const { a, b } = await seedTwoTenants()\n const crossed = new Client({ ...(await catalogue.connectionOf(b.tenantId)), ...(await catalogue.credentialsOf(a.tenantId)) })\n await expect(crossed.connect()).rejects.toMatchObject({ code: expect.stringMatching(/^(28P01|28000|3D000)$/) })\n await request(app).get('/orders').set('Authorization', `Bearer ${a.token}`).expect(200)\n const admin = new Client(await catalogue.adminConnectionOf(b.tenantId))\n await admin.connect()\n const { rows } = await admin.query(\"select count(*)::int as n from pg_stat_activity where datname = current_database() and application_name = 'order-api'\")\n expect(rows[0].n).toBe(0)\n await admin.end()\n})\n```",
|
|
934
|
+
"hubWhen": {
|
|
935
|
+
"ISOLATION": [
|
|
936
|
+
"database"
|
|
937
|
+
]
|
|
938
|
+
}
|
|
939
|
+
},
|
|
898
940
|
{
|
|
899
941
|
"id": "ff-tenant-migrations",
|
|
900
942
|
"type": "fitness-fn",
|
|
901
943
|
"label": "No tenant left behind",
|
|
902
944
|
"x": 1040,
|
|
903
|
-
"y":
|
|
904
|
-
"
|
|
905
|
-
"
|
|
906
|
-
"
|
|
945
|
+
"y": 780,
|
|
946
|
+
"characteristic": "reliability",
|
|
947
|
+
"scope": "atomic",
|
|
948
|
+
"cadence": "triggered",
|
|
949
|
+
"trigger": "nightly",
|
|
950
|
+
"invocation": "automated",
|
|
951
|
+
"description": "A scheduled job reads the schema version of every tenant from the tenant catalogue and fails, naming them, when any tenant is behind the latest migration once 24 hours have passed since the release that brought it (the release time comes from the pipeline, in RELEASED_AT); while the wave is still rolling, the job reports and passes.\n\nThreshold: 0 tenants on an older schema version 24 hours after a release\n\nTool: Flyway (flyway info per tenant schema or database) with psql and jq in a scheduled CI job; with Liquibase: liquibase status per target\n\n```bash\n#!/usr/bin/env bash\n# RELEASED_AT: epoch seconds of the release that carried the newest migration, written by the pipeline\nset -euo pipefail\nlatest=$(ls db/migration | grep -E '^V[0-9_.]+__' | sed -E 's/^V([0-9_.]+)__.*/\\1/' | tr _ . | sort -V | tail -1)\nsettled=$(( $(date +%s) - RELEASED_AT >= 86400 )) || true\nbehind=0\nfor tenant in $(psql \"$CATALOGUE_URL\" -Atc \"select id from tenants where active\"); do\n v=$(flyway -configFiles=\"tenants/$tenant.conf\" info -outputType=json | jq -r '.schemaVersion')\n if [ \"$v\" != \"$latest\" ]; then echo \"tenant $tenant on $v, latest $latest\"; behind=$((behind+1)); fi\ndone\nif [ \"$behind\" -gt 0 ] && [ \"$settled\" -eq 1 ]; then echo \"$behind tenants behind 24 hours after the release\"; exit 1; fi\necho \"$behind tenants behind, release $(( ($(date +%s) - RELEASED_AT) / 3600 )) hours old\"\n```",
|
|
907
952
|
"hubWhen": {
|
|
908
953
|
"ISOLATION": [
|
|
909
954
|
"schema",
|
|
@@ -916,10 +961,13 @@
|
|
|
916
961
|
"type": "fitness-fn",
|
|
917
962
|
"label": "Stacks share nothing",
|
|
918
963
|
"x": 1040,
|
|
919
|
-
"y":
|
|
920
|
-
"
|
|
921
|
-
"
|
|
922
|
-
"
|
|
964
|
+
"y": 910,
|
|
965
|
+
"characteristic": "security",
|
|
966
|
+
"scope": "atomic",
|
|
967
|
+
"cadence": "triggered",
|
|
968
|
+
"trigger": "pull-request",
|
|
969
|
+
"invocation": "automated",
|
|
970
|
+
"description": "A policy runs over every tenant stack's Terraform plan in CI and refuses any resource or policy that names an account other than the tenant's own or the shared tooling account.\n\nThreshold: 0 resources or access policies in a tenant stack that reference another tenant's account or resources\n\nTool: Conftest on the Terraform plan (AWS account ids; for Azure match subscription ids in resource ids, for Google Cloud project ids)\n\n```rego\npackage main\n\nimport rego.v1\n\nallowed_accounts := {input.variables.tenant_account_id.value, input.variables.tooling_account_id.value}\n\ndeny contains msg if {\n\tsome r in input.resource_changes\n\tsome account in regex.find_n(\"arn:aws:[a-z0-9-]+:[a-z0-9-]*:([0-9]{12})\", json.marshal(r.change.after), -1)\n\tid := substring(account, count(account) - 12, 12)\n\tnot allowed_accounts[id]\n\tmsg := sprintf(\"%s references account %s outside this tenant's stack\", [r.address, id])\n}\n```",
|
|
923
971
|
"hubWhen": {
|
|
924
972
|
"ISOLATION": [
|
|
925
973
|
"silo"
|
|
@@ -931,10 +979,13 @@
|
|
|
931
979
|
"type": "fitness-fn",
|
|
932
980
|
"label": "Bursts stay contained",
|
|
933
981
|
"x": 1040,
|
|
934
|
-
"y":
|
|
935
|
-
"
|
|
936
|
-
"
|
|
937
|
-
"
|
|
982
|
+
"y": 1040,
|
|
983
|
+
"characteristic": "performance-efficiency",
|
|
984
|
+
"scope": "holistic",
|
|
985
|
+
"cadence": "triggered",
|
|
986
|
+
"trigger": "nightly",
|
|
987
|
+
"invocation": "automated",
|
|
988
|
+
"description": "A load test in a staging environment runs a steady load for a quiet tenant and a burst at ten times the quota for a noisy one, and checks the quiet tenant's latency against its baseline and the share of the noisy tenant's requests that were throttled (above 50%, since 9 of 10 are over quota).\n\nThreshold: With one tenant at 10 × {{TENANT_RPS}} requests per second, the other tenants' p95 latency rises by less than 10% and more than half of the noisy tenant's requests get 429\n\nTool: k6\n\n```js\nimport http from 'k6/http'\nimport { Rate } from 'k6/metrics'\n\nconst throttled = new Rate('noisy_throttled')\n\nexport const options = {\n scenarios: {\n quiet: { executor: 'constant-arrival-rate', rate: 20, timeUnit: '1s', duration: '5m', preAllocatedVUs: 20, exec: 'quiet' },\n noisy: { executor: 'constant-arrival-rate', rate: 10 * {{TENANT_RPS}}, timeUnit: '1s', duration: '5m', preAllocatedVUs: 200, exec: 'noisy' },\n },\n thresholds: {\n 'http_req_duration{scenario:quiet}': [`p(95)<${1.1 * __ENV.BASELINE_P95_MS}`], // BASELINE_P95_MS: the quiet tenant's p95 without the burst\n noisy_throttled: ['rate>0.5'],\n },\n}\n\nexport function quiet() { http.get(`${__ENV.BASE}/orders`, { headers: { Authorization: `Bearer ${__ENV.QUIET_TOKEN}` } }) }\nexport function noisy() {\n const res = http.get(`${__ENV.BASE}/orders`, { headers: { Authorization: `Bearer ${__ENV.NOISY_TOKEN}` } })\n throttled.add(res.status === 429 && res.headers['Retry-After'] !== undefined)\n}\n```",
|
|
938
989
|
"hubWhen": {
|
|
939
990
|
"ISOLATION": [
|
|
940
991
|
"pool",
|
|
@@ -948,10 +999,12 @@
|
|
|
948
999
|
"type": "fitness-fn",
|
|
949
1000
|
"label": "Tenant share watched",
|
|
950
1001
|
"x": 1040,
|
|
951
|
-
"y":
|
|
952
|
-
"
|
|
953
|
-
"
|
|
954
|
-
"
|
|
1002
|
+
"y": 1170,
|
|
1003
|
+
"characteristic": "performance-efficiency",
|
|
1004
|
+
"scope": "atomic",
|
|
1005
|
+
"cadence": "continual",
|
|
1006
|
+
"invocation": "automated",
|
|
1007
|
+
"description": "An alerting rule over the per-tenant database time the application emits (db_query_seconds_total, a counter with tenant and pool labels, as the decision requires; no exporter provides it) raises a ticket for the tenant to be moved to dedicated capacity.\n\nThreshold: An alert within 1 hour of any tenant using more than 20% of a shared pool's capacity for 7 days\n\nTool: Prometheus alerting rules\n\n```yaml\ngroups:\n - name: tenant-capacity\n rules:\n - alert: TenantOutgrowsSharedPool\n expr: |\n sum by (tenant, pool) (rate(db_query_seconds_total{pool=~\"shared-.*\"}[7d]))\n / ignoring(tenant) group_left sum by (pool) (rate(db_query_seconds_total{pool=~\"shared-.*\"}[7d]))\n > 0.20\n for: 1h\n labels: { severity: ticket }\n annotations:\n summary: \"Tenant {{ $labels.tenant }} uses over 20% of {{ $labels.pool }}: propose dedicated capacity\"\n```",
|
|
955
1008
|
"hubWhen": {
|
|
956
1009
|
"ISOLATION": [
|
|
957
1010
|
"pool",
|
|
@@ -968,10 +1021,13 @@
|
|
|
968
1021
|
"type": "fitness-fn",
|
|
969
1022
|
"label": "Keys open one tenant",
|
|
970
1023
|
"x": 1040,
|
|
971
|
-
"y":
|
|
972
|
-
"
|
|
973
|
-
"
|
|
974
|
-
"
|
|
1024
|
+
"y": 1300,
|
|
1025
|
+
"characteristic": "security",
|
|
1026
|
+
"scope": "atomic",
|
|
1027
|
+
"cadence": "triggered",
|
|
1028
|
+
"trigger": "pull-request",
|
|
1029
|
+
"invocation": "automated",
|
|
1030
|
+
"description": "An integration test goes through the application's envelope layer, not the key service directly: it writes a record for tenant A, reads the stored ciphertext and checks its encryption context names A, tries to decrypt it as tenant B, then schedules A's key for deletion and tries to decrypt A's copy again (a local key service honours a disabled or pending-deletion key at once).\n\nThreshold: 0 successful decryptions of a tenant's data through another tenant's key or context, 0 stored ciphertexts whose encryption context names another tenant, and 0 successful decryptions after the tenant's key is deleted\n\nTool: Vitest with LocalStack (KMS) behind the application's envelope layer; with Vault Transit or Azure Key Vault emulators the same test, the key service swapped\n\n```ts\nimport { KMSClient, ScheduleKeyDeletionCommand } from '@aws-sdk/client-kms'\nimport { envelope } from '../src/crypto/envelope' // the application's layer: encryptFor(tenant, ...), decryptFor(tenant, ...)\nimport { orders } from '../src/stores/orders'\nimport { seedTwoTenants } from './tenants'\n\nconst kms = new KMSClient({ endpoint: 'http://localhost:4566', region: 'eu-central-1' })\n\nit('decrypts a tenant\\'s data for that tenant only, and not after its key is gone', async () => {\n const { a, b } = await seedTwoTenants()\n const id = await orders.create(a.tenantId, { customer: 'secret of A' })\n const raw = await orders.rawRow(id) // ciphertext and its encryption context, as a backup would hold them\n expect(raw.encryptionContext).toEqual({ tenant: a.tenantId })\n await expect(envelope.decryptFor(b.tenantId, raw.ciphertext)).rejects.toThrow()\n expect((await envelope.decryptFor(a.tenantId, raw.ciphertext)).customer).toBe('secret of A')\n await kms.send(new ScheduleKeyDeletionCommand({ KeyId: a.keyId, PendingWindowInDays: 7 }))\n envelope.dropCachedKeys()\n await expect(envelope.decryptFor(a.tenantId, raw.ciphertext)).rejects.toThrow()\n})\n```",
|
|
975
1031
|
"hubWhen": {
|
|
976
1032
|
"ISOLATION": [
|
|
977
1033
|
"pool",
|
|
@@ -990,10 +1046,13 @@
|
|
|
990
1046
|
"type": "fitness-fn",
|
|
991
1047
|
"label": "Revoked key stops access",
|
|
992
1048
|
"x": 1040,
|
|
993
|
-
"y":
|
|
994
|
-
"
|
|
995
|
-
"
|
|
996
|
-
"
|
|
1049
|
+
"y": 1430,
|
|
1050
|
+
"characteristic": "security",
|
|
1051
|
+
"scope": "atomic",
|
|
1052
|
+
"cadence": "triggered",
|
|
1053
|
+
"trigger": "pull-request",
|
|
1054
|
+
"invocation": "automated",
|
|
1055
|
+
"description": "An integration test disables a tenant's key in a local key management service, polls a read and a write of its data until they fail (failing itself past 5 minutes), and checks the notification outbox.\n\nThreshold: Reads and writes of a tenant's data fail within 5 minutes of its key being disabled, and the tenant's administrators get 1 notification\n\nTool: Vitest with LocalStack (KMS), the notification sender captured by the test harness\n\n```ts\nimport { KMSClient, DisableKeyCommand } from '@aws-sdk/client-kms'\nimport { api, notifications, seedCustomerKeyTenant } from './tenants'\n\nconst kms = new KMSClient({ endpoint: 'http://localhost:4566', region: 'eu-central-1' })\n\nit('stops serving a tenant within 5 minutes of its key being disabled', async () => {\n const tenant = await seedCustomerKeyTenant() // its key lives in the local key service\n const orderId = await api.as(tenant).createOrder({ customer: 'x' })\n await kms.send(new DisableKeyCommand({ KeyId: tenant.keyId }))\n const started = Date.now()\n while ((await api.as(tenant).readOrder(orderId)).ok || (await api.as(tenant).createOrder({ customer: 'y' }).catch(() => ({ ok: false }))).ok) {\n expect(Date.now() - started).toBeLessThan(5 * 60_000)\n await new Promise((r) => setTimeout(r, 10_000))\n }\n expect(await notifications.sentTo(tenant.adminEmail, 'key-revoked')).toHaveLength(1)\n}, 6 * 60_000)\n```",
|
|
997
1056
|
"hubWhen": {
|
|
998
1057
|
"ISOLATION": [
|
|
999
1058
|
"pool",
|
|
@@ -1007,23 +1066,23 @@
|
|
|
1007
1066
|
}
|
|
1008
1067
|
},
|
|
1009
1068
|
{
|
|
1010
|
-
"id": "ff-
|
|
1069
|
+
"id": "ff-offboard",
|
|
1011
1070
|
"type": "fitness-fn",
|
|
1012
|
-
"label": "
|
|
1071
|
+
"label": "Offboarded tenant gone",
|
|
1013
1072
|
"x": 1040,
|
|
1014
|
-
"y":
|
|
1015
|
-
"
|
|
1016
|
-
"
|
|
1017
|
-
"
|
|
1073
|
+
"y": 1560,
|
|
1074
|
+
"characteristic": "security",
|
|
1075
|
+
"scope": "atomic",
|
|
1076
|
+
"cadence": "triggered",
|
|
1077
|
+
"trigger": "pull-request",
|
|
1078
|
+
"invocation": "automated",
|
|
1079
|
+
"description": "An integration test onboards a tenant, seeds data in every store the deployment has, runs the offboarding routine with the export period set to zero for the test, searches every store, cache and index for the tenant id, and reads the certificate; where a key per tenant is used, it also expects the key to be pending deletion.\n\nThreshold: After the offboarding routine, 0 of the tenant's records in any live store, cache or search index, 1 deletion certificate issued that states when the last backup copy is gone\n\nTool: Vitest with Testcontainers (the stores, cache and search index of the deployment)\n\n```ts\nimport { offboarding } from '../src/tenants/offboarding'\nimport { stores } from './tenants/stores' // every store, cache and index of the deployment, each with anyOf(tenantId)\nimport { onboard, seedEverywhere } from './tenants'\n\nit('leaves nothing of a tenant in the live stores and certifies when the copies are gone', async () => {\n const tenant = await onboard({ name: 'leaving' })\n await seedEverywhere(tenant)\n const certificate = await offboarding.run(tenant.id, { exportPeriodDays: 0 })\n for (const store of stores) expect(await store.anyOf(tenant.id)).toBe(false)\n expect(certificate).toMatchObject({ tenantId: tenant.id, liveStoresErasedAt: expect.any(Date), lastCopyGoneBy: expect.any(Date) })\n expect(certificate.lastCopyGoneBy.getTime()).toBeGreaterThanOrEqual(certificate.liveStoresErasedAt.getTime())\n})\n```",
|
|
1018
1080
|
"hubWhen": {
|
|
1019
1081
|
"ISOLATION": [
|
|
1020
1082
|
"pool",
|
|
1021
1083
|
"schema",
|
|
1022
1084
|
"database",
|
|
1023
1085
|
"silo"
|
|
1024
|
-
],
|
|
1025
|
-
"KEYS": [
|
|
1026
|
-
"shared"
|
|
1027
1086
|
]
|
|
1028
1087
|
}
|
|
1029
1088
|
},
|
|
@@ -1032,10 +1091,13 @@
|
|
|
1032
1091
|
"type": "fitness-fn",
|
|
1033
1092
|
"label": "Exactly one organisation",
|
|
1034
1093
|
"x": 1040,
|
|
1035
|
-
"y":
|
|
1036
|
-
"
|
|
1037
|
-
"
|
|
1038
|
-
"
|
|
1094
|
+
"y": 1690,
|
|
1095
|
+
"characteristic": "security",
|
|
1096
|
+
"scope": "atomic",
|
|
1097
|
+
"cadence": "triggered",
|
|
1098
|
+
"trigger": "pull-request",
|
|
1099
|
+
"invocation": "automated",
|
|
1100
|
+
"description": "A database test runs after the migrations in CI: it counts the organisations and tries to insert a second one, which the check constraint on the single-row table must refuse with a check violation, not any other error.\n\nThreshold: Exactly 1 organisation in the database, and inserting a second violates the single-row constraint (SQLSTATE 23514)\n\nTool: pgTAP (run with pg_prove)\n\n```sql\nBEGIN;\nSELECT plan(2);\n\nSELECT is((SELECT count(*) FROM organisation), 1::bigint, 'exactly one organisation');\n\n-- organisation has CHECK (singleton) on a column singleton boolean DEFAULT true with UNIQUE (singleton)\n-- ... or, as here, CHECK (id = 1) on the only row\nSELECT throws_ok(\n $$ INSERT INTO organisation (id, name) VALUES (2, 'Second') $$,\n '23514', NULL, 'a second organisation is refused by the check constraint'\n);\n\nSELECT * FROM finish();\nROLLBACK;\n```",
|
|
1039
1101
|
"hubWhen": {
|
|
1040
1102
|
"ISOLATION": [
|
|
1041
1103
|
"single"
|
|
@@ -1110,12 +1172,6 @@
|
|
|
1110
1172
|
"targetId": "need",
|
|
1111
1173
|
"relationType": "derives"
|
|
1112
1174
|
},
|
|
1113
|
-
{
|
|
1114
|
-
"id": "req-platform-keys--derives--need",
|
|
1115
|
-
"sourceId": "req-platform-keys",
|
|
1116
|
-
"targetId": "need",
|
|
1117
|
-
"relationType": "derives"
|
|
1118
|
-
},
|
|
1119
1175
|
{
|
|
1120
1176
|
"id": "req-offboard--derives--need",
|
|
1121
1177
|
"sourceId": "req-offboard",
|
|
@@ -1194,12 +1250,6 @@
|
|
|
1194
1250
|
"targetId": "req-byok-revoke",
|
|
1195
1251
|
"relationType": "verifies"
|
|
1196
1252
|
},
|
|
1197
|
-
{
|
|
1198
|
-
"id": "sc-platform-keys--verifies--req-platform-keys",
|
|
1199
|
-
"sourceId": "sc-platform-keys",
|
|
1200
|
-
"targetId": "req-platform-keys",
|
|
1201
|
-
"relationType": "verifies"
|
|
1202
|
-
},
|
|
1203
1253
|
{
|
|
1204
1254
|
"id": "sc-offboard--verifies--req-offboard",
|
|
1205
1255
|
"sourceId": "sc-offboard",
|
|
@@ -1230,12 +1280,60 @@
|
|
|
1230
1280
|
"targetId": "adr-database",
|
|
1231
1281
|
"relationType": "implements"
|
|
1232
1282
|
},
|
|
1283
|
+
{
|
|
1284
|
+
"id": "ff-tenant-context--implements--adr-pool",
|
|
1285
|
+
"sourceId": "ff-tenant-context",
|
|
1286
|
+
"targetId": "adr-pool",
|
|
1287
|
+
"relationType": "implements"
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
"id": "ff-tenant-context--implements--adr-schema",
|
|
1291
|
+
"sourceId": "ff-tenant-context",
|
|
1292
|
+
"targetId": "adr-schema",
|
|
1293
|
+
"relationType": "implements"
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
"id": "ff-tenant-context--implements--adr-database",
|
|
1297
|
+
"sourceId": "ff-tenant-context",
|
|
1298
|
+
"targetId": "adr-database",
|
|
1299
|
+
"relationType": "implements"
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
"id": "ff-cross-tenant-alert--implements--adr-pool",
|
|
1303
|
+
"sourceId": "ff-cross-tenant-alert",
|
|
1304
|
+
"targetId": "adr-pool",
|
|
1305
|
+
"relationType": "implements"
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
"id": "ff-cross-tenant-alert--implements--adr-schema",
|
|
1309
|
+
"sourceId": "ff-cross-tenant-alert",
|
|
1310
|
+
"targetId": "adr-schema",
|
|
1311
|
+
"relationType": "implements"
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
"id": "ff-cross-tenant-alert--implements--adr-database",
|
|
1315
|
+
"sourceId": "ff-cross-tenant-alert",
|
|
1316
|
+
"targetId": "adr-database",
|
|
1317
|
+
"relationType": "implements"
|
|
1318
|
+
},
|
|
1233
1319
|
{
|
|
1234
1320
|
"id": "ff-rls--implements--adr-pool",
|
|
1235
1321
|
"sourceId": "ff-rls",
|
|
1236
1322
|
"targetId": "adr-pool",
|
|
1237
1323
|
"relationType": "implements"
|
|
1238
1324
|
},
|
|
1325
|
+
{
|
|
1326
|
+
"id": "ff-schema-roles--implements--adr-schema",
|
|
1327
|
+
"sourceId": "ff-schema-roles",
|
|
1328
|
+
"targetId": "adr-schema",
|
|
1329
|
+
"relationType": "implements"
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
"id": "ff-database-credentials--implements--adr-database",
|
|
1333
|
+
"sourceId": "ff-database-credentials",
|
|
1334
|
+
"targetId": "adr-database",
|
|
1335
|
+
"relationType": "implements"
|
|
1336
|
+
},
|
|
1239
1337
|
{
|
|
1240
1338
|
"id": "ff-tenant-migrations--implements--adr-schema",
|
|
1241
1339
|
"sourceId": "ff-tenant-migrations",
|
|
@@ -1291,8 +1389,44 @@
|
|
|
1291
1389
|
"relationType": "implements"
|
|
1292
1390
|
},
|
|
1293
1391
|
{
|
|
1294
|
-
"id": "ff-
|
|
1295
|
-
"sourceId": "ff-
|
|
1392
|
+
"id": "ff-offboard--implements--adr-pool",
|
|
1393
|
+
"sourceId": "ff-offboard",
|
|
1394
|
+
"targetId": "adr-pool",
|
|
1395
|
+
"relationType": "implements"
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
"id": "ff-offboard--implements--adr-schema",
|
|
1399
|
+
"sourceId": "ff-offboard",
|
|
1400
|
+
"targetId": "adr-schema",
|
|
1401
|
+
"relationType": "implements"
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"id": "ff-offboard--implements--adr-database",
|
|
1405
|
+
"sourceId": "ff-offboard",
|
|
1406
|
+
"targetId": "adr-database",
|
|
1407
|
+
"relationType": "implements"
|
|
1408
|
+
},
|
|
1409
|
+
{
|
|
1410
|
+
"id": "ff-offboard--implements--adr-silo",
|
|
1411
|
+
"sourceId": "ff-offboard",
|
|
1412
|
+
"targetId": "adr-silo",
|
|
1413
|
+
"relationType": "implements"
|
|
1414
|
+
},
|
|
1415
|
+
{
|
|
1416
|
+
"id": "ff-offboard--implements--adr-tenant-keys",
|
|
1417
|
+
"sourceId": "ff-offboard",
|
|
1418
|
+
"targetId": "adr-tenant-keys",
|
|
1419
|
+
"relationType": "implements"
|
|
1420
|
+
},
|
|
1421
|
+
{
|
|
1422
|
+
"id": "ff-offboard--implements--adr-customer-keys",
|
|
1423
|
+
"sourceId": "ff-offboard",
|
|
1424
|
+
"targetId": "adr-customer-keys",
|
|
1425
|
+
"relationType": "implements"
|
|
1426
|
+
},
|
|
1427
|
+
{
|
|
1428
|
+
"id": "ff-offboard--implements--adr-platform-keys",
|
|
1429
|
+
"sourceId": "ff-offboard",
|
|
1296
1430
|
"targetId": "adr-platform-keys",
|
|
1297
1431
|
"relationType": "implements"
|
|
1298
1432
|
},
|