@radicaltools/mcp 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -23
- package/dist/{chunk-OGN3UW2D.js → chunk-Z7THA3L5.js} +670 -64
- package/dist/{elkLayout-S62RLGTO.js → elkLayout-TAUBPPVN.js} +1 -1
- package/dist/hub-catalogue/concern/concern-api-evolution.radical +935 -0
- package/dist/hub-catalogue/concern/concern-architecture-style.radical +1112 -0
- package/dist/hub-catalogue/concern/concern-authentication.radical +685 -0
- package/dist/hub-catalogue/concern/concern-authorization.radical +1464 -0
- package/dist/hub-catalogue/concern/concern-availability.radical +804 -0
- package/dist/hub-catalogue/concern/concern-backend-stack.radical +1118 -0
- package/dist/hub-catalogue/concern/concern-backup-recovery.radical +1304 -0
- package/dist/hub-catalogue/concern/concern-capacity.radical +802 -0
- package/dist/hub-catalogue/concern/concern-communication-style.radical +1202 -0
- package/dist/hub-catalogue/concern/concern-data-consistency.radical +1081 -0
- package/dist/hub-catalogue/concern/concern-data-store.radical +960 -0
- package/dist/hub-catalogue/concern/concern-decomposition.radical +1143 -0
- package/dist/hub-catalogue/concern/concern-deployment.radical +952 -0
- package/dist/hub-catalogue/concern/concern-encryption.radical +1055 -0
- package/dist/hub-catalogue/concern/concern-frontend-stack.radical +1340 -0
- package/dist/hub-catalogue/concern/concern-infrastructure.radical +1151 -0
- package/dist/hub-catalogue/concern/concern-integration-resilience.radical +1079 -0
- package/dist/hub-catalogue/concern/concern-messaging.radical +940 -0
- package/dist/hub-catalogue/concern/concern-module-boundaries.radical +864 -0
- package/dist/hub-catalogue/concern/concern-observability.radical +1048 -0
- package/dist/hub-catalogue/concern/concern-personal-data.radical +1434 -0
- package/dist/hub-catalogue/concern/concern-rate-limiting.radical +1153 -0
- package/dist/hub-catalogue/concern/concern-secrets.radical +1026 -0
- package/dist/hub-catalogue/concern/concern-supply-chain.radical +1312 -0
- package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +1306 -0
- package/dist/hub-catalogue/concern/concern-test-strategy.radical +1193 -0
- package/dist/index.js +9440 -3854
- package/package.json +1 -1
- package/dist/hub-catalogue/adr/adr-api-versioning.radical +0 -53
- package/dist/hub-catalogue/adr/adr-auth-strategy.radical +0 -53
- package/dist/hub-catalogue/adr/adr-caching-strategy.radical +0 -59
- package/dist/hub-catalogue/adr/adr-data-consistency-model.radical +0 -40
- package/dist/hub-catalogue/adr/adr-data-store.radical +0 -47
- package/dist/hub-catalogue/adr/adr-deployment-strategy.radical +0 -53
- package/dist/hub-catalogue/adr/adr-event-schema-evolution.radical +0 -53
- package/dist/hub-catalogue/adr/adr-integration-style.radical +0 -50
- package/dist/hub-catalogue/adr/adr-ledger-reconciliation-strategy.radical +0 -38
- package/dist/hub-catalogue/adr/adr-llm-provider-strategy.radical +0 -40
- package/dist/hub-catalogue/adr/adr-marketplace-payments-model.radical +0 -39
- package/dist/hub-catalogue/adr/adr-multi-region.radical +0 -60
- package/dist/hub-catalogue/adr/adr-multi-tenancy-strategy.radical +0 -41
- package/dist/hub-catalogue/adr/adr-observability.radical +0 -59
- package/dist/hub-catalogue/adr/adr-realtime-transport.radical +0 -38
- package/dist/hub-catalogue/adr/adr-tech-stack.radical +0 -45
- package/dist/hub-catalogue/adr/adr-zero-trust-network.radical +0 -40
- package/dist/hub-catalogue/blueprint/bp-ai-assistant-platform.radical +0 -1641
- package/dist/hub-catalogue/blueprint/bp-analytical-data-platform.radical +0 -1428
- package/dist/hub-catalogue/blueprint/bp-ecommerce-platform.radical +0 -1989
- package/dist/hub-catalogue/blueprint/bp-fintech-ledger-platform.radical +0 -1701
- package/dist/hub-catalogue/blueprint/bp-marketplace-platform.radical +0 -1792
- package/dist/hub-catalogue/blueprint/bp-realtime-collaboration.radical +0 -1421
- package/dist/hub-catalogue/blueprint/bp-saas-b2b-platform.radical +0 -1713
- package/dist/hub-catalogue/fitness-function/ff-accessibility-scan.radical +0 -34
- package/dist/hub-catalogue/fitness-function/ff-ai-eval-gate.radical +0 -52
- package/dist/hub-catalogue/fitness-function/ff-api-contract.radical +0 -36
- package/dist/hub-catalogue/fitness-function/ff-capacity-load-test.radical +0 -67
- package/dist/hub-catalogue/fitness-function/ff-carbon-footprint-guard.radical +0 -62
- package/dist/hub-catalogue/fitness-function/ff-change-failure-rate.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-chaos-resilience-test.radical +0 -53
- package/dist/hub-catalogue/fitness-function/ff-cost-efficiency-guard.radical +0 -64
- package/dist/hub-catalogue/fitness-function/ff-coupling-guard.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-data-integrity-check.radical +0 -51
- package/dist/hub-catalogue/fitness-function/ff-data-residency.radical +0 -43
- package/dist/hub-catalogue/fitness-function/ff-dependency-rules.radical +0 -37
- package/dist/hub-catalogue/fitness-function/ff-deploy-frequency.radical +0 -46
- package/dist/hub-catalogue/fitness-function/ff-dr-drill-success.radical +0 -52
- package/dist/hub-catalogue/fitness-function/ff-duplication-guard.radical +0 -53
- package/dist/hub-catalogue/fitness-function/ff-error-budget.radical +0 -59
- package/dist/hub-catalogue/fitness-function/ff-fail-safe-verification.radical +0 -34
- package/dist/hub-catalogue/fitness-function/ff-infra-drift.radical +0 -34
- package/dist/hub-catalogue/fitness-function/ff-latency-slo.radical +0 -59
- package/dist/hub-catalogue/fitness-function/ff-lead-time.radical +0 -44
- package/dist/hub-catalogue/fitness-function/ff-ledger-balance-integrity.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-license-compliance.radical +0 -43
- package/dist/hub-catalogue/fitness-function/ff-mttr.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-noisy-neighbor-guard.radical +0 -66
- package/dist/hub-catalogue/fitness-function/ff-sast-scan.radical +0 -35
- package/dist/hub-catalogue/fitness-function/ff-scale-out-verification.radical +0 -66
- package/dist/hub-catalogue/fitness-function/ff-security-scan.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-startup-shutdown-check.radical +0 -66
- package/dist/hub-catalogue/fitness-function/ff-sync-convergence-test.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-test-coverage.radical +0 -43
- package/dist/hub-catalogue/fitness-function/ff-web-vitals.radical +0 -57
- package/dist/hub-catalogue/pattern/pattern-anti-corruption-layer.radical +0 -88
- package/dist/hub-catalogue/pattern/pattern-api-gateway.radical +0 -168
- package/dist/hub-catalogue/pattern/pattern-bff.radical +0 -179
- package/dist/hub-catalogue/pattern/pattern-bulkhead.radical +0 -114
- package/dist/hub-catalogue/pattern/pattern-circuit-breaker.radical +0 -219
- package/dist/hub-catalogue/pattern/pattern-cqrs.radical +0 -195
- package/dist/hub-catalogue/pattern/pattern-crdt-sync.radical +0 -200
- package/dist/hub-catalogue/pattern/pattern-event-driven.radical +0 -210
- package/dist/hub-catalogue/pattern/pattern-event-sourced-ledger.radical +0 -211
- package/dist/hub-catalogue/pattern/pattern-hexagonal.radical +0 -196
- package/dist/hub-catalogue/pattern/pattern-microservices.radical +0 -262
- package/dist/hub-catalogue/pattern/pattern-rag-pipeline.radical +0 -213
- package/dist/hub-catalogue/pattern/pattern-rate-limiter.radical +0 -114
- package/dist/hub-catalogue/pattern/pattern-saga.radical +0 -208
- package/dist/hub-catalogue/pattern/pattern-sidecar.radical +0 -123
- package/dist/hub-catalogue/pattern/pattern-strangler-fig.radical +0 -227
- package/dist/hub-catalogue/pattern/pattern-transactional-outbox.radical +0 -209
- package/dist/hub-catalogue/requirement/req-accessibility.radical +0 -48
- package/dist/hub-catalogue/requirement/req-ai-autonomous-resolution.radical +0 -51
- package/dist/hub-catalogue/requirement/req-ai-groundedness.radical +0 -45
- package/dist/hub-catalogue/requirement/req-ai-human-handoff.radical +0 -46
- package/dist/hub-catalogue/requirement/req-alerting.radical +0 -52
- package/dist/hub-catalogue/requirement/req-api-response-time.radical +0 -51
- package/dist/hub-catalogue/requirement/req-api-standard.radical +0 -45
- package/dist/hub-catalogue/requirement/req-audit-logging.radical +0 -43
- package/dist/hub-catalogue/requirement/req-auth-response-time.radical +0 -45
- package/dist/hub-catalogue/requirement/req-auth.radical +0 -43
- package/dist/hub-catalogue/requirement/req-autoscaling.radical +0 -62
- package/dist/hub-catalogue/requirement/req-availability.radical +0 -50
- package/dist/hub-catalogue/requirement/req-backward-compatibility.radical +0 -46
- package/dist/hub-catalogue/requirement/req-batch-job-completion.radical +0 -50
- package/dist/hub-catalogue/requirement/req-carbon-efficiency.radical +0 -64
- package/dist/hub-catalogue/requirement/req-centralised-logging.radical +0 -45
- package/dist/hub-catalogue/requirement/req-ci-pipeline-time.radical +0 -43
- package/dist/hub-catalogue/requirement/req-code-complexity.radical +0 -43
- package/dist/hub-catalogue/requirement/req-config-propagation.radical +0 -45
- package/dist/hub-catalogue/requirement/req-data-integrity.radical +0 -35
- package/dist/hub-catalogue/requirement/req-data-retention.radical +0 -44
- package/dist/hub-catalogue/requirement/req-db-query-response.radical +0 -44
- package/dist/hub-catalogue/requirement/req-disaster-recovery.radical +0 -59
- package/dist/hub-catalogue/requirement/req-distributed-tracing.radical +0 -45
- package/dist/hub-catalogue/requirement/req-encryption.radical +0 -49
- package/dist/hub-catalogue/requirement/req-error-rate.radical +0 -45
- package/dist/hub-catalogue/requirement/req-error-recovery.radical +0 -34
- package/dist/hub-catalogue/requirement/req-event-schema-compatibility.radical +0 -37
- package/dist/hub-catalogue/requirement/req-fail-safe-default.radical +0 -55
- package/dist/hub-catalogue/requirement/req-fast-startup-graceful-shutdown.radical +0 -69
- package/dist/hub-catalogue/requirement/req-gdpr-erasure.radical +0 -44
- package/dist/hub-catalogue/requirement/req-graceful-degradation.radical +0 -39
- package/dist/hub-catalogue/requirement/req-health-checks.radical +0 -43
- package/dist/hub-catalogue/requirement/req-iac.radical +0 -36
- package/dist/hub-catalogue/requirement/req-idempotency.radical +0 -47
- package/dist/hub-catalogue/requirement/req-input-validation.radical +0 -37
- package/dist/hub-catalogue/requirement/req-least-privilege.radical +0 -47
- package/dist/hub-catalogue/requirement/req-ledger-immutability.radical +0 -38
- package/dist/hub-catalogue/requirement/req-mfa.radical +0 -36
- package/dist/hub-catalogue/requirement/req-ml-extraction-accuracy.radical +0 -42
- package/dist/hub-catalogue/requirement/req-onboarding-time.radical +0 -42
- package/dist/hub-catalogue/requirement/req-page-load-time.radical +0 -59
- package/dist/hub-catalogue/requirement/req-payout-latency.radical +0 -46
- package/dist/hub-catalogue/requirement/req-presence-latency.radical +0 -46
- package/dist/hub-catalogue/requirement/req-rate-limiting.radical +0 -45
- package/dist/hub-catalogue/requirement/req-report-generation.radical +0 -44
- package/dist/hub-catalogue/requirement/req-resource-efficiency.radical +0 -64
- package/dist/hub-catalogue/requirement/req-resource-headroom.radical +0 -53
- package/dist/hub-catalogue/requirement/req-resource-isolation.radical +0 -37
- package/dist/hub-catalogue/requirement/req-search-response-time.radical +0 -44
- package/dist/hub-catalogue/requirement/req-secrets-management.radical +0 -45
- package/dist/hub-catalogue/requirement/req-task-success-rate.radical +0 -42
- package/dist/hub-catalogue/requirement/req-test-coverage.radical +0 -42
- package/dist/hub-catalogue/requirement/req-throughput.radical +0 -55
- package/dist/hub-catalogue/requirement/req-vulnerability-scanning.radical +0 -52
- package/dist/hub-catalogue/requirement/req-zero-downtime-deploy.radical +0 -39
|
@@ -0,0 +1,1306 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "concern-tenant-isolation",
|
|
4
|
+
"category": "concern",
|
|
5
|
+
"name": "Tenant isolation",
|
|
6
|
+
"description": "How one customer organisation's data and load stay apart from another's: where tenants are separated, how a noisy neighbour is held back, whose keys encrypt the data, and how a tenant leaves.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"security",
|
|
9
|
+
"multi-tenancy",
|
|
10
|
+
"saas",
|
|
11
|
+
"isolation",
|
|
12
|
+
"row-level-security",
|
|
13
|
+
"encryption"
|
|
14
|
+
],
|
|
15
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
16
|
+
"concern": {
|
|
17
|
+
"id": "tenant-isolation",
|
|
18
|
+
"trigger": "LIST RELATIONS WHERE target.type = \"database\" AND target.external != true AND source.external != true AND source.type != \"person\"",
|
|
19
|
+
"applyTo": "target",
|
|
20
|
+
"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": "identity"
|
|
22
|
+
},
|
|
23
|
+
"sources": [
|
|
24
|
+
{
|
|
25
|
+
"title": "AWS Well-Architected SaaS Lens: silo, pool and bridge isolation",
|
|
26
|
+
"url": "https://docs.aws.amazon.com/wellarchitected/latest/saas-lens/saas-lens.html"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"title": "Azure Architecture Center: Architect multitenant solutions",
|
|
30
|
+
"url": "https://learn.microsoft.com/en-us/azure/architecture/guide/multitenant/overview"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"title": "PostgreSQL documentation: Row Security Policies",
|
|
34
|
+
"url": "https://www.postgresql.org/docs/current/ddl-rowsecurity.html"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"title": "OWASP ASVS 4.0.3, V4 Access Control",
|
|
38
|
+
"url": "https://owasp.org/www-project-application-security-verification-standard/"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"title": "NIST SP 800-57 Part 1 Rev. 5, Recommendation for Key Management",
|
|
42
|
+
"url": "https://csrc.nist.gov/pubs/sp/800/57/pt1/r5/final"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"templateParams": [
|
|
46
|
+
{
|
|
47
|
+
"key": "ISOLATION",
|
|
48
|
+
"title": "Isolation",
|
|
49
|
+
"label": "How are tenants kept apart?",
|
|
50
|
+
"hint": "The more tenants share, the cheaper each is to run and the further one missed filter reaches. Most systems pool small tenants and give large or regulated ones more.",
|
|
51
|
+
"defaultValue": "pool",
|
|
52
|
+
"options": [
|
|
53
|
+
{
|
|
54
|
+
"value": "pool",
|
|
55
|
+
"label": "shared schema with row-level security",
|
|
56
|
+
"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
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"value": "schema",
|
|
60
|
+
"label": "a schema per tenant",
|
|
61
|
+
"description": "One database, one schema per tenant with its own database role. Pick it for tens to a few hundred tenants who want a clean export and per-tenant restore, without a database each."
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"value": "database",
|
|
65
|
+
"label": "a database per tenant",
|
|
66
|
+
"description": "Each tenant gets its own database (or cluster) with its own credentials, the application shared. Pick it for fewer, larger tenants, per-tenant backup and restore, data residency per tenant, or contracts that ask for it."
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"value": "silo",
|
|
70
|
+
"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."
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"value": "single",
|
|
75
|
+
"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."
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"key": "NOISY",
|
|
82
|
+
"title": "Noisy neighbours",
|
|
83
|
+
"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.",
|
|
85
|
+
"defaultValue": "quotas",
|
|
86
|
+
"options": [
|
|
87
|
+
{
|
|
88
|
+
"value": "quotas",
|
|
89
|
+
"label": "per-tenant quotas",
|
|
90
|
+
"description": "Every tenant has limits on requests per second, concurrent queries and background jobs, enforced at the gateway and the job queue. Pick it when tenants are of similar size and on the same plan."
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"value": "tiered",
|
|
94
|
+
"label": "quotas and dedicated capacity",
|
|
95
|
+
"description": "Quotas for everyone, and tenants that outgrow a share of the pool are moved to dedicated capacity (their own database or nodes) under a premium tier. Pick it when a few tenants are much larger than the rest, or larger tenants pay for guaranteed capacity."
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"key": "KEYS",
|
|
101
|
+
"title": "Encryption keys",
|
|
102
|
+
"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.",
|
|
104
|
+
"defaultValue": "tenant",
|
|
105
|
+
"options": [
|
|
106
|
+
{
|
|
107
|
+
"value": "tenant",
|
|
108
|
+
"label": "a key per tenant",
|
|
109
|
+
"description": "Each tenant's data is encrypted with its own key in the platform's key management service, so deleting the key erases the tenant (crypto-shredding). Pick it when tenants hold personal or confidential data, or you must prove deletion when a tenant leaves."
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"value": "customer",
|
|
113
|
+
"label": "customer-managed keys",
|
|
114
|
+
"description": "Tenants hold their own keys in their own key management service (bring your own key) and can revoke our access at any time. Pick it for enterprise or regulated customers who require control of their keys."
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"value": "shared",
|
|
118
|
+
"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."
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"key": "TENANT_RPS",
|
|
125
|
+
"label": "Requests per second one tenant may make",
|
|
126
|
+
"defaultValue": "100",
|
|
127
|
+
"type": "number"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"key": "OFFBOARD_DAYS",
|
|
131
|
+
"label": "Days within which a leaving tenant's data is erased",
|
|
132
|
+
"defaultValue": "30",
|
|
133
|
+
"type": "number"
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
"nodes": [
|
|
138
|
+
{
|
|
139
|
+
"id": "need",
|
|
140
|
+
"type": "need",
|
|
141
|
+
"label": "Tenants never see each other",
|
|
142
|
+
"x": 0,
|
|
143
|
+
"y": 0,
|
|
144
|
+
"kind": "brief",
|
|
145
|
+
"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."
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"id": "req-tenant-context",
|
|
150
|
+
"type": "requirement",
|
|
151
|
+
"label": "Tenant from the credential",
|
|
152
|
+
"x": 260,
|
|
153
|
+
"y": 0,
|
|
154
|
+
"ears_type": "ubiquitous",
|
|
155
|
+
"action": "take the tenant of every request only from the authenticated credential, never from a parameter, header or body the caller sets, and carry it to every query, cache key, file path, message and log line the request leads to",
|
|
156
|
+
"rationale": "A tenant id the caller can set is an open door; one cache key or object path without it is a cross-tenant leak (ASVS V4.2.1; AWS SaaS Lens, tenant context).",
|
|
157
|
+
"hubWhen": {
|
|
158
|
+
"ISOLATION": [
|
|
159
|
+
"pool",
|
|
160
|
+
"schema",
|
|
161
|
+
"database",
|
|
162
|
+
"silo"
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"id": "req-cross-tenant",
|
|
168
|
+
"type": "requirement",
|
|
169
|
+
"label": "Other tenants' data unseen",
|
|
170
|
+
"x": 260,
|
|
171
|
+
"y": 130,
|
|
172
|
+
"ears_type": "unwanted-behaviour",
|
|
173
|
+
"unwanted_condition": "a request names a record, file or key that belongs to another tenant",
|
|
174
|
+
"action": "answer 404 as if it did not exist, return and change nothing of it, and record the attempt as a security event, alerting on more than 10 in an hour from one tenant",
|
|
175
|
+
"rationale": "The answer must not confirm that the record exists, and attempts to cross the boundary are a signal (OWASP API1:2023; ASVS V4.2.1).",
|
|
176
|
+
"hubWhen": {
|
|
177
|
+
"ISOLATION": [
|
|
178
|
+
"pool",
|
|
179
|
+
"schema",
|
|
180
|
+
"database",
|
|
181
|
+
"silo"
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"id": "req-rls",
|
|
187
|
+
"type": "requirement",
|
|
188
|
+
"label": "Database filters by tenant",
|
|
189
|
+
"x": 260,
|
|
190
|
+
"y": 260,
|
|
191
|
+
"ears_type": "ubiquitous",
|
|
192
|
+
"action": "enable and force row-level security on every table that holds tenant data, set the tenant for each transaction from the request, and connect the application with a role that cannot bypass the policies",
|
|
193
|
+
"rationale": "With all tenants in one table, a filter the database applies itself still holds when a query in the code forgets it (PostgreSQL Row Security Policies; AWS SaaS Lens, pool isolation).",
|
|
194
|
+
"hubWhen": {
|
|
195
|
+
"ISOLATION": [
|
|
196
|
+
"pool"
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"id": "req-schema-onboard",
|
|
202
|
+
"type": "requirement",
|
|
203
|
+
"label": "Schema per tenant",
|
|
204
|
+
"x": 260,
|
|
205
|
+
"y": 390,
|
|
206
|
+
"ears_type": "event-driven",
|
|
207
|
+
"trigger": "a tenant is onboarded",
|
|
208
|
+
"action": "create its schema and a database role granted only on that schema, apply every migration within 5 minutes, and open every connection of its requests with that role and its schema alone on the search path",
|
|
209
|
+
"rationale": "A schema boundary only holds when each tenant's requests cannot name another schema; a role per schema makes the database refuse it (Azure multitenant guidance, schema per tenant).",
|
|
210
|
+
"hubWhen": {
|
|
211
|
+
"ISOLATION": [
|
|
212
|
+
"schema"
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"id": "req-database-onboard",
|
|
218
|
+
"type": "requirement",
|
|
219
|
+
"label": "Database per tenant",
|
|
220
|
+
"x": 260,
|
|
221
|
+
"y": 520,
|
|
222
|
+
"ears_type": "event-driven",
|
|
223
|
+
"trigger": "a tenant is onboarded",
|
|
224
|
+
"action": "provision its database with credentials valid for that database only within 15 minutes, register it in the tenant catalogue, and have the application open connections only through the catalogue entry of the caller's tenant",
|
|
225
|
+
"rationale": "A database per tenant isolates storage, backups and restores; the routing from tenant to database becomes the boundary to protect (AWS SaaS Lens, silo storage; Azure multitenant guidance).",
|
|
226
|
+
"hubWhen": {
|
|
227
|
+
"ISOLATION": [
|
|
228
|
+
"database"
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"id": "req-migrate-all",
|
|
234
|
+
"type": "requirement",
|
|
235
|
+
"label": "Every tenant migrated",
|
|
236
|
+
"x": 260,
|
|
237
|
+
"y": 650,
|
|
238
|
+
"ears_type": "event-driven",
|
|
239
|
+
"trigger": "a release changes the database schema",
|
|
240
|
+
"action": "bring every tenant to the new schema version within 24 hours, report each tenant that fails, and keep the application working with both versions until the last tenant is migrated",
|
|
241
|
+
"rationale": "With a schema or database per tenant, a migration runs once per tenant; one that fails silently leaves a tenant on a version the code no longer expects (Azure multitenant guidance, deployment and migration).",
|
|
242
|
+
"hubWhen": {
|
|
243
|
+
"ISOLATION": [
|
|
244
|
+
"schema",
|
|
245
|
+
"database"
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"id": "req-silo",
|
|
251
|
+
"type": "requirement",
|
|
252
|
+
"label": "Nothing shared between stacks",
|
|
253
|
+
"x": 260,
|
|
254
|
+
"y": 780,
|
|
255
|
+
"ears_type": "ubiquitous",
|
|
256
|
+
"action": "deploy each tenant as its own stack in its own cloud account or project, with no data store, queue, key or credential shared with another tenant, and roll every release out to all stacks within 7 days",
|
|
257
|
+
"rationale": "A deployment per tenant isolates everything, but only while no resource is shared and the stacks do not drift apart in version (AWS SaaS Lens, silo model).",
|
|
258
|
+
"hubWhen": {
|
|
259
|
+
"ISOLATION": [
|
|
260
|
+
"silo"
|
|
261
|
+
]
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"id": "req-quota",
|
|
266
|
+
"type": "requirement",
|
|
267
|
+
"label": "Noisy tenant throttled",
|
|
268
|
+
"x": 260,
|
|
269
|
+
"y": 910,
|
|
270
|
+
"ears_type": "unwanted-behaviour",
|
|
271
|
+
"unwanted_condition": "a tenant exceeds {{TENANT_RPS}} requests per second, or its quota of concurrent queries or background jobs",
|
|
272
|
+
"action": "throttle that tenant alone with 429 and a Retry-After header, and keep the other tenants' p95 latency within 10% of its level before the burst",
|
|
273
|
+
"rationale": "Where tenants share capacity, one tenant's load must cost that tenant, not everyone (AWS SaaS Lens, noisy neighbour; Azure multitenant guidance).",
|
|
274
|
+
"hubWhen": {
|
|
275
|
+
"ISOLATION": [
|
|
276
|
+
"pool",
|
|
277
|
+
"schema",
|
|
278
|
+
"database"
|
|
279
|
+
]
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"id": "req-tier-move",
|
|
284
|
+
"type": "requirement",
|
|
285
|
+
"label": "Large tenants moved out",
|
|
286
|
+
"x": 260,
|
|
287
|
+
"y": 1040,
|
|
288
|
+
"ears_type": "event-driven",
|
|
289
|
+
"trigger": "a tenant uses more than 20% of a shared database's or service's capacity for 7 days in a row",
|
|
290
|
+
"action": "propose it for dedicated capacity, and once approved move it with no more than 5 minutes of write downtime",
|
|
291
|
+
"rationale": "Quotas protect the others but hold the large tenant back; moving it out keeps both served (AWS SaaS Lens, tiered and bridge models).",
|
|
292
|
+
"hubWhen": {
|
|
293
|
+
"ISOLATION": [
|
|
294
|
+
"pool",
|
|
295
|
+
"schema",
|
|
296
|
+
"database"
|
|
297
|
+
],
|
|
298
|
+
"NOISY": [
|
|
299
|
+
"tiered"
|
|
300
|
+
]
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"id": "req-tenant-keys",
|
|
305
|
+
"type": "requirement",
|
|
306
|
+
"label": "Data encrypted per tenant",
|
|
307
|
+
"x": 260,
|
|
308
|
+
"y": 1170,
|
|
309
|
+
"ears_type": "ubiquitous",
|
|
310
|
+
"action": "encrypt each tenant's data with a data key of its own (envelope encryption with the tenant id as encryption context), so that no key decrypts two tenants' data and deleting a tenant's key makes its data, backups included, unreadable",
|
|
311
|
+
"rationale": "A key per tenant limits what one leak exposes and makes erasure provable by destroying the key (NIST SP 800-57 Part 1, key separation; AWS SaaS Lens, tenant-aware encryption).",
|
|
312
|
+
"hubWhen": {
|
|
313
|
+
"ISOLATION": [
|
|
314
|
+
"pool",
|
|
315
|
+
"schema",
|
|
316
|
+
"database",
|
|
317
|
+
"silo"
|
|
318
|
+
],
|
|
319
|
+
"KEYS": [
|
|
320
|
+
"tenant",
|
|
321
|
+
"customer"
|
|
322
|
+
]
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"id": "req-byok-revoke",
|
|
327
|
+
"type": "requirement",
|
|
328
|
+
"label": "Revoked customer key honoured",
|
|
329
|
+
"x": 260,
|
|
330
|
+
"y": 1300,
|
|
331
|
+
"ears_type": "event-driven",
|
|
332
|
+
"trigger": "a customer disables or revokes its key in its own key management service",
|
|
333
|
+
"action": "stop reading and writing that tenant's data within 5 minutes, drop its cached data keys, and tell the tenant's administrators",
|
|
334
|
+
"rationale": "Customer-managed keys are only control if revoking them takes effect; cached data keys must not outlive the revocation (NIST SP 800-57 Part 1, key compromise and revocation).",
|
|
335
|
+
"hubWhen": {
|
|
336
|
+
"ISOLATION": [
|
|
337
|
+
"pool",
|
|
338
|
+
"schema",
|
|
339
|
+
"database",
|
|
340
|
+
"silo"
|
|
341
|
+
],
|
|
342
|
+
"KEYS": [
|
|
343
|
+
"customer"
|
|
344
|
+
]
|
|
345
|
+
}
|
|
346
|
+
},
|
|
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
|
+
{
|
|
369
|
+
"id": "req-offboard",
|
|
370
|
+
"type": "requirement",
|
|
371
|
+
"label": "Leaving tenant erased",
|
|
372
|
+
"x": 260,
|
|
373
|
+
"y": 1560,
|
|
374
|
+
"ears_type": "event-driven",
|
|
375
|
+
"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, search index and backup within {{OFFBOARD_DAYS}} days, and give it a deletion certificate",
|
|
377
|
+
"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
|
+
"hubWhen": {
|
|
379
|
+
"ISOLATION": [
|
|
380
|
+
"pool",
|
|
381
|
+
"schema",
|
|
382
|
+
"database",
|
|
383
|
+
"silo"
|
|
384
|
+
]
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"id": "req-single",
|
|
389
|
+
"type": "requirement",
|
|
390
|
+
"label": "One organisation only",
|
|
391
|
+
"x": 260,
|
|
392
|
+
"y": 1690,
|
|
393
|
+
"ears_type": "ubiquitous",
|
|
394
|
+
"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
|
+
"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.",
|
|
396
|
+
"hubWhen": {
|
|
397
|
+
"ISOLATION": [
|
|
398
|
+
"single"
|
|
399
|
+
]
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"id": "sc-tenant-context",
|
|
404
|
+
"type": "scenario",
|
|
405
|
+
"label": "Forged tenant ignored",
|
|
406
|
+
"x": 520,
|
|
407
|
+
"y": 0,
|
|
408
|
+
"given": "a user of tenant A",
|
|
409
|
+
"when": "the user sends a request naming tenant B in a header and in the body",
|
|
410
|
+
"then": "the request runs for tenant A only, and every query, cache key and log line it leads to carries tenant A",
|
|
411
|
+
"hubWhen": {
|
|
412
|
+
"ISOLATION": [
|
|
413
|
+
"pool",
|
|
414
|
+
"schema",
|
|
415
|
+
"database",
|
|
416
|
+
"silo"
|
|
417
|
+
]
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"id": "sc-cross-tenant",
|
|
422
|
+
"type": "scenario",
|
|
423
|
+
"label": "Other tenant's record",
|
|
424
|
+
"x": 520,
|
|
425
|
+
"y": 130,
|
|
426
|
+
"given": "two tenants with an order each",
|
|
427
|
+
"when": "a user of the first asks for, changes and lists the second's order by its id",
|
|
428
|
+
"then": "every answer is 404 or leaves it out, nothing of the order is returned or changed, and a security event is recorded",
|
|
429
|
+
"hubWhen": {
|
|
430
|
+
"ISOLATION": [
|
|
431
|
+
"pool",
|
|
432
|
+
"schema",
|
|
433
|
+
"database",
|
|
434
|
+
"silo"
|
|
435
|
+
]
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"id": "sc-rls",
|
|
440
|
+
"type": "scenario",
|
|
441
|
+
"label": "Forgotten filter holds",
|
|
442
|
+
"x": 520,
|
|
443
|
+
"y": 260,
|
|
444
|
+
"given": "two tenants with rows in the same table",
|
|
445
|
+
"when": "a query without any tenant condition runs in a transaction of the first tenant",
|
|
446
|
+
"then": "it returns only the first tenant's rows",
|
|
447
|
+
"hubWhen": {
|
|
448
|
+
"ISOLATION": [
|
|
449
|
+
"pool"
|
|
450
|
+
]
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"id": "sc-schema-onboard",
|
|
455
|
+
"type": "scenario",
|
|
456
|
+
"label": "Other schema refused",
|
|
457
|
+
"x": 520,
|
|
458
|
+
"y": 390,
|
|
459
|
+
"given": "two onboarded tenants",
|
|
460
|
+
"when": "a request of the first names a table of the second's schema explicitly",
|
|
461
|
+
"then": "the database refuses it with a permission error",
|
|
462
|
+
"hubWhen": {
|
|
463
|
+
"ISOLATION": [
|
|
464
|
+
"schema"
|
|
465
|
+
]
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"id": "sc-database-onboard",
|
|
470
|
+
"type": "scenario",
|
|
471
|
+
"label": "Routed to own database",
|
|
472
|
+
"x": 520,
|
|
473
|
+
"y": 520,
|
|
474
|
+
"given": "two onboarded tenants",
|
|
475
|
+
"when": "a user of the first makes a request",
|
|
476
|
+
"then": "it opens a connection only to the first tenant's database, whose credentials cannot open the second's",
|
|
477
|
+
"hubWhen": {
|
|
478
|
+
"ISOLATION": [
|
|
479
|
+
"database"
|
|
480
|
+
]
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"id": "sc-migrate-all",
|
|
485
|
+
"type": "scenario",
|
|
486
|
+
"label": "Migration reaches all",
|
|
487
|
+
"x": 520,
|
|
488
|
+
"y": 650,
|
|
489
|
+
"given": "tenants on schema version 41",
|
|
490
|
+
"when": "a release with migration 42 is deployed",
|
|
491
|
+
"then": "within 24 hours every tenant is on version 42, or the failing ones are reported",
|
|
492
|
+
"hubWhen": {
|
|
493
|
+
"ISOLATION": [
|
|
494
|
+
"schema",
|
|
495
|
+
"database"
|
|
496
|
+
]
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"id": "sc-silo",
|
|
501
|
+
"type": "scenario",
|
|
502
|
+
"label": "Stacks share nothing",
|
|
503
|
+
"x": 520,
|
|
504
|
+
"y": 780,
|
|
505
|
+
"given": "the infrastructure code of two tenant stacks",
|
|
506
|
+
"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",
|
|
508
|
+
"hubWhen": {
|
|
509
|
+
"ISOLATION": [
|
|
510
|
+
"silo"
|
|
511
|
+
]
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"id": "sc-quota",
|
|
516
|
+
"type": "scenario",
|
|
517
|
+
"label": "Burst stays contained",
|
|
518
|
+
"x": 520,
|
|
519
|
+
"y": 910,
|
|
520
|
+
"given": "two tenants under normal load",
|
|
521
|
+
"when": "the first sends ten times {{TENANT_RPS}} requests per second for 5 minutes",
|
|
522
|
+
"then": "the first gets 429 with Retry-After for the excess, and the second's p95 latency rises by less than 10%",
|
|
523
|
+
"hubWhen": {
|
|
524
|
+
"ISOLATION": [
|
|
525
|
+
"pool",
|
|
526
|
+
"schema",
|
|
527
|
+
"database"
|
|
528
|
+
]
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"id": "sc-tier-move",
|
|
533
|
+
"type": "scenario",
|
|
534
|
+
"label": "Large tenant moved",
|
|
535
|
+
"x": 520,
|
|
536
|
+
"y": 1040,
|
|
537
|
+
"given": "a tenant using 25% of the shared database for 7 days",
|
|
538
|
+
"when": "its move to a dedicated database is approved and run",
|
|
539
|
+
"then": "its data is on the dedicated database and writes were refused for no more than 5 minutes",
|
|
540
|
+
"hubWhen": {
|
|
541
|
+
"ISOLATION": [
|
|
542
|
+
"pool",
|
|
543
|
+
"schema",
|
|
544
|
+
"database"
|
|
545
|
+
],
|
|
546
|
+
"NOISY": [
|
|
547
|
+
"tiered"
|
|
548
|
+
]
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"id": "sc-tenant-keys",
|
|
553
|
+
"type": "scenario",
|
|
554
|
+
"label": "Key opens one tenant",
|
|
555
|
+
"x": 520,
|
|
556
|
+
"y": 1170,
|
|
557
|
+
"given": "data of two tenants encrypted with their own keys",
|
|
558
|
+
"when": "the first tenant's key is used on the second's data, and then the first tenant's key is deleted",
|
|
559
|
+
"then": "the second's data does not decrypt, and the first's data and backups no longer decrypt",
|
|
560
|
+
"hubWhen": {
|
|
561
|
+
"ISOLATION": [
|
|
562
|
+
"pool",
|
|
563
|
+
"schema",
|
|
564
|
+
"database",
|
|
565
|
+
"silo"
|
|
566
|
+
],
|
|
567
|
+
"KEYS": [
|
|
568
|
+
"tenant",
|
|
569
|
+
"customer"
|
|
570
|
+
]
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"id": "sc-byok-revoke",
|
|
575
|
+
"type": "scenario",
|
|
576
|
+
"label": "Key revoked",
|
|
577
|
+
"x": 520,
|
|
578
|
+
"y": 1300,
|
|
579
|
+
"given": "a tenant using its own key",
|
|
580
|
+
"when": "it disables the key",
|
|
581
|
+
"then": "within 5 minutes reads and writes of its data fail and its administrators are told",
|
|
582
|
+
"hubWhen": {
|
|
583
|
+
"ISOLATION": [
|
|
584
|
+
"pool",
|
|
585
|
+
"schema",
|
|
586
|
+
"database",
|
|
587
|
+
"silo"
|
|
588
|
+
],
|
|
589
|
+
"KEYS": [
|
|
590
|
+
"customer"
|
|
591
|
+
]
|
|
592
|
+
}
|
|
593
|
+
},
|
|
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
|
+
{
|
|
616
|
+
"id": "sc-offboard",
|
|
617
|
+
"type": "scenario",
|
|
618
|
+
"label": "Tenant offboarded",
|
|
619
|
+
"x": 520,
|
|
620
|
+
"y": 1560,
|
|
621
|
+
"given": "a tenant whose contract has ended and whose export period has passed",
|
|
622
|
+
"when": "{{OFFBOARD_DAYS}} days have passed",
|
|
623
|
+
"then": "no store, cache, index or backup returns any of its data, and the certificate is issued",
|
|
624
|
+
"hubWhen": {
|
|
625
|
+
"ISOLATION": [
|
|
626
|
+
"pool",
|
|
627
|
+
"schema",
|
|
628
|
+
"database",
|
|
629
|
+
"silo"
|
|
630
|
+
]
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"id": "sc-single",
|
|
635
|
+
"type": "scenario",
|
|
636
|
+
"label": "Second organisation refused",
|
|
637
|
+
"x": 520,
|
|
638
|
+
"y": 1690,
|
|
639
|
+
"given": "a deployment serving one organisation",
|
|
640
|
+
"when": "an administrator tries to create a second organisation",
|
|
641
|
+
"then": "it is refused and the attempt is recorded",
|
|
642
|
+
"hubWhen": {
|
|
643
|
+
"ISOLATION": [
|
|
644
|
+
"single"
|
|
645
|
+
]
|
|
646
|
+
}
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"id": "adr-pool",
|
|
650
|
+
"type": "adr",
|
|
651
|
+
"label": "Pooled tables with row-level security",
|
|
652
|
+
"x": 780,
|
|
653
|
+
"y": 0,
|
|
654
|
+
"concern": "tenant-isolation",
|
|
655
|
+
"status": "accepted",
|
|
656
|
+
"date": "",
|
|
657
|
+
"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}}.",
|
|
659
|
+
"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
|
+
"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
|
+
"hubWhen": {
|
|
662
|
+
"ISOLATION": [
|
|
663
|
+
"pool"
|
|
664
|
+
]
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"id": "adr-schema",
|
|
669
|
+
"type": "adr",
|
|
670
|
+
"label": "A schema per tenant",
|
|
671
|
+
"x": 780,
|
|
672
|
+
"y": 130,
|
|
673
|
+
"concern": "tenant-isolation",
|
|
674
|
+
"status": "accepted",
|
|
675
|
+
"date": "",
|
|
676
|
+
"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}}.",
|
|
678
|
+
"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
|
+
"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
|
+
"hubWhen": {
|
|
681
|
+
"ISOLATION": [
|
|
682
|
+
"schema"
|
|
683
|
+
]
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"id": "adr-database",
|
|
688
|
+
"type": "adr",
|
|
689
|
+
"label": "A database per tenant",
|
|
690
|
+
"x": 780,
|
|
691
|
+
"y": 260,
|
|
692
|
+
"concern": "tenant-isolation",
|
|
693
|
+
"status": "accepted",
|
|
694
|
+
"date": "",
|
|
695
|
+
"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}}.",
|
|
697
|
+
"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
|
+
"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
|
+
"hubWhen": {
|
|
700
|
+
"ISOLATION": [
|
|
701
|
+
"database"
|
|
702
|
+
]
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"id": "adr-silo",
|
|
707
|
+
"type": "adr",
|
|
708
|
+
"label": "A deployment per tenant",
|
|
709
|
+
"x": 780,
|
|
710
|
+
"y": 390,
|
|
711
|
+
"concern": "tenant-isolation",
|
|
712
|
+
"status": "accepted",
|
|
713
|
+
"date": "",
|
|
714
|
+
"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}}.",
|
|
716
|
+
"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
|
+
"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
|
+
"hubWhen": {
|
|
719
|
+
"ISOLATION": [
|
|
720
|
+
"silo"
|
|
721
|
+
]
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"id": "adr-single",
|
|
726
|
+
"type": "adr",
|
|
727
|
+
"label": "One organisation per deployment",
|
|
728
|
+
"x": 780,
|
|
729
|
+
"y": 520,
|
|
730
|
+
"concern": "tenant-isolation",
|
|
731
|
+
"status": "accepted",
|
|
732
|
+
"date": "",
|
|
733
|
+
"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. Encryption at rest uses the platform's keys.",
|
|
735
|
+
"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
|
+
"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
|
+
"hubWhen": {
|
|
738
|
+
"ISOLATION": [
|
|
739
|
+
"single"
|
|
740
|
+
]
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"id": "adr-quotas",
|
|
745
|
+
"type": "adr",
|
|
746
|
+
"label": "Per-tenant quotas",
|
|
747
|
+
"x": 780,
|
|
748
|
+
"y": 650,
|
|
749
|
+
"concern": "tenant-isolation",
|
|
750
|
+
"status": "accepted",
|
|
751
|
+
"date": "",
|
|
752
|
+
"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, Sidekiq limits). Statement timeouts bound one query. Load, latency and errors are measured per tenant, so the noisy one is visible.",
|
|
754
|
+
"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
|
+
"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
|
+
"hubWhen": {
|
|
757
|
+
"ISOLATION": [
|
|
758
|
+
"pool",
|
|
759
|
+
"schema",
|
|
760
|
+
"database"
|
|
761
|
+
],
|
|
762
|
+
"NOISY": [
|
|
763
|
+
"quotas"
|
|
764
|
+
]
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"id": "adr-tiered",
|
|
769
|
+
"type": "adr",
|
|
770
|
+
"label": "Quotas and dedicated capacity",
|
|
771
|
+
"x": 780,
|
|
772
|
+
"y": 780,
|
|
773
|
+
"concern": "tenant-isolation",
|
|
774
|
+
"status": "accepted",
|
|
775
|
+
"date": "",
|
|
776
|
+
"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).",
|
|
778
|
+
"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
|
+
"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
|
+
"hubWhen": {
|
|
781
|
+
"ISOLATION": [
|
|
782
|
+
"pool",
|
|
783
|
+
"schema",
|
|
784
|
+
"database"
|
|
785
|
+
],
|
|
786
|
+
"NOISY": [
|
|
787
|
+
"tiered"
|
|
788
|
+
]
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"id": "adr-tenant-keys",
|
|
793
|
+
"type": "adr",
|
|
794
|
+
"label": "An encryption key per tenant",
|
|
795
|
+
"x": 780,
|
|
796
|
+
"y": 910,
|
|
797
|
+
"concern": "tenant-isolation",
|
|
798
|
+
"status": "accepted",
|
|
799
|
+
"date": "",
|
|
800
|
+
"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.",
|
|
802
|
+
"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
|
+
"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
|
+
"hubWhen": {
|
|
805
|
+
"ISOLATION": [
|
|
806
|
+
"pool",
|
|
807
|
+
"schema",
|
|
808
|
+
"database",
|
|
809
|
+
"silo"
|
|
810
|
+
],
|
|
811
|
+
"KEYS": [
|
|
812
|
+
"tenant"
|
|
813
|
+
]
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"id": "adr-customer-keys",
|
|
818
|
+
"type": "adr",
|
|
819
|
+
"label": "Customer-managed keys",
|
|
820
|
+
"x": 780,
|
|
821
|
+
"y": 1040,
|
|
822
|
+
"concern": "tenant-isolation",
|
|
823
|
+
"status": "accepted",
|
|
824
|
+
"date": "",
|
|
825
|
+
"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.",
|
|
827
|
+
"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
|
+
"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
|
+
"hubWhen": {
|
|
830
|
+
"ISOLATION": [
|
|
831
|
+
"pool",
|
|
832
|
+
"schema",
|
|
833
|
+
"database",
|
|
834
|
+
"silo"
|
|
835
|
+
],
|
|
836
|
+
"KEYS": [
|
|
837
|
+
"customer"
|
|
838
|
+
]
|
|
839
|
+
}
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"id": "adr-platform-keys",
|
|
843
|
+
"type": "adr",
|
|
844
|
+
"label": "Platform encryption keys",
|
|
845
|
+
"x": 780,
|
|
846
|
+
"y": 1170,
|
|
847
|
+
"concern": "tenant-isolation",
|
|
848
|
+
"status": "accepted",
|
|
849
|
+
"date": "",
|
|
850
|
+
"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": "Data stores and backups are encrypted at rest with platform-managed keys (AWS KMS managed keys, Azure platform-managed keys, Google default encryption), AES-256, rotated at least every 12 months; the same keys serve every tenant. Tenant isolation rests on the access control of the isolation model; erasure of a leaving tenant is by deleting its data and letting backups expire. Revisit when a customer asks for its own key or must be able to prove erasure.",
|
|
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.",
|
|
853
|
+
"alternatives": "1. A key per tenant: limits a leak and proves erasure, at some cost.\n2. Customer-managed keys: control for the customer.",
|
|
854
|
+
"hubWhen": {
|
|
855
|
+
"ISOLATION": [
|
|
856
|
+
"pool",
|
|
857
|
+
"schema",
|
|
858
|
+
"database",
|
|
859
|
+
"silo"
|
|
860
|
+
],
|
|
861
|
+
"KEYS": [
|
|
862
|
+
"shared"
|
|
863
|
+
]
|
|
864
|
+
}
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
"id": "ff-cross-tenant",
|
|
868
|
+
"type": "fitness-fn",
|
|
869
|
+
"label": "Cross-tenant calls return nothing",
|
|
870
|
+
"x": 1040,
|
|
871
|
+
"y": 0,
|
|
872
|
+
"category": "structural",
|
|
873
|
+
"threshold": "0 records of another tenant returned or changed, over every operation, with forged tenant headers included",
|
|
874
|
+
"description": "An integration test sets up two tenants with data of every kind, then calls every operation as a user of the first with the second's ids, filters and a forged tenant header, expecting 404 or nothing of the second back. The operations come from the router, so a new one is tested without anyone adding it.\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 { seedTwoTenants } from './tenants'\n\nconst { a, b } = await seedTwoTenants() // users, tokens and 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 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 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 })\n})\n```",
|
|
875
|
+
"hubWhen": {
|
|
876
|
+
"ISOLATION": [
|
|
877
|
+
"pool",
|
|
878
|
+
"schema",
|
|
879
|
+
"database"
|
|
880
|
+
]
|
|
881
|
+
}
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
"id": "ff-rls",
|
|
885
|
+
"type": "fitness-fn",
|
|
886
|
+
"label": "Row-level security on every table",
|
|
887
|
+
"x": 1040,
|
|
888
|
+
"y": 130,
|
|
889
|
+
"category": "structural",
|
|
890
|
+
"threshold": "0 tables with a tenant_id column without row-level security enabled and forced; the application role has no BYPASSRLS",
|
|
891
|
+
"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\nTool: pgTAP\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
|
+
"hubWhen": {
|
|
893
|
+
"ISOLATION": [
|
|
894
|
+
"pool"
|
|
895
|
+
]
|
|
896
|
+
}
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"id": "ff-tenant-migrations",
|
|
900
|
+
"type": "fitness-fn",
|
|
901
|
+
"label": "No tenant left behind",
|
|
902
|
+
"x": 1040,
|
|
903
|
+
"y": 260,
|
|
904
|
+
"category": "operational",
|
|
905
|
+
"threshold": "0 tenants on an older schema version 24 hours after a release",
|
|
906
|
+
"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 24 hours after a release.\n\nTool: Flyway (flyway info per tenant schema or database)\n\n```bash\n#!/usr/bin/env bash\nset -euo pipefail\nlatest=$(ls db/migration | sed -E 's/^V([0-9]+)__.*/\\1/' | sort -n | tail -1)\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\nexit $behind\n```",
|
|
907
|
+
"hubWhen": {
|
|
908
|
+
"ISOLATION": [
|
|
909
|
+
"schema",
|
|
910
|
+
"database"
|
|
911
|
+
]
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
"id": "ff-silo",
|
|
916
|
+
"type": "fitness-fn",
|
|
917
|
+
"label": "Stacks share nothing",
|
|
918
|
+
"x": 1040,
|
|
919
|
+
"y": 390,
|
|
920
|
+
"category": "structural",
|
|
921
|
+
"threshold": "0 resources or access policies in a tenant stack that reference another tenant's account or resources",
|
|
922
|
+
"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\nTool: Conftest\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
|
+
"hubWhen": {
|
|
924
|
+
"ISOLATION": [
|
|
925
|
+
"silo"
|
|
926
|
+
]
|
|
927
|
+
}
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"id": "ff-noisy-neighbour",
|
|
931
|
+
"type": "fitness-fn",
|
|
932
|
+
"label": "Bursts stay contained",
|
|
933
|
+
"x": 1040,
|
|
934
|
+
"y": 520,
|
|
935
|
+
"category": "operational",
|
|
936
|
+
"threshold": "With one tenant at 10 × {{TENANT_RPS}} requests per second, the other tenants' p95 latency rises by less than 10% and the noisy tenant gets 429",
|
|
937
|
+
"description": "A load test in a staging environment runs a steady load for a quiet tenant and a burst far above quota for a noisy one, and checks the quiet tenant's latency against its baseline and the noisy tenant's 429s.\n\nTool: k6\n\n```js\nimport http from 'k6/http'\nimport { check } from 'k6'\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 * __ENV.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}`],\n 'checks{scenario:noisy}': ['rate>0.8'],\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 check(res, { 'throttled or served': (r) => r.status === 429 || r.status === 200 })\n}\n```",
|
|
938
|
+
"hubWhen": {
|
|
939
|
+
"ISOLATION": [
|
|
940
|
+
"pool",
|
|
941
|
+
"schema",
|
|
942
|
+
"database"
|
|
943
|
+
]
|
|
944
|
+
}
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"id": "ff-tenant-share",
|
|
948
|
+
"type": "fitness-fn",
|
|
949
|
+
"label": "Tenant share watched",
|
|
950
|
+
"x": 1040,
|
|
951
|
+
"y": 650,
|
|
952
|
+
"category": "operational",
|
|
953
|
+
"threshold": "An alert within 1 hour of any tenant using more than 20% of a shared pool's capacity for 7 days",
|
|
954
|
+
"description": "An alerting rule over the per-tenant database time metric raises a ticket for the tenant to be moved to dedicated capacity.\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
|
+
"hubWhen": {
|
|
956
|
+
"ISOLATION": [
|
|
957
|
+
"pool",
|
|
958
|
+
"schema",
|
|
959
|
+
"database"
|
|
960
|
+
],
|
|
961
|
+
"NOISY": [
|
|
962
|
+
"tiered"
|
|
963
|
+
]
|
|
964
|
+
}
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
"id": "ff-key-separation",
|
|
968
|
+
"type": "fitness-fn",
|
|
969
|
+
"label": "Keys open one tenant",
|
|
970
|
+
"x": 1040,
|
|
971
|
+
"y": 780,
|
|
972
|
+
"category": "structural",
|
|
973
|
+
"threshold": "0 successful decryptions of a tenant's data with another tenant's key or encryption context",
|
|
974
|
+
"description": "An integration test against a local key management service encrypts data for two tenants and tries every cross-combination of key and encryption context, expecting each to fail.\n\nTool: Vitest with LocalStack (KMS) and the AWS SDK\n\n```ts\nimport { KMSClient, EncryptCommand, DecryptCommand } from '@aws-sdk/client-kms'\n\nconst kms = new KMSClient({ endpoint: 'http://localhost:4566', region: 'eu-central-1' })\n\nit('a tenant key decrypts nothing of another tenant', async () => {\n const { CiphertextBlob } = await kms.send(new EncryptCommand({\n KeyId: keys.a, Plaintext: Buffer.from('order of A'), EncryptionContext: { tenant: 'a' },\n }))\n await expect(kms.send(new DecryptCommand({ CiphertextBlob, KeyId: keys.b, EncryptionContext: { tenant: 'a' } }))).rejects.toThrow()\n await expect(kms.send(new DecryptCommand({ CiphertextBlob, KeyId: keys.a, EncryptionContext: { tenant: 'b' } }))).rejects.toThrow()\n})\n```",
|
|
975
|
+
"hubWhen": {
|
|
976
|
+
"ISOLATION": [
|
|
977
|
+
"pool",
|
|
978
|
+
"schema",
|
|
979
|
+
"database",
|
|
980
|
+
"silo"
|
|
981
|
+
],
|
|
982
|
+
"KEYS": [
|
|
983
|
+
"tenant",
|
|
984
|
+
"customer"
|
|
985
|
+
]
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"id": "ff-byok-revoke",
|
|
990
|
+
"type": "fitness-fn",
|
|
991
|
+
"label": "Revoked key stops access",
|
|
992
|
+
"x": 1040,
|
|
993
|
+
"y": 910,
|
|
994
|
+
"category": "operational",
|
|
995
|
+
"threshold": "Reads and writes of a tenant's data fail within 5 minutes of its key being disabled",
|
|
996
|
+
"description": "An integration test disables a tenant's key in a local key management service and polls a read of its data until it fails, failing itself past 5 minutes.\n\nTool: Vitest with LocalStack (KMS)\n\n```ts\nimport { DisableKeyCommand } from '@aws-sdk/client-kms'\n\nit('stops serving a tenant within 5 minutes of its key being disabled', async () => {\n await kms.send(new DisableKeyCommand({ KeyId: keys.customer }))\n const started = Date.now()\n while ((await api.readOrder('customer', orderId)).ok) {\n expect(Date.now() - started).toBeLessThan(5 * 60_000)\n await new Promise((r) => setTimeout(r, 10_000))\n }\n}, 6 * 60_000)\n```",
|
|
997
|
+
"hubWhen": {
|
|
998
|
+
"ISOLATION": [
|
|
999
|
+
"pool",
|
|
1000
|
+
"schema",
|
|
1001
|
+
"database",
|
|
1002
|
+
"silo"
|
|
1003
|
+
],
|
|
1004
|
+
"KEYS": [
|
|
1005
|
+
"customer"
|
|
1006
|
+
]
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
"id": "ff-encrypted-at-rest",
|
|
1011
|
+
"type": "fitness-fn",
|
|
1012
|
+
"label": "Stores encrypted at rest",
|
|
1013
|
+
"x": 1040,
|
|
1014
|
+
"y": 1040,
|
|
1015
|
+
"category": "structural",
|
|
1016
|
+
"threshold": "0 failed encryption-at-rest checks on the infrastructure code",
|
|
1017
|
+
"description": "The infrastructure code is scanned in CI, and the encryption-at-rest checks for databases, buckets and volumes must pass.\n\nTool: Checkov\n\n```yaml\n# .checkov.yaml\nframework: [terraform]\ncheck:\n - CKV_AWS_16 # RDS encrypted at rest\n - CKV_AWS_19 # S3 bucket encrypted at rest\n - CKV_AWS_3 # EBS volumes encrypted\n - CKV_AWS_7 # KMS key rotation enabled\nhard-fail-on: [CKV_AWS_16, CKV_AWS_19, CKV_AWS_3, CKV_AWS_7]\n```",
|
|
1018
|
+
"hubWhen": {
|
|
1019
|
+
"ISOLATION": [
|
|
1020
|
+
"pool",
|
|
1021
|
+
"schema",
|
|
1022
|
+
"database",
|
|
1023
|
+
"silo"
|
|
1024
|
+
],
|
|
1025
|
+
"KEYS": [
|
|
1026
|
+
"shared"
|
|
1027
|
+
]
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"id": "ff-single-org",
|
|
1032
|
+
"type": "fitness-fn",
|
|
1033
|
+
"label": "Exactly one organisation",
|
|
1034
|
+
"x": 1040,
|
|
1035
|
+
"y": 1170,
|
|
1036
|
+
"category": "structural",
|
|
1037
|
+
"threshold": "Exactly 1 organisation in the database, and creating a second is refused",
|
|
1038
|
+
"description": "A database test runs after the migrations in CI: it counts the organisations and tries to insert a second one, which a constraint must refuse.\n\nTool: pgTAP\n\n```sql\nBEGIN;\nSELECT plan(2);\n\nSELECT is((SELECT count(*) FROM organisation), 1::bigint, 'exactly one organisation');\n\nSELECT throws_ok(\n $$ INSERT INTO organisation (id, name) VALUES (gen_random_uuid(), 'Second') $$,\n NULL, 'a second organisation is refused'\n);\n\nSELECT * FROM finish();\nROLLBACK;\n```",
|
|
1039
|
+
"hubWhen": {
|
|
1040
|
+
"ISOLATION": [
|
|
1041
|
+
"single"
|
|
1042
|
+
]
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
],
|
|
1046
|
+
"relations": [
|
|
1047
|
+
{
|
|
1048
|
+
"id": "req-tenant-context--derives--need",
|
|
1049
|
+
"sourceId": "req-tenant-context",
|
|
1050
|
+
"targetId": "need",
|
|
1051
|
+
"relationType": "derives"
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
"id": "req-cross-tenant--derives--need",
|
|
1055
|
+
"sourceId": "req-cross-tenant",
|
|
1056
|
+
"targetId": "need",
|
|
1057
|
+
"relationType": "derives"
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
"id": "req-rls--derives--need",
|
|
1061
|
+
"sourceId": "req-rls",
|
|
1062
|
+
"targetId": "need",
|
|
1063
|
+
"relationType": "derives"
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
"id": "req-schema-onboard--derives--need",
|
|
1067
|
+
"sourceId": "req-schema-onboard",
|
|
1068
|
+
"targetId": "need",
|
|
1069
|
+
"relationType": "derives"
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
"id": "req-database-onboard--derives--need",
|
|
1073
|
+
"sourceId": "req-database-onboard",
|
|
1074
|
+
"targetId": "need",
|
|
1075
|
+
"relationType": "derives"
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"id": "req-migrate-all--derives--need",
|
|
1079
|
+
"sourceId": "req-migrate-all",
|
|
1080
|
+
"targetId": "need",
|
|
1081
|
+
"relationType": "derives"
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"id": "req-silo--derives--need",
|
|
1085
|
+
"sourceId": "req-silo",
|
|
1086
|
+
"targetId": "need",
|
|
1087
|
+
"relationType": "derives"
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
"id": "req-quota--derives--need",
|
|
1091
|
+
"sourceId": "req-quota",
|
|
1092
|
+
"targetId": "need",
|
|
1093
|
+
"relationType": "derives"
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
"id": "req-tier-move--derives--need",
|
|
1097
|
+
"sourceId": "req-tier-move",
|
|
1098
|
+
"targetId": "need",
|
|
1099
|
+
"relationType": "derives"
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
"id": "req-tenant-keys--derives--need",
|
|
1103
|
+
"sourceId": "req-tenant-keys",
|
|
1104
|
+
"targetId": "need",
|
|
1105
|
+
"relationType": "derives"
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
"id": "req-byok-revoke--derives--need",
|
|
1109
|
+
"sourceId": "req-byok-revoke",
|
|
1110
|
+
"targetId": "need",
|
|
1111
|
+
"relationType": "derives"
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
"id": "req-platform-keys--derives--need",
|
|
1115
|
+
"sourceId": "req-platform-keys",
|
|
1116
|
+
"targetId": "need",
|
|
1117
|
+
"relationType": "derives"
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"id": "req-offboard--derives--need",
|
|
1121
|
+
"sourceId": "req-offboard",
|
|
1122
|
+
"targetId": "need",
|
|
1123
|
+
"relationType": "derives"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
"id": "req-single--derives--need",
|
|
1127
|
+
"sourceId": "req-single",
|
|
1128
|
+
"targetId": "need",
|
|
1129
|
+
"relationType": "derives"
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
"id": "sc-tenant-context--verifies--req-tenant-context",
|
|
1133
|
+
"sourceId": "sc-tenant-context",
|
|
1134
|
+
"targetId": "req-tenant-context",
|
|
1135
|
+
"relationType": "verifies"
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"id": "sc-cross-tenant--verifies--req-cross-tenant",
|
|
1139
|
+
"sourceId": "sc-cross-tenant",
|
|
1140
|
+
"targetId": "req-cross-tenant",
|
|
1141
|
+
"relationType": "verifies"
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
"id": "sc-rls--verifies--req-rls",
|
|
1145
|
+
"sourceId": "sc-rls",
|
|
1146
|
+
"targetId": "req-rls",
|
|
1147
|
+
"relationType": "verifies"
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
"id": "sc-schema-onboard--verifies--req-schema-onboard",
|
|
1151
|
+
"sourceId": "sc-schema-onboard",
|
|
1152
|
+
"targetId": "req-schema-onboard",
|
|
1153
|
+
"relationType": "verifies"
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"id": "sc-database-onboard--verifies--req-database-onboard",
|
|
1157
|
+
"sourceId": "sc-database-onboard",
|
|
1158
|
+
"targetId": "req-database-onboard",
|
|
1159
|
+
"relationType": "verifies"
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
"id": "sc-migrate-all--verifies--req-migrate-all",
|
|
1163
|
+
"sourceId": "sc-migrate-all",
|
|
1164
|
+
"targetId": "req-migrate-all",
|
|
1165
|
+
"relationType": "verifies"
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
"id": "sc-silo--verifies--req-silo",
|
|
1169
|
+
"sourceId": "sc-silo",
|
|
1170
|
+
"targetId": "req-silo",
|
|
1171
|
+
"relationType": "verifies"
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
"id": "sc-quota--verifies--req-quota",
|
|
1175
|
+
"sourceId": "sc-quota",
|
|
1176
|
+
"targetId": "req-quota",
|
|
1177
|
+
"relationType": "verifies"
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"id": "sc-tier-move--verifies--req-tier-move",
|
|
1181
|
+
"sourceId": "sc-tier-move",
|
|
1182
|
+
"targetId": "req-tier-move",
|
|
1183
|
+
"relationType": "verifies"
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
"id": "sc-tenant-keys--verifies--req-tenant-keys",
|
|
1187
|
+
"sourceId": "sc-tenant-keys",
|
|
1188
|
+
"targetId": "req-tenant-keys",
|
|
1189
|
+
"relationType": "verifies"
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
"id": "sc-byok-revoke--verifies--req-byok-revoke",
|
|
1193
|
+
"sourceId": "sc-byok-revoke",
|
|
1194
|
+
"targetId": "req-byok-revoke",
|
|
1195
|
+
"relationType": "verifies"
|
|
1196
|
+
},
|
|
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
|
+
{
|
|
1204
|
+
"id": "sc-offboard--verifies--req-offboard",
|
|
1205
|
+
"sourceId": "sc-offboard",
|
|
1206
|
+
"targetId": "req-offboard",
|
|
1207
|
+
"relationType": "verifies"
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
"id": "sc-single--verifies--req-single",
|
|
1211
|
+
"sourceId": "sc-single",
|
|
1212
|
+
"targetId": "req-single",
|
|
1213
|
+
"relationType": "verifies"
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
"id": "ff-cross-tenant--implements--adr-pool",
|
|
1217
|
+
"sourceId": "ff-cross-tenant",
|
|
1218
|
+
"targetId": "adr-pool",
|
|
1219
|
+
"relationType": "implements"
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
"id": "ff-cross-tenant--implements--adr-schema",
|
|
1223
|
+
"sourceId": "ff-cross-tenant",
|
|
1224
|
+
"targetId": "adr-schema",
|
|
1225
|
+
"relationType": "implements"
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
"id": "ff-cross-tenant--implements--adr-database",
|
|
1229
|
+
"sourceId": "ff-cross-tenant",
|
|
1230
|
+
"targetId": "adr-database",
|
|
1231
|
+
"relationType": "implements"
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
"id": "ff-rls--implements--adr-pool",
|
|
1235
|
+
"sourceId": "ff-rls",
|
|
1236
|
+
"targetId": "adr-pool",
|
|
1237
|
+
"relationType": "implements"
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
"id": "ff-tenant-migrations--implements--adr-schema",
|
|
1241
|
+
"sourceId": "ff-tenant-migrations",
|
|
1242
|
+
"targetId": "adr-schema",
|
|
1243
|
+
"relationType": "implements"
|
|
1244
|
+
},
|
|
1245
|
+
{
|
|
1246
|
+
"id": "ff-tenant-migrations--implements--adr-database",
|
|
1247
|
+
"sourceId": "ff-tenant-migrations",
|
|
1248
|
+
"targetId": "adr-database",
|
|
1249
|
+
"relationType": "implements"
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
"id": "ff-silo--implements--adr-silo",
|
|
1253
|
+
"sourceId": "ff-silo",
|
|
1254
|
+
"targetId": "adr-silo",
|
|
1255
|
+
"relationType": "implements"
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
"id": "ff-noisy-neighbour--implements--adr-quotas",
|
|
1259
|
+
"sourceId": "ff-noisy-neighbour",
|
|
1260
|
+
"targetId": "adr-quotas",
|
|
1261
|
+
"relationType": "implements"
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
"id": "ff-noisy-neighbour--implements--adr-tiered",
|
|
1265
|
+
"sourceId": "ff-noisy-neighbour",
|
|
1266
|
+
"targetId": "adr-tiered",
|
|
1267
|
+
"relationType": "implements"
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
"id": "ff-tenant-share--implements--adr-tiered",
|
|
1271
|
+
"sourceId": "ff-tenant-share",
|
|
1272
|
+
"targetId": "adr-tiered",
|
|
1273
|
+
"relationType": "implements"
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
"id": "ff-key-separation--implements--adr-tenant-keys",
|
|
1277
|
+
"sourceId": "ff-key-separation",
|
|
1278
|
+
"targetId": "adr-tenant-keys",
|
|
1279
|
+
"relationType": "implements"
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
"id": "ff-key-separation--implements--adr-customer-keys",
|
|
1283
|
+
"sourceId": "ff-key-separation",
|
|
1284
|
+
"targetId": "adr-customer-keys",
|
|
1285
|
+
"relationType": "implements"
|
|
1286
|
+
},
|
|
1287
|
+
{
|
|
1288
|
+
"id": "ff-byok-revoke--implements--adr-customer-keys",
|
|
1289
|
+
"sourceId": "ff-byok-revoke",
|
|
1290
|
+
"targetId": "adr-customer-keys",
|
|
1291
|
+
"relationType": "implements"
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
"id": "ff-encrypted-at-rest--implements--adr-platform-keys",
|
|
1295
|
+
"sourceId": "ff-encrypted-at-rest",
|
|
1296
|
+
"targetId": "adr-platform-keys",
|
|
1297
|
+
"relationType": "implements"
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
"id": "ff-single-org--implements--adr-single",
|
|
1301
|
+
"sourceId": "ff-single-org",
|
|
1302
|
+
"targetId": "adr-single",
|
|
1303
|
+
"relationType": "implements"
|
|
1304
|
+
}
|
|
1305
|
+
]
|
|
1306
|
+
}
|