@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,1151 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "concern-infrastructure",
|
|
4
|
+
"category": "concern",
|
|
5
|
+
"name": "Infrastructure",
|
|
6
|
+
"description": "Where and how the element runs: the hosting model and the cloud, the infrastructure as code that builds it, the environments and their parity with production, cost guardrails and drift detection.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"technology",
|
|
9
|
+
"infrastructure",
|
|
10
|
+
"cloud",
|
|
11
|
+
"kubernetes",
|
|
12
|
+
"serverless",
|
|
13
|
+
"infrastructure as code",
|
|
14
|
+
"finops",
|
|
15
|
+
"drift"
|
|
16
|
+
],
|
|
17
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
18
|
+
"concern": {
|
|
19
|
+
"id": "infrastructure",
|
|
20
|
+
"trigger": "LIST NODES WHERE (type = \"container\" OR type = \"webapp\" OR type = \"database\") AND external != true",
|
|
21
|
+
"why": "these elements are deployed and run somewhere, so the hosting, the cloud, how the infrastructure is built and what it may cost has to be decided.",
|
|
22
|
+
"group": "technology"
|
|
23
|
+
},
|
|
24
|
+
"sources": [
|
|
25
|
+
{
|
|
26
|
+
"title": "The Twelve-Factor App: X. Dev/prod parity",
|
|
27
|
+
"url": "https://12factor.net/dev-prod-parity"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"title": "AWS Well-Architected Framework",
|
|
31
|
+
"url": "https://aws.amazon.com/architecture/well-architected/"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"title": "Microsoft Azure Well-Architected Framework",
|
|
35
|
+
"url": "https://learn.microsoft.com/en-us/azure/well-architected/"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"title": "Google Cloud Architecture Framework",
|
|
39
|
+
"url": "https://cloud.google.com/architecture/framework"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"title": "Terraform documentation",
|
|
43
|
+
"url": "https://developer.hashicorp.com/terraform/docs"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"title": "Checkov",
|
|
47
|
+
"url": "https://www.checkov.io/"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"title": "FinOps Framework (FinOps Foundation)",
|
|
51
|
+
"url": "https://www.finops.org/framework/"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"title": "CNCF Cloud Native Landscape",
|
|
55
|
+
"url": "https://landscape.cncf.io/"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"templateParams": [
|
|
59
|
+
{
|
|
60
|
+
"key": "HOSTING",
|
|
61
|
+
"title": "Hosting",
|
|
62
|
+
"label": "How does the element run?",
|
|
63
|
+
"hint": "The hosting model decides how much of the platform the team runs itself, what the element may do (long requests, background work, state), and how it scales and is billed.",
|
|
64
|
+
"defaultValue": "paas",
|
|
65
|
+
"options": [
|
|
66
|
+
{
|
|
67
|
+
"value": "paas",
|
|
68
|
+
"label": "a managed container platform (PaaS)",
|
|
69
|
+
"description": "The provider runs the platform; you hand it a container or code. Google Cloud Run, Azure Container Apps or App Service, AWS App Runner or ECS on Fargate. Pick it by default for web apps and APIs when no platform team exists."
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"value": "kubernetes",
|
|
73
|
+
"label": "containers on Kubernetes",
|
|
74
|
+
"description": "Managed Kubernetes (EKS, AKS, GKE) or an on-premises distribution (OpenShift, Rancher). Pick it when many services share a platform run by a platform team, or workloads need what a PaaS cannot (sidecars, operators, custom networking, portability)."
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"value": "serverless",
|
|
78
|
+
"label": "serverless functions",
|
|
79
|
+
"description": "AWS Lambda, Azure Functions or Google Cloud Functions, run per event and billed per invocation. Pick it for spiky or event-driven work with short executions, when idle cost should be zero."
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"value": "vms",
|
|
83
|
+
"label": "virtual machines",
|
|
84
|
+
"description": "Virtual machines built from images, behind a load balancer. Pick it for software that cannot be containerised (licensed products, legacy runtimes, special kernels) or an on-premises virtualisation platform."
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"key": "CLOUD",
|
|
90
|
+
"title": "Cloud",
|
|
91
|
+
"label": "Where does it run?",
|
|
92
|
+
"hint": "Choose by the team's skills, existing contracts and identity, the managed services you need, and where the data may be kept. Moving later is a project.",
|
|
93
|
+
"defaultValue": "aws",
|
|
94
|
+
"options": [
|
|
95
|
+
{
|
|
96
|
+
"value": "aws",
|
|
97
|
+
"label": "Amazon Web Services",
|
|
98
|
+
"description": "The broadest set of services and regions. Pick it when the team knows AWS, or you need its specific services (DynamoDB, the widest serverless set)."
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"value": "azure",
|
|
102
|
+
"label": "Microsoft Azure",
|
|
103
|
+
"description": "Strong with Microsoft identity (Entra ID), .NET and enterprise agreements. Pick it when the organisation runs on Microsoft 365 and Entra ID, or has an Azure commitment."
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"value": "gcp",
|
|
107
|
+
"label": "Google Cloud",
|
|
108
|
+
"description": "Strong in Kubernetes (GKE), data and analytics (BigQuery) and Cloud Run. Pick it when those services decide, or the team knows Google Cloud."
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"value": "onprem",
|
|
112
|
+
"label": "our own data centre",
|
|
113
|
+
"description": "Servers and virtualisation we run. Pick it when data may not leave the premises, the load is steady enough that owned hardware is cheaper, or regulation demands it, and people run the hardware."
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"key": "IAC",
|
|
119
|
+
"title": "Infrastructure as code",
|
|
120
|
+
"label": "What describes the infrastructure in code?",
|
|
121
|
+
"hint": "Infrastructure built in a console cannot be reviewed, repeated or rebuilt; the tool decides the language, the state and which clouds it reaches.",
|
|
122
|
+
"defaultValue": "terraform",
|
|
123
|
+
"options": [
|
|
124
|
+
{
|
|
125
|
+
"value": "terraform",
|
|
126
|
+
"label": "Terraform or OpenTofu",
|
|
127
|
+
"description": "HCL with providers for every cloud and many SaaS products, state in a remote backend. Pick it by default, and whenever more than one cloud or SaaS is involved; OpenTofu when an open-source licence matters."
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"value": "pulumi",
|
|
131
|
+
"label": "Pulumi",
|
|
132
|
+
"description": "Infrastructure in TypeScript, Python, Go or C#, with the same providers. Pick it when the team would rather write infrastructure in the language it already uses, with loops, functions and tests."
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"value": "native",
|
|
136
|
+
"label": "the cloud's own (Bicep, CloudFormation or CDK)",
|
|
137
|
+
"description": "Azure Bicep, AWS CloudFormation or the AWS CDK, with state kept by the cloud. Pick it when only one cloud is used and its newest features matter on the day they ship."
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"key": "ENVIRONMENTS",
|
|
143
|
+
"title": "Environments",
|
|
144
|
+
"label": "Which environments are there?",
|
|
145
|
+
"hint": "Environments that differ from production hide its bugs; environments that are never torn down cost money every hour.",
|
|
146
|
+
"defaultValue": "staged",
|
|
147
|
+
"options": [
|
|
148
|
+
{
|
|
149
|
+
"value": "staged",
|
|
150
|
+
"label": "development, staging and production",
|
|
151
|
+
"description": "Long-lived environments, staging a scaled-down copy of production. Pick it when releases are tested together before going live, or regulation asks for a pre-production environment."
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"value": "ephemeral",
|
|
155
|
+
"label": "one per pull request, plus staging and production",
|
|
156
|
+
"description": "Each pull request gets a short-lived environment built from the same code, destroyed when it closes. Pick it when environments can be created in minutes and several changes are tested in parallel."
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"value": "minimal",
|
|
160
|
+
"label": "one test environment and production",
|
|
161
|
+
"description": "A single shared test environment, and production with canary releases. Pick it for small systems and teams that release small changes often with fast rollback."
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"key": "BUDGET_MONTHLY",
|
|
167
|
+
"label": "What is the monthly cloud budget (in the billing currency)?",
|
|
168
|
+
"defaultValue": "5000",
|
|
169
|
+
"type": "number"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"key": "BUDGET_ALERT_PERCENT",
|
|
173
|
+
"label": "At what share of the budget, forecast for the month, does an alert go out (%)?",
|
|
174
|
+
"defaultValue": "80",
|
|
175
|
+
"type": "number"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"key": "COST_STEP",
|
|
179
|
+
"label": "Above what monthly cost increase does a change need the budget owner's approval?",
|
|
180
|
+
"defaultValue": "500",
|
|
181
|
+
"type": "number"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"key": "DRIFT_HOURS",
|
|
185
|
+
"label": "Within how many hours must drift from the code be detected?",
|
|
186
|
+
"defaultValue": "24",
|
|
187
|
+
"type": "number"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"key": "EPHEMERAL_HOURS",
|
|
191
|
+
"label": "After how many hours is an idle ephemeral environment destroyed?",
|
|
192
|
+
"defaultValue": "72",
|
|
193
|
+
"type": "number"
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
"nodes": [
|
|
198
|
+
{
|
|
199
|
+
"id": "need",
|
|
200
|
+
"type": "need",
|
|
201
|
+
"label": "Runs reproducibly within budget",
|
|
202
|
+
"x": 0,
|
|
203
|
+
"y": 0,
|
|
204
|
+
"kind": "brief",
|
|
205
|
+
"source": "Hub concern pack: Infrastructure",
|
|
206
|
+
"description": "The element has to run somewhere that suits its load and the team's skills, and that somewhere has to be built from reviewed code, so it can be rebuilt after a disaster and repeated for every environment. Test environments must behave like production, nothing may change outside the code unnoticed, and the bill must stay within a known budget, with warnings before it is exceeded rather than after."
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"id": "req-iac",
|
|
210
|
+
"type": "requirement",
|
|
211
|
+
"label": "Infrastructure is code",
|
|
212
|
+
"x": 260,
|
|
213
|
+
"y": 0,
|
|
214
|
+
"ears_type": "ubiquitous",
|
|
215
|
+
"action": "define 100% of the infrastructure in {{IAC}} code in version control, applied only by the pipeline after a reviewed plan, with 0 changes made by hand to staging or production",
|
|
216
|
+
"rationale": "Code can be reviewed, repeated and rebuilt after a disaster; a console click can do none of these (AWS Well-Architected, Operational Excellence: perform operations as code)."
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"id": "req-policy",
|
|
220
|
+
"type": "requirement",
|
|
221
|
+
"label": "Plans checked against policy",
|
|
222
|
+
"x": 260,
|
|
223
|
+
"y": 130,
|
|
224
|
+
"ears_type": "event-driven",
|
|
225
|
+
"trigger": "a plan for an infrastructure change is produced",
|
|
226
|
+
"action": "check it against the security and tagging baseline (encryption at rest, no public storage, no administration port open to the internet, owner, environment and cost-centre tags on every resource) and refuse to apply it on any failed check",
|
|
227
|
+
"rationale": "Misconfiguration is the commonest cause of cloud breaches; a check before apply costs nothing compared to one after (CIS Benchmarks; Azure Well-Architected, Security)."
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"id": "req-parity",
|
|
231
|
+
"type": "requirement",
|
|
232
|
+
"label": "Environments match production",
|
|
233
|
+
"x": 260,
|
|
234
|
+
"y": 260,
|
|
235
|
+
"ears_type": "ubiquitous",
|
|
236
|
+
"action": "build every environment from the same infrastructure code and deploy the same artefacts to it, differing from production only in size and configuration values, with the same engine versions of every backing service",
|
|
237
|
+
"rationale": "Gaps between environments in time, people and tools hide the bugs that only production shows (The Twelve-Factor App, X. Dev/prod parity)."
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"id": "req-drift",
|
|
241
|
+
"type": "requirement",
|
|
242
|
+
"label": "Drift detected",
|
|
243
|
+
"x": 260,
|
|
244
|
+
"y": 390,
|
|
245
|
+
"ears_type": "unwanted-behaviour",
|
|
246
|
+
"unwanted_condition": "the running infrastructure differs from its code",
|
|
247
|
+
"action": "detect it within {{DRIFT_HOURS}} hours, report it to the owning team, and revert it or bring it into the code within 5 working days",
|
|
248
|
+
"rationale": "A change outside the code is undone or broken by the next apply, and makes the code a false description of what runs (Terraform documentation, drift; Building Evolutionary Architectures)."
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"id": "req-budget",
|
|
252
|
+
"type": "requirement",
|
|
253
|
+
"label": "Budget alerts before overspend",
|
|
254
|
+
"x": 260,
|
|
255
|
+
"y": 520,
|
|
256
|
+
"ears_type": "event-driven",
|
|
257
|
+
"trigger": "the forecast spend for the month reaches {{BUDGET_ALERT_PERCENT}}% of the budget of {{BUDGET_MONTHLY}}",
|
|
258
|
+
"action": "alert the owning team and the budget owner the same day, with the services that grew",
|
|
259
|
+
"rationale": "Cloud spend grows quietly; a forecast alert leaves time to act within the month (FinOps Framework, budget management; AWS Well-Architected, Cost Optimization)."
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"id": "req-cost-review",
|
|
263
|
+
"type": "requirement",
|
|
264
|
+
"label": "Cost shown in review",
|
|
265
|
+
"x": 260,
|
|
266
|
+
"y": 650,
|
|
267
|
+
"ears_type": "event-driven",
|
|
268
|
+
"trigger": "a change to the infrastructure code is proposed",
|
|
269
|
+
"action": "show its estimated monthly cost change in the pull request, and require the budget owner's approval when it adds more than {{COST_STEP}} a month",
|
|
270
|
+
"rationale": "The cheapest moment to question a cost is before it is incurred (FinOps Framework, shift-left cost estimation)."
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"id": "req-paas",
|
|
274
|
+
"type": "requirement",
|
|
275
|
+
"label": "Stateless and scaled",
|
|
276
|
+
"x": 260,
|
|
277
|
+
"y": 780,
|
|
278
|
+
"ears_type": "ubiquitous",
|
|
279
|
+
"action": "keep the element stateless, with no local file or session surviving an instance restart, run at least 2 instances in production and scale out automatically on load",
|
|
280
|
+
"rationale": "A platform may stop or move any instance at any time; stateless processes make that harmless (The Twelve-Factor App, VI. Processes and IX. Disposability).",
|
|
281
|
+
"hubWhen": {
|
|
282
|
+
"HOSTING": [
|
|
283
|
+
"paas"
|
|
284
|
+
]
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"id": "req-k8s",
|
|
289
|
+
"type": "requirement",
|
|
290
|
+
"label": "Workloads well specified",
|
|
291
|
+
"x": 260,
|
|
292
|
+
"y": 910,
|
|
293
|
+
"ears_type": "ubiquitous",
|
|
294
|
+
"action": "give every workload resource requests and limits, readiness and liveness probes, at least 2 replicas with a PodDisruptionBudget in production, and a non-root, read-only root file system",
|
|
295
|
+
"rationale": "Without these the scheduler cannot place, protect or restart pods correctly, and one pod can starve its node (Kubernetes documentation, configuration best practices; CIS Kubernetes Benchmark).",
|
|
296
|
+
"hubWhen": {
|
|
297
|
+
"HOSTING": [
|
|
298
|
+
"kubernetes"
|
|
299
|
+
]
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"id": "req-functions",
|
|
304
|
+
"type": "requirement",
|
|
305
|
+
"label": "Functions bounded",
|
|
306
|
+
"x": 260,
|
|
307
|
+
"y": 1040,
|
|
308
|
+
"ears_type": "ubiquitous",
|
|
309
|
+
"action": "give every function a timeout shorter than its caller's, a concurrency limit that protects what it calls, a dead-letter queue for failed events, and a 95th-percentile cold start under 1 second",
|
|
310
|
+
"rationale": "Unbounded functions scale until something downstream breaks, and silently lose failed events (AWS Well-Architected Serverless Applications Lens).",
|
|
311
|
+
"hubWhen": {
|
|
312
|
+
"HOSTING": [
|
|
313
|
+
"serverless"
|
|
314
|
+
]
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"id": "req-images",
|
|
319
|
+
"type": "requirement",
|
|
320
|
+
"label": "Machines are replaced",
|
|
321
|
+
"x": 260,
|
|
322
|
+
"y": 1170,
|
|
323
|
+
"ears_type": "ubiquitous",
|
|
324
|
+
"action": "build every machine from a versioned image and replace machines instead of changing them, with 0 changes over SSH in production and no machine running an image older than 30 days",
|
|
325
|
+
"rationale": "Machines changed by hand drift apart and cannot be rebuilt; images rebuilt monthly carry the operating system's patches (immutable infrastructure; AWS Well-Architected, Reliability).",
|
|
326
|
+
"hubWhen": {
|
|
327
|
+
"HOSTING": [
|
|
328
|
+
"vms"
|
|
329
|
+
]
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"id": "req-capacity",
|
|
334
|
+
"type": "requirement",
|
|
335
|
+
"label": "Capacity headroom kept",
|
|
336
|
+
"x": 260,
|
|
337
|
+
"y": 1300,
|
|
338
|
+
"ears_type": "state-driven",
|
|
339
|
+
"precondition": "the element runs in our own data centre",
|
|
340
|
+
"action": "keep at least 30% spare CPU, memory and storage at peak, and order hardware when the forecast shows the headroom gone within 6 months",
|
|
341
|
+
"rationale": "In a data centre new capacity takes months to arrive; the headroom absorbs growth and a failed host in the meantime (Google SRE Book, ch. 18: capacity planning).",
|
|
342
|
+
"hubWhen": {
|
|
343
|
+
"CLOUD": [
|
|
344
|
+
"onprem"
|
|
345
|
+
]
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"id": "req-ephemeral",
|
|
350
|
+
"type": "requirement",
|
|
351
|
+
"label": "Ephemeral environments cleaned up",
|
|
352
|
+
"x": 260,
|
|
353
|
+
"y": 1430,
|
|
354
|
+
"ears_type": "event-driven",
|
|
355
|
+
"trigger": "a pull request is closed, or its environment has been idle for {{EPHEMERAL_HOURS}} hours",
|
|
356
|
+
"action": "destroy its environment and everything in it within 1 hour",
|
|
357
|
+
"rationale": "Environments per pull request pay off only when they disappear; forgotten ones are the commonest waste in cloud bills (FinOps Framework, workload optimisation).",
|
|
358
|
+
"hubWhen": {
|
|
359
|
+
"ENVIRONMENTS": [
|
|
360
|
+
"ephemeral"
|
|
361
|
+
]
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"id": "req-staging",
|
|
366
|
+
"type": "requirement",
|
|
367
|
+
"label": "Staging mirrors production",
|
|
368
|
+
"x": 260,
|
|
369
|
+
"y": 1560,
|
|
370
|
+
"ears_type": "ubiquitous",
|
|
371
|
+
"action": "run staging with the same topology as production (zones, replicas of every backing service, network rules), scaled down, and promote to production only the artefact tested there",
|
|
372
|
+
"rationale": "A staging environment that differs in topology hides failover and networking bugs; promoting the tested artefact keeps the test meaningful (Humble, Farley: Continuous Delivery).",
|
|
373
|
+
"hubWhen": {
|
|
374
|
+
"ENVIRONMENTS": [
|
|
375
|
+
"staged"
|
|
376
|
+
]
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"id": "req-canary",
|
|
381
|
+
"type": "requirement",
|
|
382
|
+
"label": "Releases start as canaries",
|
|
383
|
+
"x": 260,
|
|
384
|
+
"y": 1690,
|
|
385
|
+
"ears_type": "event-driven",
|
|
386
|
+
"trigger": "a release is deployed to production",
|
|
387
|
+
"action": "send it at most 10% of traffic for at least 15 minutes, and roll it back automatically when its error rate or latency is worse than the current version's",
|
|
388
|
+
"rationale": "Without a staging environment, production is where releases are proved; a canary limits who is affected (Google SRE Workbook, canarying releases).",
|
|
389
|
+
"hubWhen": {
|
|
390
|
+
"ENVIRONMENTS": [
|
|
391
|
+
"minimal"
|
|
392
|
+
]
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"id": "sc-iac",
|
|
397
|
+
"type": "scenario",
|
|
398
|
+
"label": "Change goes through the pipeline",
|
|
399
|
+
"x": 520,
|
|
400
|
+
"y": 0,
|
|
401
|
+
"given": "a change to the infrastructure",
|
|
402
|
+
"when": "it is proposed",
|
|
403
|
+
"then": "it arrives as a pull request with a plan, and only the pipeline applies it after review"
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"id": "sc-policy",
|
|
407
|
+
"type": "scenario",
|
|
408
|
+
"label": "Public bucket refused",
|
|
409
|
+
"x": 520,
|
|
410
|
+
"y": 130,
|
|
411
|
+
"given": "a change that makes a storage bucket public and has no owner tag",
|
|
412
|
+
"when": "the pipeline checks the plan",
|
|
413
|
+
"then": "it fails naming both findings and nothing is applied"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"id": "sc-parity",
|
|
417
|
+
"type": "scenario",
|
|
418
|
+
"label": "Same code everywhere",
|
|
419
|
+
"x": 520,
|
|
420
|
+
"y": 260,
|
|
421
|
+
"given": "the staging and production definitions",
|
|
422
|
+
"when": "they are compared",
|
|
423
|
+
"then": "they use the same modules and versions, and differ only in variables for size and configuration"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"id": "sc-drift",
|
|
427
|
+
"type": "scenario",
|
|
428
|
+
"label": "Manual change found",
|
|
429
|
+
"x": 520,
|
|
430
|
+
"y": 390,
|
|
431
|
+
"given": "a security group changed by hand in the console",
|
|
432
|
+
"when": "the drift check runs",
|
|
433
|
+
"then": "within {{DRIFT_HOURS}} hours the owning team is told which resource differs and how"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"id": "sc-budget",
|
|
437
|
+
"type": "scenario",
|
|
438
|
+
"label": "Forecast alert",
|
|
439
|
+
"x": 520,
|
|
440
|
+
"y": 520,
|
|
441
|
+
"given": "a monthly budget of {{BUDGET_MONTHLY}}",
|
|
442
|
+
"when": "the forecast passes {{BUDGET_ALERT_PERCENT}}% of it",
|
|
443
|
+
"then": "the owning team and the budget owner are alerted the same day"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"id": "sc-cost-review",
|
|
447
|
+
"type": "scenario",
|
|
448
|
+
"label": "Costly change approved",
|
|
449
|
+
"x": 520,
|
|
450
|
+
"y": 650,
|
|
451
|
+
"given": "a pull request that adds a large database instance",
|
|
452
|
+
"when": "the cost estimate shows more than {{COST_STEP}} a month",
|
|
453
|
+
"then": "the pull request cannot be merged without the budget owner's approval"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"id": "sc-paas",
|
|
457
|
+
"type": "scenario",
|
|
458
|
+
"label": "Instance lost harmlessly",
|
|
459
|
+
"x": 520,
|
|
460
|
+
"y": 780,
|
|
461
|
+
"given": "two instances serving traffic",
|
|
462
|
+
"when": "one is stopped by the platform",
|
|
463
|
+
"then": "no request or session is lost beyond retries, and a replacement starts",
|
|
464
|
+
"hubWhen": {
|
|
465
|
+
"HOSTING": [
|
|
466
|
+
"paas"
|
|
467
|
+
]
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"id": "sc-k8s",
|
|
472
|
+
"type": "scenario",
|
|
473
|
+
"label": "Incomplete manifest refused",
|
|
474
|
+
"x": 520,
|
|
475
|
+
"y": 910,
|
|
476
|
+
"given": "a deployment without resource limits or a readiness probe",
|
|
477
|
+
"when": "the manifest check runs",
|
|
478
|
+
"then": "it fails naming what is missing",
|
|
479
|
+
"hubWhen": {
|
|
480
|
+
"HOSTING": [
|
|
481
|
+
"kubernetes"
|
|
482
|
+
]
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"id": "sc-functions",
|
|
487
|
+
"type": "scenario",
|
|
488
|
+
"label": "Burst stays bounded",
|
|
489
|
+
"x": 520,
|
|
490
|
+
"y": 1040,
|
|
491
|
+
"given": "a burst of events far above normal",
|
|
492
|
+
"when": "the functions process it",
|
|
493
|
+
"then": "concurrency stays at its limit, the database is not overloaded, and failed events land in the dead-letter queue",
|
|
494
|
+
"hubWhen": {
|
|
495
|
+
"HOSTING": [
|
|
496
|
+
"serverless"
|
|
497
|
+
]
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"id": "sc-images",
|
|
502
|
+
"type": "scenario",
|
|
503
|
+
"label": "Old image replaced",
|
|
504
|
+
"x": 520,
|
|
505
|
+
"y": 1170,
|
|
506
|
+
"given": "a machine running an image 31 days old",
|
|
507
|
+
"when": "the image age check runs",
|
|
508
|
+
"then": "it fails and the machine is replaced from the current image",
|
|
509
|
+
"hubWhen": {
|
|
510
|
+
"HOSTING": [
|
|
511
|
+
"vms"
|
|
512
|
+
]
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"id": "sc-capacity",
|
|
517
|
+
"type": "scenario",
|
|
518
|
+
"label": "Headroom forecast",
|
|
519
|
+
"x": 520,
|
|
520
|
+
"y": 1300,
|
|
521
|
+
"given": "the capacity report",
|
|
522
|
+
"when": "the forecast shows headroom below 30% within 6 months",
|
|
523
|
+
"then": "a hardware order is raised",
|
|
524
|
+
"hubWhen": {
|
|
525
|
+
"CLOUD": [
|
|
526
|
+
"onprem"
|
|
527
|
+
]
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"id": "sc-ephemeral",
|
|
532
|
+
"type": "scenario",
|
|
533
|
+
"label": "Environment removed",
|
|
534
|
+
"x": 520,
|
|
535
|
+
"y": 1430,
|
|
536
|
+
"given": "an ephemeral environment of a pull request",
|
|
537
|
+
"when": "the pull request is merged",
|
|
538
|
+
"then": "within 1 hour the environment and its resources are gone",
|
|
539
|
+
"hubWhen": {
|
|
540
|
+
"ENVIRONMENTS": [
|
|
541
|
+
"ephemeral"
|
|
542
|
+
]
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"id": "sc-staging",
|
|
547
|
+
"type": "scenario",
|
|
548
|
+
"label": "Tested artefact promoted",
|
|
549
|
+
"x": 520,
|
|
550
|
+
"y": 1560,
|
|
551
|
+
"given": "a build tested on staging",
|
|
552
|
+
"when": "it is released",
|
|
553
|
+
"then": "the same artefact, by digest, runs in production",
|
|
554
|
+
"hubWhen": {
|
|
555
|
+
"ENVIRONMENTS": [
|
|
556
|
+
"staged"
|
|
557
|
+
]
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"id": "sc-canary",
|
|
562
|
+
"type": "scenario",
|
|
563
|
+
"label": "Bad canary rolled back",
|
|
564
|
+
"x": 520,
|
|
565
|
+
"y": 1690,
|
|
566
|
+
"given": "a release whose error rate doubles",
|
|
567
|
+
"when": "it serves 10% of traffic",
|
|
568
|
+
"then": "it is rolled back automatically before reaching more users",
|
|
569
|
+
"hubWhen": {
|
|
570
|
+
"ENVIRONMENTS": [
|
|
571
|
+
"minimal"
|
|
572
|
+
]
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"id": "adr-paas",
|
|
577
|
+
"type": "adr",
|
|
578
|
+
"label": "Runs on a managed platform",
|
|
579
|
+
"x": 780,
|
|
580
|
+
"y": 0,
|
|
581
|
+
"concern": "infrastructure",
|
|
582
|
+
"status": "accepted",
|
|
583
|
+
"date": "",
|
|
584
|
+
"context": "This element is deployed and runs somewhere, and that somewhere has to be chosen, built and paid for. The forces: managed platforms take operations work off the team but limit what can run and tie it to a provider, while Kubernetes and virtual machines run anything at the price of running them; the cloud or data centre is chosen once and rarely left, by skills, existing contracts, services needed and where data may live; infrastructure built by hand in a console cannot be reviewed, repeated or rebuilt after a disaster; environments that differ from production hide the bugs that only production shows; cloud spend grows quietly with every resource nobody switches off; and changes made outside the code drift from it until the next apply undoes or breaks them.",
|
|
585
|
+
"decision": "The element runs as a container on a managed platform in {{CLOUD}}: Google Cloud Run, Azure Container Apps (App Service for plain web apps), or AWS App Runner or ECS on Fargate; on premises, OpenShift or a similar platform run by a platform team. Infrastructure is built with {{IAC}}; environments: {{ENVIRONMENTS}}. Monthly budget {{BUDGET_MONTHLY}}, alert at {{BUDGET_ALERT_PERCENT}}%, drift checked every {{DRIFT_HOURS}} hours. Choosing the platform: the one in the chosen cloud that runs plain containers with scale-to-zero or autoscaling and managed TLS; avoid platform-specific build packs so the container can move.",
|
|
586
|
+
"consequences": "• No nodes, clusters or operating systems to patch; scaling, TLS and rollouts come with the platform.\n• Limits on what can run: request timeouts, no privileged containers, limited networking and sidecars.\n• Tied to the provider's platform, but a plain container moves to another with little change.\n• Per-request or per-instance billing; idle cost near zero on platforms that scale to zero.",
|
|
587
|
+
"alternatives": "1. Kubernetes: runs anything, at the cost of running a cluster.\n2. Serverless functions: lower idle cost, a different programming model.\n3. Virtual machines: full control, all the operations work.",
|
|
588
|
+
"hubWhen": {
|
|
589
|
+
"HOSTING": [
|
|
590
|
+
"paas"
|
|
591
|
+
]
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"id": "adr-kubernetes",
|
|
596
|
+
"type": "adr",
|
|
597
|
+
"label": "Runs on Kubernetes",
|
|
598
|
+
"x": 780,
|
|
599
|
+
"y": 130,
|
|
600
|
+
"concern": "infrastructure",
|
|
601
|
+
"status": "accepted",
|
|
602
|
+
"date": "",
|
|
603
|
+
"context": "This element is deployed and runs somewhere, and that somewhere has to be chosen, built and paid for. The forces: managed platforms take operations work off the team but limit what can run and tie it to a provider, while Kubernetes and virtual machines run anything at the price of running them; the cloud or data centre is chosen once and rarely left, by skills, existing contracts, services needed and where data may live; infrastructure built by hand in a console cannot be reviewed, repeated or rebuilt after a disaster; environments that differ from production hide the bugs that only production shows; cloud spend grows quietly with every resource nobody switches off; and changes made outside the code drift from it until the next apply undoes or breaks them.",
|
|
604
|
+
"decision": "The element runs as containers on Kubernetes in {{CLOUD}}: Amazon EKS, Azure AKS or Google GKE (Autopilot where it fits), or OpenShift or Rancher on premises. Manifests are Helm charts or Kustomize overlays deployed by GitOps (Argo CD or Flux); the clusters themselves are built with {{IAC}}; environments: {{ENVIRONMENTS}}. Every workload has requests and limits, probes, a PodDisruptionBudget and runs as non-root. Monthly budget {{BUDGET_MONTHLY}}, alert at {{BUDGET_ALERT_PERCENT}}%, drift checked every {{DRIFT_HOURS}} hours (Argo CD shows drift of the manifests). Choose Kubernetes only with a platform team, or a managed offering that removes node operations.",
|
|
605
|
+
"consequences": "• Runs anything that fits in a container, with the same model in every cloud and on premises.\n• A platform to run: cluster upgrades every few months (each minor is supported for about 14 months), add-ons, networking, security policies.\n• A large ecosystem (CNCF) for observability, policy, service mesh and operators, each one more thing to keep up.\n• Cost depends on packing workloads well; requests that are too high waste nodes.",
|
|
606
|
+
"alternatives": "1. A managed container platform: far less to run, fewer options.\n2. Serverless functions: no cluster at all, a different programming model.\n3. Nomad or plain container hosts: simpler, smaller ecosystem.",
|
|
607
|
+
"hubWhen": {
|
|
608
|
+
"HOSTING": [
|
|
609
|
+
"kubernetes"
|
|
610
|
+
]
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"id": "adr-serverless",
|
|
615
|
+
"type": "adr",
|
|
616
|
+
"label": "Runs as serverless functions",
|
|
617
|
+
"x": 780,
|
|
618
|
+
"y": 260,
|
|
619
|
+
"concern": "infrastructure",
|
|
620
|
+
"status": "accepted",
|
|
621
|
+
"date": "",
|
|
622
|
+
"context": "This element is deployed and runs somewhere, and that somewhere has to be chosen, built and paid for. The forces: managed platforms take operations work off the team but limit what can run and tie it to a provider, while Kubernetes and virtual machines run anything at the price of running them; the cloud or data centre is chosen once and rarely left, by skills, existing contracts, services needed and where data may live; infrastructure built by hand in a console cannot be reviewed, repeated or rebuilt after a disaster; environments that differ from production hide the bugs that only production shows; cloud spend grows quietly with every resource nobody switches off; and changes made outside the code drift from it until the next apply undoes or breaks them.",
|
|
623
|
+
"decision": "The element runs as serverless functions in {{CLOUD}}: AWS Lambda, Azure Functions or Google Cloud Functions (Cloud Run functions), triggered by HTTP through an API gateway and by queues and events; on premises, Knative or OpenFaaS on the platform team's cluster. Each function has a timeout, a concurrency limit and a dead-letter queue. Infrastructure is built with {{IAC}} (or the AWS SAM or Serverless Framework on top of it); environments: {{ENVIRONMENTS}}. Monthly budget {{BUDGET_MONTHLY}}, alert at {{BUDGET_ALERT_PERCENT}}%, drift checked every {{DRIFT_HOURS}} hours. Choose functions for event-driven and spiky work with executions under a few minutes; long-running or steady-load work goes to containers.",
|
|
624
|
+
"consequences": "• No servers to run; scales from zero to large bursts, billed per invocation.\n• Cold starts add latency to the first requests; execution time, payload size and connections are limited.\n• Steady high load can cost more than containers; the bill follows traffic, so budgets and alerts matter.\n• Closely tied to the provider's events, gateway and permissions model; moving is a rewrite of the glue.",
|
|
625
|
+
"alternatives": "1. A managed container platform with scale-to-zero (Cloud Run, Container Apps): containers without cold-start limits on code shape.\n2. Kubernetes with KEDA for event-driven scaling.\n3. Virtual machines: steady cost, no limits, all the operations.",
|
|
626
|
+
"hubWhen": {
|
|
627
|
+
"HOSTING": [
|
|
628
|
+
"serverless"
|
|
629
|
+
]
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"id": "adr-vms",
|
|
634
|
+
"type": "adr",
|
|
635
|
+
"label": "Runs on virtual machines",
|
|
636
|
+
"x": 780,
|
|
637
|
+
"y": 390,
|
|
638
|
+
"concern": "infrastructure",
|
|
639
|
+
"status": "accepted",
|
|
640
|
+
"date": "",
|
|
641
|
+
"context": "This element is deployed and runs somewhere, and that somewhere has to be chosen, built and paid for. The forces: managed platforms take operations work off the team but limit what can run and tie it to a provider, while Kubernetes and virtual machines run anything at the price of running them; the cloud or data centre is chosen once and rarely left, by skills, existing contracts, services needed and where data may live; infrastructure built by hand in a console cannot be reviewed, repeated or rebuilt after a disaster; environments that differ from production hide the bugs that only production shows; cloud spend grows quietly with every resource nobody switches off; and changes made outside the code drift from it until the next apply undoes or breaks them.",
|
|
642
|
+
"decision": "The element runs on virtual machines in {{CLOUD}} (EC2 Auto Scaling groups, Azure Virtual Machine Scale Sets, Google Compute Engine managed instance groups, or VMware or Proxmox on premises), built from versioned images made with Packer and replaced rather than changed; configuration at boot with cloud-init or Ansible, and no changes over SSH in production. Infrastructure is built with {{IAC}}; environments: {{ENVIRONMENTS}}. Monthly budget {{BUDGET_MONTHLY}}, alert at {{BUDGET_ALERT_PERCENT}}%, drift checked every {{DRIFT_HOURS}} hours. Choose machines only for what cannot run in a container: licensed or legacy software, special kernels or hardware.",
|
|
643
|
+
"consequences": "• Full control: any software, any kernel, any agent.\n• All the operations work: operating system patches, image builds, scaling groups, load balancers.\n• Slower to scale and to roll out than containers; images must be rebuilt at least monthly.\n• Steady, predictable cost; reserved instances or savings plans reduce it.",
|
|
644
|
+
"alternatives": "1. A managed container platform: no machines to patch, if the software fits in a container.\n2. Kubernetes: containers with control, plus a cluster to run.\n3. Configuration management on long-lived machines (Ansible, Puppet): familiar, but machines drift apart.",
|
|
645
|
+
"hubWhen": {
|
|
646
|
+
"HOSTING": [
|
|
647
|
+
"vms"
|
|
648
|
+
]
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"id": "ff-checkov",
|
|
653
|
+
"type": "fitness-fn",
|
|
654
|
+
"label": "Plans pass policy",
|
|
655
|
+
"x": 1040,
|
|
656
|
+
"y": 0,
|
|
657
|
+
"category": "structural",
|
|
658
|
+
"threshold": "0 failed Checkov checks of the baseline (encryption, public access, open admin ports) and 0 resources without owner, environment and cost-centre tags",
|
|
659
|
+
"description": "Checkov scans the Terraform plan (or the CloudFormation or Bicep templates) in every pull request with its built-in checks and a custom tagging policy, and fails on any finding. Terraform users can add Conftest policies over the plan JSON for rules of their own.\n\nTool: Checkov\n\n```yaml\n# policies/required_tags.yaml (custom check, run with --external-checks-dir policies)\nmetadata:\n id: CKV2_ORG_TAGS\n name: Resources carry owner, environment and cost-centre tags\n category: GENERAL_SECURITY\ndefinition:\n and:\n - { cond_type: attribute, resource_types: [aws_instance, aws_db_instance, aws_s3_bucket, aws_ecs_service, aws_lambda_function], attribute: tags.owner, operator: exists }\n - { cond_type: attribute, resource_types: [aws_instance, aws_db_instance, aws_s3_bucket, aws_ecs_service, aws_lambda_function], attribute: tags.environment, operator: exists }\n - { cond_type: attribute, resource_types: [aws_instance, aws_db_instance, aws_s3_bucket, aws_ecs_service, aws_lambda_function], attribute: tags.cost-centre, operator: exists }\n# CI:\n# terraform plan -out tf.plan && terraform show -json tf.plan > tf.json\n# checkov -f tf.json --framework terraform_plan --external-checks-dir policies --compact\n```",
|
|
660
|
+
"hubWhen": {
|
|
661
|
+
"IAC": [
|
|
662
|
+
"terraform",
|
|
663
|
+
"native"
|
|
664
|
+
]
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"id": "ff-crossguard",
|
|
669
|
+
"type": "fitness-fn",
|
|
670
|
+
"label": "Previews pass policy",
|
|
671
|
+
"x": 1040,
|
|
672
|
+
"y": 130,
|
|
673
|
+
"category": "structural",
|
|
674
|
+
"threshold": "0 mandatory policy violations in the preview of every pull request",
|
|
675
|
+
"description": "A Pulumi CrossGuard policy pack runs with every preview and update and stops on a mandatory violation: missing tags, unencrypted storage, public buckets.\n\nTool: Pulumi CrossGuard\n\n```ts\n// policy/index.ts — pulumi preview --policy-pack policy\nimport { PolicyPack, validateResourceOfType } from '@pulumi/policy'\nimport * as aws from '@pulumi/aws'\n\nnew PolicyPack('baseline', {\n policies: [\n {\n name: 'required-tags', enforcementLevel: 'mandatory',\n description: 'Every bucket carries owner, environment and cost-centre tags.',\n validateResource: validateResourceOfType(aws.s3.BucketV2, (bucket, _args, report) => {\n for (const tag of ['owner', 'environment', 'cost-centre']) {\n if (!bucket.tags?.[tag]) report(`missing tag \"${tag}\"`)\n }\n }),\n },\n {\n name: 'no-public-buckets', enforcementLevel: 'mandatory',\n description: 'Public access is blocked on every bucket.',\n validateResource: validateResourceOfType(aws.s3.BucketPublicAccessBlock, (block, _args, report) => {\n if (!block.blockPublicAcls || !block.blockPublicPolicy) report('public access must be blocked')\n }),\n },\n ],\n})\n```",
|
|
676
|
+
"hubWhen": {
|
|
677
|
+
"IAC": [
|
|
678
|
+
"pulumi"
|
|
679
|
+
]
|
|
680
|
+
}
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"id": "ff-drift-terraform",
|
|
684
|
+
"type": "fitness-fn",
|
|
685
|
+
"label": "Drift detected",
|
|
686
|
+
"x": 1040,
|
|
687
|
+
"y": 260,
|
|
688
|
+
"category": "operational",
|
|
689
|
+
"threshold": "A drift check every {{DRIFT_HOURS}} hours per environment; 0 unexplained differences between code and infrastructure",
|
|
690
|
+
"description": "A scheduled pipeline runs a refresh-only plan for each environment; exit code 2 means the infrastructure differs from the code, and the job opens an issue for the owning team.\n\nTool: Terraform (plan -detailed-exitcode)\n\n```bash\n#!/usr/bin/env bash\n# scheduled every {{DRIFT_HOURS}} hours per environment\nset -uo pipefail\nterraform init -input=false >/dev/null\nterraform plan -refresh-only -detailed-exitcode -input=false -no-color > drift.txt\ncase $? in\n 0) echo \"no drift\" ;;\n 2) gh issue create --title \"Drift in $ENVIRONMENT\" --body-file drift.txt --label drift; exit 1 ;;\n *) echo \"plan failed\"; exit 1 ;;\nesac\n```",
|
|
691
|
+
"hubWhen": {
|
|
692
|
+
"IAC": [
|
|
693
|
+
"terraform"
|
|
694
|
+
]
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"id": "ff-drift-pulumi",
|
|
699
|
+
"type": "fitness-fn",
|
|
700
|
+
"label": "Drift detected",
|
|
701
|
+
"x": 1040,
|
|
702
|
+
"y": 390,
|
|
703
|
+
"category": "operational",
|
|
704
|
+
"threshold": "A drift check every {{DRIFT_HOURS}} hours per stack; 0 unexplained differences between code and infrastructure",
|
|
705
|
+
"description": "A scheduled pipeline refreshes each stack in preview and fails when anything changed outside the code; Pulumi Deployments can run the same as a scheduled drift detection.\n\nTool: Pulumi (preview --refresh --expect-no-changes)\n\n```bash\n#!/usr/bin/env bash\n# scheduled every {{DRIFT_HOURS}} hours per stack\nset -euo pipefail\npulumi stack select \"$STACK\"\npulumi preview --refresh --expect-no-changes --diff --non-interactive\n```",
|
|
706
|
+
"hubWhen": {
|
|
707
|
+
"IAC": [
|
|
708
|
+
"pulumi"
|
|
709
|
+
]
|
|
710
|
+
}
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
"id": "ff-drift-native",
|
|
714
|
+
"type": "fitness-fn",
|
|
715
|
+
"label": "Drift detected",
|
|
716
|
+
"x": 1040,
|
|
717
|
+
"y": 520,
|
|
718
|
+
"category": "operational",
|
|
719
|
+
"threshold": "A drift check every {{DRIFT_HOURS}} hours per stack; 0 stacks in DRIFTED state",
|
|
720
|
+
"description": "A scheduled job starts CloudFormation drift detection on every stack and fails when one is DRIFTED. With Bicep, `az deployment group what-if` against the deployed template shows the same.\n\nTool: AWS CloudFormation drift detection (AWS CLI)\n\n```bash\n#!/usr/bin/env bash\n# scheduled every {{DRIFT_HOURS}} hours\nset -euo pipefail\nfor stack in $(aws cloudformation list-stacks --stack-status-filter CREATE_COMPLETE UPDATE_COMPLETE \\\n --query 'StackSummaries[].StackName' --output text); do\n id=$(aws cloudformation detect-stack-drift --stack-name \"$stack\" --query StackDriftDetectionId --output text)\n until [ \"$(aws cloudformation describe-stack-drift-detection-status --stack-drift-detection-id \"$id\" \\\n --query DetectionStatus --output text)\" != DETECTION_IN_PROGRESS ]; do sleep 5; done\n status=$(aws cloudformation describe-stack-drift-detection-status --stack-drift-detection-id \"$id\" \\\n --query StackDriftStatus --output text)\n [ \"$status\" = DRIFTED ] && { echo \"$stack has drifted\"; failed=1; }\ndone\nexit ${failed:-0}\n```",
|
|
721
|
+
"hubWhen": {
|
|
722
|
+
"IAC": [
|
|
723
|
+
"native"
|
|
724
|
+
]
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
"id": "ff-budget",
|
|
729
|
+
"type": "fitness-fn",
|
|
730
|
+
"label": "Budget alert in place",
|
|
731
|
+
"x": 1040,
|
|
732
|
+
"y": 650,
|
|
733
|
+
"category": "operational",
|
|
734
|
+
"threshold": "A monthly budget of {{BUDGET_MONTHLY}} with a forecast alert at {{BUDGET_ALERT_PERCENT}}% exists for every account or subscription, defined in code",
|
|
735
|
+
"description": "The budget and its forecast alert are part of the infrastructure code, so every account gets one. Azure: azurerm_consumption_budget_subscription; Google Cloud: google_billing_budget; on premises: chargeback reports from the virtualisation platform.\n\nTool: AWS Budgets (Terraform aws_budgets_budget)\n\n```hcl\nresource \"aws_budgets_budget\" \"monthly\" {\n name = \"${var.system}-${var.environment}-monthly\"\n budget_type = \"COST\"\n limit_amount = \"{{BUDGET_MONTHLY}}\"\n limit_unit = \"USD\"\n time_unit = \"MONTHLY\"\n\n notification {\n comparison_operator = \"GREATER_THAN\"\n threshold = {{BUDGET_ALERT_PERCENT}}\n threshold_type = \"PERCENTAGE\"\n notification_type = \"FORECASTED\"\n subscriber_email_addresses = [var.owner_email, var.budget_owner_email]\n }\n}\n```"
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
"id": "ff-infracost",
|
|
739
|
+
"type": "fitness-fn",
|
|
740
|
+
"label": "Cost change in review",
|
|
741
|
+
"x": 1040,
|
|
742
|
+
"y": 780,
|
|
743
|
+
"category": "process",
|
|
744
|
+
"threshold": "100% of infrastructure pull requests show the monthly cost change; above {{COST_STEP}} a month the budget owner must approve",
|
|
745
|
+
"description": "Infracost compares the cost of the pull request's Terraform with the main branch and comments the difference; a step fails the check above the limit until the budget owner approves.\n\nTool: Infracost\n\n```bash\ninfracost breakdown --path . --format json --out-file base.json # on main\ninfracost diff --path . --compare-to base.json --format json --out-file diff.json\ninfracost comment github --path diff.json --repo \"$GITHUB_REPOSITORY\" \\\n --pull-request \"$PR_NUMBER\" --github-token \"$GITHUB_TOKEN\" --behavior update\nincrease=$(jq -r '.diffTotalMonthlyCost | tonumber | floor' diff.json)\n[ \"$increase\" -le {{COST_STEP}} ] || { echo \"adds $increase a month: budget owner approval needed\"; exit 1; }\n```",
|
|
746
|
+
"hubWhen": {
|
|
747
|
+
"IAC": [
|
|
748
|
+
"terraform"
|
|
749
|
+
]
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"id": "ff-kube-score",
|
|
754
|
+
"type": "fitness-fn",
|
|
755
|
+
"label": "Manifests well specified",
|
|
756
|
+
"x": 1040,
|
|
757
|
+
"y": 910,
|
|
758
|
+
"category": "structural",
|
|
759
|
+
"threshold": "0 critical kube-score findings (missing limits, probes, PodDisruptionBudget, root user) in rendered manifests",
|
|
760
|
+
"description": "The rendered manifests of every chart or overlay are scored in each pull request; a critical finding fails the build.\n\nTool: kube-score\n\n```bash\nhelm template order-api charts/order-api -f charts/order-api/values-production.yaml \\\n | kube-score score - --output-format ci \\\n --enable-optional-test container-security-context-readonlyrootfilesystem\n```",
|
|
761
|
+
"hubWhen": {
|
|
762
|
+
"HOSTING": [
|
|
763
|
+
"kubernetes"
|
|
764
|
+
]
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"id": "ff-ephemeral-ttl",
|
|
769
|
+
"type": "fitness-fn",
|
|
770
|
+
"label": "No forgotten environments",
|
|
771
|
+
"x": 1040,
|
|
772
|
+
"y": 1040,
|
|
773
|
+
"category": "operational",
|
|
774
|
+
"threshold": "0 ephemeral environments idle for more than {{EPHEMERAL_HOURS}} hours or alive after their pull request closed",
|
|
775
|
+
"description": "A scheduled job lists the namespaces labelled as ephemeral, deletes those whose pull request is closed or that have been idle past the limit, and reports what it removed.\n\nTool: kubectl with GitHub CLI (scheduled job)\n\n```bash\n#!/usr/bin/env bash\nset -euo pipefail\nlimit=$(( $(date +%s) - {{EPHEMERAL_HOURS}} * 3600 ))\nkubectl get ns -l env-type=ephemeral -o json | jq -r '.items[] | [.metadata.name, .metadata.labels.pr, .metadata.annotations[\"last-deploy\"]] | @tsv' |\nwhile IFS=$'\\t' read -r ns pr last; do\n state=$(gh pr view \"$pr\" --json state -q .state)\n if [ \"$state\" != OPEN ] || [ \"$(date -d \"$last\" +%s)\" -lt \"$limit\" ]; then\n echo \"deleting $ns (PR $pr $state, last deploy $last)\"; kubectl delete ns \"$ns\" --wait=false\n fi\ndone\n```",
|
|
776
|
+
"hubWhen": {
|
|
777
|
+
"ENVIRONMENTS": [
|
|
778
|
+
"ephemeral"
|
|
779
|
+
]
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
],
|
|
783
|
+
"relations": [
|
|
784
|
+
{
|
|
785
|
+
"id": "req-iac--derives--need",
|
|
786
|
+
"sourceId": "req-iac",
|
|
787
|
+
"targetId": "need",
|
|
788
|
+
"relationType": "derives"
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
"id": "req-policy--derives--need",
|
|
792
|
+
"sourceId": "req-policy",
|
|
793
|
+
"targetId": "need",
|
|
794
|
+
"relationType": "derives"
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"id": "req-parity--derives--need",
|
|
798
|
+
"sourceId": "req-parity",
|
|
799
|
+
"targetId": "need",
|
|
800
|
+
"relationType": "derives"
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"id": "req-drift--derives--need",
|
|
804
|
+
"sourceId": "req-drift",
|
|
805
|
+
"targetId": "need",
|
|
806
|
+
"relationType": "derives"
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"id": "req-budget--derives--need",
|
|
810
|
+
"sourceId": "req-budget",
|
|
811
|
+
"targetId": "need",
|
|
812
|
+
"relationType": "derives"
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
"id": "req-cost-review--derives--need",
|
|
816
|
+
"sourceId": "req-cost-review",
|
|
817
|
+
"targetId": "need",
|
|
818
|
+
"relationType": "derives"
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"id": "req-paas--derives--need",
|
|
822
|
+
"sourceId": "req-paas",
|
|
823
|
+
"targetId": "need",
|
|
824
|
+
"relationType": "derives"
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
"id": "req-k8s--derives--need",
|
|
828
|
+
"sourceId": "req-k8s",
|
|
829
|
+
"targetId": "need",
|
|
830
|
+
"relationType": "derives"
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"id": "req-functions--derives--need",
|
|
834
|
+
"sourceId": "req-functions",
|
|
835
|
+
"targetId": "need",
|
|
836
|
+
"relationType": "derives"
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
"id": "req-images--derives--need",
|
|
840
|
+
"sourceId": "req-images",
|
|
841
|
+
"targetId": "need",
|
|
842
|
+
"relationType": "derives"
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"id": "req-capacity--derives--need",
|
|
846
|
+
"sourceId": "req-capacity",
|
|
847
|
+
"targetId": "need",
|
|
848
|
+
"relationType": "derives"
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
"id": "req-ephemeral--derives--need",
|
|
852
|
+
"sourceId": "req-ephemeral",
|
|
853
|
+
"targetId": "need",
|
|
854
|
+
"relationType": "derives"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"id": "req-staging--derives--need",
|
|
858
|
+
"sourceId": "req-staging",
|
|
859
|
+
"targetId": "need",
|
|
860
|
+
"relationType": "derives"
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"id": "req-canary--derives--need",
|
|
864
|
+
"sourceId": "req-canary",
|
|
865
|
+
"targetId": "need",
|
|
866
|
+
"relationType": "derives"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"id": "sc-iac--verifies--req-iac",
|
|
870
|
+
"sourceId": "sc-iac",
|
|
871
|
+
"targetId": "req-iac",
|
|
872
|
+
"relationType": "verifies"
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"id": "sc-policy--verifies--req-policy",
|
|
876
|
+
"sourceId": "sc-policy",
|
|
877
|
+
"targetId": "req-policy",
|
|
878
|
+
"relationType": "verifies"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"id": "sc-parity--verifies--req-parity",
|
|
882
|
+
"sourceId": "sc-parity",
|
|
883
|
+
"targetId": "req-parity",
|
|
884
|
+
"relationType": "verifies"
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"id": "sc-drift--verifies--req-drift",
|
|
888
|
+
"sourceId": "sc-drift",
|
|
889
|
+
"targetId": "req-drift",
|
|
890
|
+
"relationType": "verifies"
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"id": "sc-budget--verifies--req-budget",
|
|
894
|
+
"sourceId": "sc-budget",
|
|
895
|
+
"targetId": "req-budget",
|
|
896
|
+
"relationType": "verifies"
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"id": "sc-cost-review--verifies--req-cost-review",
|
|
900
|
+
"sourceId": "sc-cost-review",
|
|
901
|
+
"targetId": "req-cost-review",
|
|
902
|
+
"relationType": "verifies"
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"id": "sc-paas--verifies--req-paas",
|
|
906
|
+
"sourceId": "sc-paas",
|
|
907
|
+
"targetId": "req-paas",
|
|
908
|
+
"relationType": "verifies"
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
"id": "sc-k8s--verifies--req-k8s",
|
|
912
|
+
"sourceId": "sc-k8s",
|
|
913
|
+
"targetId": "req-k8s",
|
|
914
|
+
"relationType": "verifies"
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"id": "sc-functions--verifies--req-functions",
|
|
918
|
+
"sourceId": "sc-functions",
|
|
919
|
+
"targetId": "req-functions",
|
|
920
|
+
"relationType": "verifies"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"id": "sc-images--verifies--req-images",
|
|
924
|
+
"sourceId": "sc-images",
|
|
925
|
+
"targetId": "req-images",
|
|
926
|
+
"relationType": "verifies"
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"id": "sc-capacity--verifies--req-capacity",
|
|
930
|
+
"sourceId": "sc-capacity",
|
|
931
|
+
"targetId": "req-capacity",
|
|
932
|
+
"relationType": "verifies"
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
"id": "sc-ephemeral--verifies--req-ephemeral",
|
|
936
|
+
"sourceId": "sc-ephemeral",
|
|
937
|
+
"targetId": "req-ephemeral",
|
|
938
|
+
"relationType": "verifies"
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"id": "sc-staging--verifies--req-staging",
|
|
942
|
+
"sourceId": "sc-staging",
|
|
943
|
+
"targetId": "req-staging",
|
|
944
|
+
"relationType": "verifies"
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"id": "sc-canary--verifies--req-canary",
|
|
948
|
+
"sourceId": "sc-canary",
|
|
949
|
+
"targetId": "req-canary",
|
|
950
|
+
"relationType": "verifies"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"id": "ff-checkov--implements--adr-paas",
|
|
954
|
+
"sourceId": "ff-checkov",
|
|
955
|
+
"targetId": "adr-paas",
|
|
956
|
+
"relationType": "implements"
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"id": "ff-checkov--implements--adr-kubernetes",
|
|
960
|
+
"sourceId": "ff-checkov",
|
|
961
|
+
"targetId": "adr-kubernetes",
|
|
962
|
+
"relationType": "implements"
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"id": "ff-checkov--implements--adr-serverless",
|
|
966
|
+
"sourceId": "ff-checkov",
|
|
967
|
+
"targetId": "adr-serverless",
|
|
968
|
+
"relationType": "implements"
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"id": "ff-checkov--implements--adr-vms",
|
|
972
|
+
"sourceId": "ff-checkov",
|
|
973
|
+
"targetId": "adr-vms",
|
|
974
|
+
"relationType": "implements"
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
"id": "ff-crossguard--implements--adr-paas",
|
|
978
|
+
"sourceId": "ff-crossguard",
|
|
979
|
+
"targetId": "adr-paas",
|
|
980
|
+
"relationType": "implements"
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"id": "ff-crossguard--implements--adr-kubernetes",
|
|
984
|
+
"sourceId": "ff-crossguard",
|
|
985
|
+
"targetId": "adr-kubernetes",
|
|
986
|
+
"relationType": "implements"
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"id": "ff-crossguard--implements--adr-serverless",
|
|
990
|
+
"sourceId": "ff-crossguard",
|
|
991
|
+
"targetId": "adr-serverless",
|
|
992
|
+
"relationType": "implements"
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
"id": "ff-crossguard--implements--adr-vms",
|
|
996
|
+
"sourceId": "ff-crossguard",
|
|
997
|
+
"targetId": "adr-vms",
|
|
998
|
+
"relationType": "implements"
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
"id": "ff-drift-terraform--implements--adr-paas",
|
|
1002
|
+
"sourceId": "ff-drift-terraform",
|
|
1003
|
+
"targetId": "adr-paas",
|
|
1004
|
+
"relationType": "implements"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"id": "ff-drift-terraform--implements--adr-kubernetes",
|
|
1008
|
+
"sourceId": "ff-drift-terraform",
|
|
1009
|
+
"targetId": "adr-kubernetes",
|
|
1010
|
+
"relationType": "implements"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"id": "ff-drift-terraform--implements--adr-serverless",
|
|
1014
|
+
"sourceId": "ff-drift-terraform",
|
|
1015
|
+
"targetId": "adr-serverless",
|
|
1016
|
+
"relationType": "implements"
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"id": "ff-drift-terraform--implements--adr-vms",
|
|
1020
|
+
"sourceId": "ff-drift-terraform",
|
|
1021
|
+
"targetId": "adr-vms",
|
|
1022
|
+
"relationType": "implements"
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"id": "ff-drift-pulumi--implements--adr-paas",
|
|
1026
|
+
"sourceId": "ff-drift-pulumi",
|
|
1027
|
+
"targetId": "adr-paas",
|
|
1028
|
+
"relationType": "implements"
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"id": "ff-drift-pulumi--implements--adr-kubernetes",
|
|
1032
|
+
"sourceId": "ff-drift-pulumi",
|
|
1033
|
+
"targetId": "adr-kubernetes",
|
|
1034
|
+
"relationType": "implements"
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
"id": "ff-drift-pulumi--implements--adr-serverless",
|
|
1038
|
+
"sourceId": "ff-drift-pulumi",
|
|
1039
|
+
"targetId": "adr-serverless",
|
|
1040
|
+
"relationType": "implements"
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"id": "ff-drift-pulumi--implements--adr-vms",
|
|
1044
|
+
"sourceId": "ff-drift-pulumi",
|
|
1045
|
+
"targetId": "adr-vms",
|
|
1046
|
+
"relationType": "implements"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"id": "ff-drift-native--implements--adr-paas",
|
|
1050
|
+
"sourceId": "ff-drift-native",
|
|
1051
|
+
"targetId": "adr-paas",
|
|
1052
|
+
"relationType": "implements"
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"id": "ff-drift-native--implements--adr-kubernetes",
|
|
1056
|
+
"sourceId": "ff-drift-native",
|
|
1057
|
+
"targetId": "adr-kubernetes",
|
|
1058
|
+
"relationType": "implements"
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"id": "ff-drift-native--implements--adr-serverless",
|
|
1062
|
+
"sourceId": "ff-drift-native",
|
|
1063
|
+
"targetId": "adr-serverless",
|
|
1064
|
+
"relationType": "implements"
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
"id": "ff-drift-native--implements--adr-vms",
|
|
1068
|
+
"sourceId": "ff-drift-native",
|
|
1069
|
+
"targetId": "adr-vms",
|
|
1070
|
+
"relationType": "implements"
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"id": "ff-budget--implements--adr-paas",
|
|
1074
|
+
"sourceId": "ff-budget",
|
|
1075
|
+
"targetId": "adr-paas",
|
|
1076
|
+
"relationType": "implements"
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
"id": "ff-budget--implements--adr-kubernetes",
|
|
1080
|
+
"sourceId": "ff-budget",
|
|
1081
|
+
"targetId": "adr-kubernetes",
|
|
1082
|
+
"relationType": "implements"
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
"id": "ff-budget--implements--adr-serverless",
|
|
1086
|
+
"sourceId": "ff-budget",
|
|
1087
|
+
"targetId": "adr-serverless",
|
|
1088
|
+
"relationType": "implements"
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
"id": "ff-budget--implements--adr-vms",
|
|
1092
|
+
"sourceId": "ff-budget",
|
|
1093
|
+
"targetId": "adr-vms",
|
|
1094
|
+
"relationType": "implements"
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
"id": "ff-infracost--implements--adr-paas",
|
|
1098
|
+
"sourceId": "ff-infracost",
|
|
1099
|
+
"targetId": "adr-paas",
|
|
1100
|
+
"relationType": "implements"
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"id": "ff-infracost--implements--adr-kubernetes",
|
|
1104
|
+
"sourceId": "ff-infracost",
|
|
1105
|
+
"targetId": "adr-kubernetes",
|
|
1106
|
+
"relationType": "implements"
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
"id": "ff-infracost--implements--adr-serverless",
|
|
1110
|
+
"sourceId": "ff-infracost",
|
|
1111
|
+
"targetId": "adr-serverless",
|
|
1112
|
+
"relationType": "implements"
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
"id": "ff-infracost--implements--adr-vms",
|
|
1116
|
+
"sourceId": "ff-infracost",
|
|
1117
|
+
"targetId": "adr-vms",
|
|
1118
|
+
"relationType": "implements"
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
"id": "ff-kube-score--implements--adr-kubernetes",
|
|
1122
|
+
"sourceId": "ff-kube-score",
|
|
1123
|
+
"targetId": "adr-kubernetes",
|
|
1124
|
+
"relationType": "implements"
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
"id": "ff-ephemeral-ttl--implements--adr-paas",
|
|
1128
|
+
"sourceId": "ff-ephemeral-ttl",
|
|
1129
|
+
"targetId": "adr-paas",
|
|
1130
|
+
"relationType": "implements"
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"id": "ff-ephemeral-ttl--implements--adr-kubernetes",
|
|
1134
|
+
"sourceId": "ff-ephemeral-ttl",
|
|
1135
|
+
"targetId": "adr-kubernetes",
|
|
1136
|
+
"relationType": "implements"
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
"id": "ff-ephemeral-ttl--implements--adr-serverless",
|
|
1140
|
+
"sourceId": "ff-ephemeral-ttl",
|
|
1141
|
+
"targetId": "adr-serverless",
|
|
1142
|
+
"relationType": "implements"
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
"id": "ff-ephemeral-ttl--implements--adr-vms",
|
|
1146
|
+
"sourceId": "ff-ephemeral-ttl",
|
|
1147
|
+
"targetId": "adr-vms",
|
|
1148
|
+
"relationType": "implements"
|
|
1149
|
+
}
|
|
1150
|
+
]
|
|
1151
|
+
}
|