@radicaltools/mcp 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-Z7THA3L5.js → chunk-2SZDTOYJ.js} +65 -33
- package/dist/{elkLayout-TAUBPPVN.js → elkLayout-VYJDCCIT.js} +1 -1
- package/dist/hub-catalogue/concern/concern-api-collections.radical +1136 -0
- package/dist/hub-catalogue/concern/concern-api-errors.radical +1180 -0
- package/dist/hub-catalogue/concern/concern-api-evolution.radical +449 -210
- package/dist/hub-catalogue/concern/concern-api-idempotency.radical +1218 -0
- package/dist/hub-catalogue/concern/concern-api-resource-design.radical +1102 -0
- package/dist/hub-catalogue/concern/concern-api-style-guide.radical +1210 -0
- package/dist/hub-catalogue/concern/concern-architecture-style.radical +287 -131
- package/dist/hub-catalogue/concern/concern-audit-trail.radical +1096 -0
- package/dist/hub-catalogue/concern/concern-authentication.radical +247 -37
- package/dist/hub-catalogue/concern/concern-authorization.radical +311 -89
- package/dist/hub-catalogue/concern/concern-availability.radical +287 -63
- package/dist/hub-catalogue/concern/concern-backend-stack.radical +300 -381
- package/dist/hub-catalogue/concern/concern-backup-recovery.radical +385 -129
- package/dist/hub-catalogue/concern/concern-caching.radical +1294 -0
- package/dist/hub-catalogue/concern/concern-capacity.radical +194 -81
- package/dist/hub-catalogue/concern/concern-code-documentation.radical +1397 -0
- package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +1409 -0
- package/dist/hub-catalogue/concern/concern-code-review-branching.radical +1416 -0
- package/dist/hub-catalogue/concern/concern-code-style.radical +1058 -0
- package/dist/hub-catalogue/concern/concern-communication-style.radical +473 -167
- package/dist/hub-catalogue/concern/concern-data-classification.radical +970 -0
- package/dist/hub-catalogue/concern/concern-data-consistency.radical +339 -308
- package/dist/hub-catalogue/concern/concern-data-store.radical +480 -158
- package/dist/hub-catalogue/concern/concern-decomposition.radical +260 -85
- package/dist/hub-catalogue/concern/concern-definition-of-done.radical +1214 -0
- package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +966 -0
- package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +1345 -0
- package/dist/hub-catalogue/concern/concern-deployment.radical +343 -92
- package/dist/hub-catalogue/concern/concern-encryption.radical +339 -76
- package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +1197 -0
- package/dist/hub-catalogue/concern/concern-eu-dora.radical +1321 -0
- package/dist/hub-catalogue/concern/concern-frontend-stack.radical +467 -160
- package/dist/hub-catalogue/concern/concern-incident-management.radical +1204 -0
- package/dist/hub-catalogue/concern/concern-infrastructure.radical +1300 -268
- package/dist/hub-catalogue/concern/concern-integration-resilience.radical +88 -51
- package/dist/hub-catalogue/concern/concern-messaging.radical +173 -140
- package/dist/hub-catalogue/concern/concern-module-boundaries.radical +162 -159
- package/dist/hub-catalogue/concern/concern-observability.radical +224 -275
- package/dist/hub-catalogue/concern/concern-operational-readiness.radical +1249 -0
- package/dist/hub-catalogue/concern/concern-personal-data.radical +637 -122
- package/dist/hub-catalogue/concern/concern-quality-priorities.radical +1091 -0
- package/dist/hub-catalogue/concern/concern-rate-limiting.radical +433 -141
- package/dist/hub-catalogue/concern/concern-release-versioning.radical +1358 -0
- package/dist/hub-catalogue/concern/concern-retention.radical +1399 -0
- package/dist/hub-catalogue/concern/concern-secrets.radical +332 -74
- package/dist/hub-catalogue/concern/concern-secure-coding.radical +1379 -0
- package/dist/hub-catalogue/concern/concern-secure-development.radical +1245 -0
- package/dist/hub-catalogue/concern/concern-security-detection.radical +1153 -0
- package/dist/hub-catalogue/concern/concern-supply-chain.radical +257 -183
- package/dist/hub-catalogue/concern/concern-technical-debt.radical +1450 -0
- package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +1145 -0
- package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +271 -137
- package/dist/hub-catalogue/concern/concern-test-strategy.radical +243 -224
- package/dist/hub-catalogue/concern/concern-threat-modelling.radical +1143 -0
- package/dist/index.js +1001 -230
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"id": "backup-recovery",
|
|
18
18
|
"trigger": "LIST NODES WHERE type = \"database\" AND external != true",
|
|
19
19
|
"why": "these stores hold what may not be recomputable, so how much may be lost, how fast it comes back and where the copies are kept has to be decided.",
|
|
20
|
-
"group": "
|
|
20
|
+
"group": "operability"
|
|
21
21
|
},
|
|
22
22
|
"sources": [
|
|
23
23
|
{
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"url": "https://docs.aws.amazon.com/whitepapers/latest/disaster-recovery-workloads-on-aws/disaster-recovery-workloads-on-aws.html"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
|
-
"title": "AWS Well-Architected Framework, Reliability Pillar (REL09 back up data, REL13 plan for disaster recovery)",
|
|
32
|
+
"title": "AWS Well-Architected Framework, Reliability Pillar (REL09 back up data, REL10 fault isolation, REL13 plan for disaster recovery)",
|
|
33
33
|
"url": "https://docs.aws.amazon.com/wellarchitected/latest/reliability-pillar/welcome.html"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
@@ -39,6 +39,10 @@
|
|
|
39
39
|
{
|
|
40
40
|
"title": "CISA #StopRansomware Guide (offline, immutable backups)",
|
|
41
41
|
"url": "https://www.cisa.gov/stopransomware/ransomware-guide"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"title": "PostgreSQL documentation: Continuous Archiving and Point-in-Time Recovery",
|
|
45
|
+
"url": "https://www.postgresql.org/docs/current/continuous-archiving.html"
|
|
42
46
|
}
|
|
43
47
|
],
|
|
44
48
|
"templateParams": [
|
|
@@ -52,7 +56,7 @@
|
|
|
52
56
|
{
|
|
53
57
|
"value": "sync",
|
|
54
58
|
"label": "synchronous replication",
|
|
55
|
-
"description": "Every write is acknowledged only once a second zone or region has it,
|
|
59
|
+
"description": "Every write is acknowledged only once a second zone or region has it, so a lost store loses no acknowledged write; backups with their own RPO still cover mistakes and attacks, since replication copies them. Pick it for payments, ledgers, anything a customer was told is saved and cannot be redone."
|
|
56
60
|
},
|
|
57
61
|
{
|
|
58
62
|
"value": "pitr",
|
|
@@ -67,7 +71,7 @@
|
|
|
67
71
|
{
|
|
68
72
|
"value": "rebuild",
|
|
69
73
|
"label": "rebuilt from its sources",
|
|
70
|
-
"description": "A cache, search index, read model or projection that can be rebuilt from the stores or event log it is derived from. Pick it only when nothing is written to it first and the rebuild fits in the RTO."
|
|
74
|
+
"description": "A cache, search index, read model or projection that can be rebuilt from the stores or event log it is derived from. Pick it only when nothing is written to it first and the rebuild fits in the RTO; the copy location and region questions are then moot."
|
|
71
75
|
}
|
|
72
76
|
]
|
|
73
77
|
},
|
|
@@ -75,22 +79,22 @@
|
|
|
75
79
|
"key": "COPIES",
|
|
76
80
|
"title": "Copy location",
|
|
77
81
|
"label": "Where are the copies kept?",
|
|
78
|
-
"hint": "A copy that the same credentials can delete, or that sits in the same region, is lost together with the store; the 3-2-1 rule asks for three copies on two kinds of media, one of them off-site.",
|
|
82
|
+
"hint": "A copy that the same credentials can delete, or that sits in the same region, is lost together with the store; the 3-2-1 rule asks for three copies on two kinds of media, one of them off-site. Only when the store is copied (not with rebuilt from its sources).",
|
|
79
83
|
"defaultValue": "vault",
|
|
80
84
|
"options": [
|
|
81
85
|
{
|
|
82
86
|
"value": "vault",
|
|
83
|
-
"label": "in another account and region
|
|
87
|
+
"label": "a locked vault in another account and region",
|
|
84
88
|
"description": "Copies go to a backup vault in a separate account and region, under a compliance-mode lock (write once, read many) that nobody can lift before they expire. Pick it for any production store on a cloud: it is what survives ransomware and a stolen administrator credential."
|
|
85
89
|
},
|
|
86
90
|
{
|
|
87
91
|
"value": "region",
|
|
88
|
-
"label": "
|
|
92
|
+
"label": "another region of the same account",
|
|
89
93
|
"description": "Copies go to a second region with deletion protection and an alert on every deletion. Pick it when a separate account is not possible yet and the risk accepted is an attacker with administrator rights."
|
|
90
94
|
},
|
|
91
95
|
{
|
|
92
96
|
"value": "offline",
|
|
93
|
-
"label": "offline at a second site",
|
|
97
|
+
"label": "offline media at a second site",
|
|
94
98
|
"description": "A copy on tape or removable disks, disconnected after writing and kept at a second site under separate administration. Pick it for on-premises systems, or as the third copy where regulation demands an air gap."
|
|
95
99
|
}
|
|
96
100
|
]
|
|
@@ -99,7 +103,7 @@
|
|
|
99
103
|
"key": "DR",
|
|
100
104
|
"title": "Region outage",
|
|
101
105
|
"label": "What happens when the whole region or site is lost?",
|
|
102
|
-
"hint": "The disaster recovery strategy decides the RTO for the worst case: from hours (backup and restore) to minutes (warm standby). Its cost rises in the same order.",
|
|
106
|
+
"hint": "The disaster recovery strategy decides the RTO for the worst case: from hours (backup and restore) to minutes (warm standby). Its cost rises in the same order. Only when the store is copied (not with rebuilt from its sources).",
|
|
103
107
|
"defaultValue": "restore",
|
|
104
108
|
"options": [
|
|
105
109
|
{
|
|
@@ -114,7 +118,7 @@
|
|
|
114
118
|
},
|
|
115
119
|
{
|
|
116
120
|
"value": "single",
|
|
117
|
-
"label": "one region
|
|
121
|
+
"label": "one region across zones",
|
|
118
122
|
"description": "The store survives the loss of a zone, but a region outage is waited out. Pick it when the business accepts that, and it is written down where customers can see it (the service level agreement)."
|
|
119
123
|
}
|
|
120
124
|
]
|
|
@@ -140,16 +144,22 @@
|
|
|
140
144
|
},
|
|
141
145
|
{
|
|
142
146
|
"key": "RPO_MINUTES",
|
|
143
|
-
"label": "How many minutes of committed data may
|
|
147
|
+
"label": "How many minutes of committed data may a restore from a copy lose (RPO)? (with synchronous replication this is for the backups that cover mistakes; a lost store loses no acknowledged write)",
|
|
144
148
|
"defaultValue": "15",
|
|
145
149
|
"type": "number"
|
|
146
150
|
},
|
|
147
151
|
{
|
|
148
152
|
"key": "RTO_MINUTES",
|
|
149
|
-
"label": "How many minutes may the store be down after a loss (RTO)?",
|
|
153
|
+
"label": "How many minutes may the store be down after a loss in its region (RTO)?",
|
|
150
154
|
"defaultValue": "60",
|
|
151
155
|
"type": "number"
|
|
152
156
|
},
|
|
157
|
+
{
|
|
158
|
+
"key": "REGION_RTO_HOURS",
|
|
159
|
+
"label": "How many hours may the store be down after a loss of the whole region? (backup and restore in a second region only)",
|
|
160
|
+
"defaultValue": "24",
|
|
161
|
+
"type": "number"
|
|
162
|
+
},
|
|
153
163
|
{
|
|
154
164
|
"key": "RETAIN_DAYS",
|
|
155
165
|
"label": "For how many days are copies kept?",
|
|
@@ -167,7 +177,7 @@
|
|
|
167
177
|
"y": 0,
|
|
168
178
|
"kind": "brief",
|
|
169
179
|
"source": "Hub concern pack: Backup and recovery",
|
|
170
|
-
"description": "Stores get lost: a broken disk, a deleted table, a bad migration, ransomware, a region down. How much data may be lost, how fast the system is back, whether the copies survive the same attack, and whether they actually restore are decisions that are usually tested only on the day they are needed."
|
|
180
|
+
"description": "Stores get lost: a broken disk, a deleted table, a bad migration, ransomware, a region down. How much data may be lost, how fast the system is back, whether the copies survive the same attack, and whether they actually restore are decisions that are usually tested only on the day they are needed. The snippets assume the application under src/ (src/projection for a derived store, src/stores for data access), the recovery scripts under ops/ and the drill records under docs/drills."
|
|
171
181
|
},
|
|
172
182
|
{
|
|
173
183
|
"id": "req-sync",
|
|
@@ -177,7 +187,7 @@
|
|
|
177
187
|
"y": 0,
|
|
178
188
|
"ears_type": "ubiquitous",
|
|
179
189
|
"action": "acknowledge a write only after it is durable in two availability zones or regions, so that losing one loses no acknowledged write",
|
|
180
|
-
"rationale": "
|
|
190
|
+
"rationale": "No loss on a store failure is reachable only with synchronous replication; asynchronous replicas lose what was in flight (AWS DR whitepaper, multi-site strategies; PostgreSQL synchronous_commit).",
|
|
181
191
|
"hubWhen": {
|
|
182
192
|
"METHOD": [
|
|
183
193
|
"sync"
|
|
@@ -277,7 +287,7 @@
|
|
|
277
287
|
"x": 260,
|
|
278
288
|
"y": 780,
|
|
279
289
|
"ears_type": "ubiquitous",
|
|
280
|
-
"action": "copy every backup to a second region
|
|
290
|
+
"action": "copy every backup to a second region in the same backup rule that takes it, keep the copy {{RETAIN_DAYS}} days with deletion protection, and alert the on-call engineer within 5 minutes of any copy being deleted",
|
|
281
291
|
"rationale": "A copy in the same region goes down with it (AWS DR whitepaper, backup and restore); deletion protection and an alert are what is left when the account is shared.",
|
|
282
292
|
"hubWhen": {
|
|
283
293
|
"METHOD": [
|
|
@@ -318,7 +328,7 @@
|
|
|
318
328
|
"y": 1040,
|
|
319
329
|
"ears_type": "event-driven",
|
|
320
330
|
"trigger": "the primary region or site becomes unavailable",
|
|
321
|
-
"action": "recreate the infrastructure from code in the second region and restore the store there from its copies, within
|
|
331
|
+
"action": "recreate the infrastructure from code in the second region and restore the store there from its copies, within {{REGION_RTO_HOURS}} hours, as the service level agreement states",
|
|
322
332
|
"rationale": "Backup and restore is the cheapest disaster recovery strategy, with an RTO of hours (AWS DR whitepaper, REL13-BP02); it works only if the infrastructure is code.",
|
|
323
333
|
"hubWhen": {
|
|
324
334
|
"METHOD": [
|
|
@@ -359,7 +369,7 @@
|
|
|
359
369
|
"x": 260,
|
|
360
370
|
"y": 1300,
|
|
361
371
|
"ears_type": "state-driven",
|
|
362
|
-
"precondition": "
|
|
372
|
+
"precondition": "one availability zone of the store's region is unavailable",
|
|
363
373
|
"action": "keep serving from the other zones within {{RTO_MINUTES}} minutes, and state in the service level agreement that a loss of the whole region is waited out",
|
|
364
374
|
"rationale": "A single region with zone redundancy covers the common failures; a region outage is then an accepted risk, which customers must be told (Azure Well-Architected, disaster recovery; AWS REL10).",
|
|
365
375
|
"hubWhen": {
|
|
@@ -584,7 +594,7 @@
|
|
|
584
594
|
"y": 1040,
|
|
585
595
|
"given": "the primary region marked unavailable in a test",
|
|
586
596
|
"when": "the recovery runbook is started",
|
|
587
|
-
"then": "the store serves from the second region within
|
|
597
|
+
"then": "the store serves from the second region within {{REGION_RTO_HOURS}} hours",
|
|
588
598
|
"hubWhen": {
|
|
589
599
|
"METHOD": [
|
|
590
600
|
"sync",
|
|
@@ -706,8 +716,8 @@
|
|
|
706
716
|
"status": "accepted",
|
|
707
717
|
"date": "",
|
|
708
718
|
"context": "This store keeps data that the system cannot work without. The forces: stores are lost to broken disks, bad deployments, mistaken deletes, ransomware and region outages, and replication copies the mistakes as faithfully as the data; the less data may be lost (the recovery point objective, RPO) and the faster it must be back (the recovery time objective, RTO), the more every write and every month costs; copies in the same account and region go down, or get encrypted, together with the store; and a backup that has never been restored is a hope, not a copy.",
|
|
709
|
-
"decision": "Writes are replicated synchronously and acknowledged only when a second zone or region has them: PostgreSQL with synchronous_standby_names and synchronous_commit = on (managed by Patroni or CloudNativePG), or a managed service that does it (Amazon Aurora, Azure SQL Business Critical, Cloud SQL high availability; Spanner or CockroachDB across regions). Replication copies mistakes, so continuous backups with point-in-time recovery cover them, kept {{RETAIN_DAYS}} days {{COPIES}}. Region loss: {{DR}}. Service comes back within {{RTO_MINUTES}} minutes. Proven by {{DRILL}}. Choose a managed service unless the database must run on premises; choose cross-region synchronous replication only when the added latency of every write (tens of milliseconds) is acceptable.",
|
|
710
|
-
"consequences": "• No acknowledged write is lost when a zone (or region) is.\n• Every write waits for the second copy: higher latency, and writes stop if no synchronous standby is available.\n• Twice the database cost, plus the backups that still guard against mistakes.\n• Failover must be automatic and tested, or the zero
|
|
719
|
+
"decision": "Writes are replicated synchronously and acknowledged only when a second zone or region has them: PostgreSQL with synchronous_standby_names and synchronous_commit = on (managed by Patroni or CloudNativePG), or a managed service that does it (Amazon Aurora, Azure SQL Business Critical, Cloud SQL high availability; Spanner or CockroachDB across regions). A lost store loses no acknowledged write. Replication copies mistakes, so continuous backups with point-in-time recovery cover them, with a recovery point of {{RPO_MINUTES}} minutes, kept {{RETAIN_DAYS}} days in {{COPIES}}. Region loss: {{DR}}. Service comes back within {{RTO_MINUTES}} minutes. Proven by {{DRILL}}. Choose a managed service unless the database must run on premises; choose cross-region synchronous replication only when the added latency of every write (tens of milliseconds) is acceptable.",
|
|
720
|
+
"consequences": "• No acknowledged write is lost when a zone (or region) is.\n• Every write waits for the second copy: higher latency, and writes stop if no synchronous standby is available.\n• Twice the database cost, plus the backups that still guard against mistakes.\n• Failover must be automatic and tested, or the zero loss comes with a long RTO.",
|
|
711
721
|
"alternatives": "1. Continuous backup with point-in-time recovery: minutes of loss, cheaper and faster writes.\n2. Asynchronous replication: fast writes, but what was in flight is lost on failover.\n3. Scheduled snapshots: hours of loss.",
|
|
712
722
|
"hubWhen": {
|
|
713
723
|
"METHOD": [
|
|
@@ -725,7 +735,7 @@
|
|
|
725
735
|
"status": "accepted",
|
|
726
736
|
"date": "",
|
|
727
737
|
"context": "This store keeps data that the system cannot work without. The forces: stores are lost to broken disks, bad deployments, mistaken deletes, ransomware and region outages, and replication copies the mistakes as faithfully as the data; the less data may be lost (the recovery point objective, RPO) and the faster it must be back (the recovery time objective, RTO), the more every write and every month costs; copies in the same account and region go down, or get encrypted, together with the store; and a backup that has never been restored is a hope, not a copy.",
|
|
728
|
-
"decision": "The store archives its write-ahead log continuously and restores to any second of the last {{RETAIN_DAYS}} days, the newest archived change no older than {{RPO_MINUTES}} minutes: the managed service's point-in-time recovery (Amazon RDS and Aurora automated backups, Azure Database for PostgreSQL, Cloud SQL, MongoDB Atlas continuous backup), or pgBackRest or WAL-G to object storage for self-managed PostgreSQL. Copies are kept {{COPIES}}. Region loss: {{DR}}. Service comes back within {{RTO_MINUTES}} minutes. Proven by {{DRILL}}. Choose the managed service's own feature when there is one; pgBackRest when you run PostgreSQL yourself and need parallel restore and verification.",
|
|
738
|
+
"decision": "The store archives its write-ahead log continuously and restores to any second of the last {{RETAIN_DAYS}} days, the newest archived change no older than {{RPO_MINUTES}} minutes: the managed service's point-in-time recovery (Amazon RDS and Aurora automated backups, Azure Database for PostgreSQL, Cloud SQL, MongoDB Atlas continuous backup), or pgBackRest or WAL-G to object storage for self-managed PostgreSQL. Copies are kept in {{COPIES}}. Region loss: {{DR}}. Service comes back within {{RTO_MINUTES}} minutes. Proven by {{DRILL}}. Choose the managed service's own feature when there is one; pgBackRest when you run PostgreSQL yourself and need parallel restore and verification.",
|
|
729
739
|
"consequences": "• At most {{RPO_MINUTES}} minutes of loss, and a way back from a mistake to the second before it.\n• Cheap: most managed databases include it.\n• Restoring a large store replays a lot of log: the restore time must be measured, not assumed, against {{RTO_MINUTES}} minutes.\n• Copies to another account or region are a separate step the managed feature does not always do.",
|
|
730
740
|
"alternatives": "1. Synchronous replication: no loss, slower and dearer writes, and still needs backups.\n2. Scheduled snapshots: simpler, hours of loss.",
|
|
731
741
|
"hubWhen": {
|
|
@@ -744,7 +754,7 @@
|
|
|
744
754
|
"status": "accepted",
|
|
745
755
|
"date": "",
|
|
746
756
|
"context": "This store keeps data that the system cannot work without. The forces: stores are lost to broken disks, bad deployments, mistaken deletes, ransomware and region outages, and replication copies the mistakes as faithfully as the data; the less data may be lost (the recovery point objective, RPO) and the faster it must be back (the recovery time objective, RTO), the more every write and every month costs; copies in the same account and region go down, or get encrypted, together with the store; and a backup that has never been restored is a hope, not a copy.",
|
|
747
|
-
"decision": "The store is snapshotted at least every {{RPO_MINUTES}} minutes and each snapshot is kept {{RETAIN_DAYS}} days
|
|
757
|
+
"decision": "The store is snapshotted at least every {{RPO_MINUTES}} minutes and each snapshot is kept {{RETAIN_DAYS}} days in {{COPIES}}: AWS Backup or Azure Backup plans for managed stores and volumes, Velero for Kubernetes volumes, pg_dump or mysqldump for small databases. Snapshots are taken application-consistent (quiesced or from the database's own tool). Region loss: {{DR}}. Service comes back within {{RTO_MINUTES}} minutes. Proven by {{DRILL}}. The changes since the last snapshot are lost and must be redone or re-imported; the owner of the data agrees to that.",
|
|
748
758
|
"consequences": "• Simple and cheap to run.\n• Up to {{RPO_MINUTES}} minutes of changes is lost: the business must be able to redo them.\n• Crash-consistent volume snapshots of a running database may not restore: consistency must be checked in the drill.",
|
|
749
759
|
"alternatives": "1. Point-in-time recovery: minutes of loss for little more.\n2. Synchronous replication: no loss, far dearer.",
|
|
750
760
|
"hubWhen": {
|
|
@@ -763,7 +773,7 @@
|
|
|
763
773
|
"status": "accepted",
|
|
764
774
|
"date": "",
|
|
765
775
|
"context": "This store keeps data that the system cannot work without. The forces: stores are lost to broken disks, bad deployments, mistaken deletes, ransomware and region outages, and replication copies the mistakes as faithfully as the data; the less data may be lost (the recovery point objective, RPO) and the faster it must be back (the recovery time objective, RTO), the more every write and every month costs; copies in the same account and region go down, or get encrypted, together with the store; and a backup that has never been restored is a hope, not a copy.",
|
|
766
|
-
"decision": "The store holds only what is derived from its sources (a cache, a search index such as Elasticsearch or OpenSearch, a read model fed from an event log kept long enough to replay); it has no backups. Only the projection process may write to it, which its database role enforces. When it is lost it is rebuilt within {{RTO_MINUTES}} minutes by replaying the sources; the sources themselves are backed up under their own decision. Proven by {{DRILL}}.",
|
|
776
|
+
"decision": "The store holds only what is derived from its sources (a cache, a search index such as Elasticsearch or OpenSearch, a read model fed from an event log kept long enough to replay); it has no backups, so where copies would be kept and how a region loss is recovered are decided by the sources, not here. Only the projection process may write to it, which its database role enforces. When it is lost it is rebuilt within {{RTO_MINUTES}} minutes by replaying the sources; the sources themselves are backed up under their own decision. Proven by {{DRILL}}.",
|
|
767
777
|
"consequences": "• No backups to keep or lock.\n• Anything written only here would be lost: the store must stay derived.\n• Rebuild time grows with the sources: when it nears {{RTO_MINUTES}} minutes, snapshot the store as well or rebuild in parallel.\n• While it rebuilds, what depends on it is degraded or down.",
|
|
768
778
|
"alternatives": "1. Back it up anyway: a faster recovery when the rebuild cannot meet the time.\n2. Keep a warm second copy: instant recovery, double the cost.",
|
|
769
779
|
"hubWhen": {
|
|
@@ -772,15 +782,199 @@
|
|
|
772
782
|
]
|
|
773
783
|
}
|
|
774
784
|
},
|
|
785
|
+
{
|
|
786
|
+
"id": "adr-vault",
|
|
787
|
+
"type": "adr",
|
|
788
|
+
"label": "Copies in a locked vault",
|
|
789
|
+
"x": 780,
|
|
790
|
+
"y": 520,
|
|
791
|
+
"concern": "backup-recovery",
|
|
792
|
+
"status": "accepted",
|
|
793
|
+
"date": "",
|
|
794
|
+
"context": "This store keeps data that the system cannot work without. The forces: stores are lost to broken disks, bad deployments, mistaken deletes, ransomware and region outages, and replication copies the mistakes as faithfully as the data; the less data may be lost (the recovery point objective, RPO) and the faster it must be back (the recovery time objective, RTO), the more every write and every month costs; copies in the same account and region go down, or get encrypted, together with the store; and a backup that has never been restored is a hope, not a copy.",
|
|
795
|
+
"decision": "Copies go to a backup vault in a separate account and region (AWS Backup with a vault in the backup account under Vault Lock in compliance mode; Azure Backup with an immutable vault and multi-user authorization; a bucket with Object Lock for pgBackRest), locked for {{RETAIN_DAYS}} days and encrypted with a key held in that account. The source account can write copies and read them back; it cannot delete or shorten them, and neither can anyone in the backup account before they expire. Every backup rule of the source account copies to the vault.",
|
|
796
|
+
"consequences": "• Ransomware or a stolen administrator credential in the source account cannot reach the copies.\n• A second account to run, with its own access, billing and key.\n• The lock is final: a copy taken by mistake with sensitive data stays {{RETAIN_DAYS}} days.\n• Cross-account, cross-region copy traffic costs per gigabyte.",
|
|
797
|
+
"alternatives": "1. Another region of the same account: cheaper, no second account, but an administrator can delete the copies.\n2. Offline media at a second site: an air gap, with human steps on every copy and restore.",
|
|
798
|
+
"hubWhen": {
|
|
799
|
+
"METHOD": [
|
|
800
|
+
"sync",
|
|
801
|
+
"pitr",
|
|
802
|
+
"snapshot"
|
|
803
|
+
],
|
|
804
|
+
"COPIES": [
|
|
805
|
+
"vault"
|
|
806
|
+
]
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
"id": "adr-region",
|
|
811
|
+
"type": "adr",
|
|
812
|
+
"label": "Copies in another region",
|
|
813
|
+
"x": 780,
|
|
814
|
+
"y": 650,
|
|
815
|
+
"concern": "backup-recovery",
|
|
816
|
+
"status": "accepted",
|
|
817
|
+
"date": "",
|
|
818
|
+
"context": "This store keeps data that the system cannot work without. The forces: stores are lost to broken disks, bad deployments, mistaken deletes, ransomware and region outages, and replication copies the mistakes as faithfully as the data; the less data may be lost (the recovery point objective, RPO) and the faster it must be back (the recovery time objective, RTO), the more every write and every month costs; copies in the same account and region go down, or get encrypted, together with the store; and a backup that has never been restored is a hope, not a copy.",
|
|
819
|
+
"decision": "Every backup rule copies its recovery points to a vault in a second region of the same account, kept {{RETAIN_DAYS}} days; the vault's access policy denies deletion to everyone but the backup role, and an EventBridge rule on DeleteRecoveryPoint pages the on-call engineer. A separate account is the next step, planned when the first security review asks for it.",
|
|
820
|
+
"consequences": "• A region loss leaves the copies intact.\n• An attacker with administrator rights can still delete them: the alert is the control, and someone has to answer it.\n• No second account to run.",
|
|
821
|
+
"alternatives": "1. A locked vault in another account and region: survives a stolen administrator credential.\n2. Offline media at a second site: an air gap, with human steps.",
|
|
822
|
+
"hubWhen": {
|
|
823
|
+
"METHOD": [
|
|
824
|
+
"sync",
|
|
825
|
+
"pitr",
|
|
826
|
+
"snapshot"
|
|
827
|
+
],
|
|
828
|
+
"COPIES": [
|
|
829
|
+
"region"
|
|
830
|
+
]
|
|
831
|
+
}
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"id": "adr-offline",
|
|
835
|
+
"type": "adr",
|
|
836
|
+
"label": "Offline copies at a second site",
|
|
837
|
+
"x": 780,
|
|
838
|
+
"y": 780,
|
|
839
|
+
"concern": "backup-recovery",
|
|
840
|
+
"status": "accepted",
|
|
841
|
+
"date": "",
|
|
842
|
+
"context": "This store keeps data that the system cannot work without. The forces: stores are lost to broken disks, bad deployments, mistaken deletes, ransomware and region outages, and replication copies the mistakes as faithfully as the data; the less data may be lost (the recovery point objective, RPO) and the faster it must be back (the recovery time objective, RTO), the more every write and every month costs; copies in the same account and region go down, or get encrypted, together with the store; and a backup that has never been restored is a hope, not a copy.",
|
|
843
|
+
"decision": "At least every 24 hours a copy is written to media that are disconnected after writing (LTO tape or removable disks, or an object-storage bucket whose credentials exist only on the backup host and are rotated after each run) and kept at a second site under separate administration for {{RETAIN_DAYS}} days. The job verifies the media before ejecting them and pushes its success time to the monitoring.",
|
|
844
|
+
"consequences": "• Nothing on the network can reach the copies.\n• A restore starts with transport: the RTO includes bringing the media back.\n• Media, a safe and a courier are an operational routine that needs an owner.",
|
|
845
|
+
"alternatives": "1. A locked vault in another account and region: the same protection without physical handling, on a cloud.\n2. Another region of the same account: cheapest, weakest.",
|
|
846
|
+
"hubWhen": {
|
|
847
|
+
"METHOD": [
|
|
848
|
+
"sync",
|
|
849
|
+
"pitr",
|
|
850
|
+
"snapshot"
|
|
851
|
+
],
|
|
852
|
+
"COPIES": [
|
|
853
|
+
"offline"
|
|
854
|
+
]
|
|
855
|
+
}
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
"id": "adr-dr-restore",
|
|
859
|
+
"type": "adr",
|
|
860
|
+
"label": "Region loss recovered by restore",
|
|
861
|
+
"x": 780,
|
|
862
|
+
"y": 910,
|
|
863
|
+
"concern": "backup-recovery",
|
|
864
|
+
"status": "accepted",
|
|
865
|
+
"date": "",
|
|
866
|
+
"context": "This store keeps data that the system cannot work without. The forces: stores are lost to broken disks, bad deployments, mistaken deletes, ransomware and region outages, and replication copies the mistakes as faithfully as the data; the less data may be lost (the recovery point objective, RPO) and the faster it must be back (the recovery time objective, RTO), the more every write and every month costs; copies in the same account and region go down, or get encrypted, together with the store; and a backup that has never been restored is a hope, not a copy.",
|
|
867
|
+
"decision": "When the primary region is lost, the infrastructure is recreated from code in the second region and the store restored there from its copies, within {{REGION_RTO_HOURS}} hours; the service level agreement states that figure. The pipeline can target the second region without changes, the copies are already there, and the runbook names who decides to fail over.",
|
|
868
|
+
"consequences": "• Costs little more than the copies: nothing runs in the second region until it is needed.\n• Hours of downtime on a region loss, and the data since the last copy is lost.\n• The restore has to be rehearsed in the second region, not only in the primary.",
|
|
869
|
+
"alternatives": "1. A warm standby in a second region: minutes instead of hours, at the cost of a running replica.\n2. One region across zones: no region recovery, written into the agreement.",
|
|
870
|
+
"hubWhen": {
|
|
871
|
+
"METHOD": [
|
|
872
|
+
"sync",
|
|
873
|
+
"pitr",
|
|
874
|
+
"snapshot"
|
|
875
|
+
],
|
|
876
|
+
"DR": [
|
|
877
|
+
"restore"
|
|
878
|
+
]
|
|
879
|
+
}
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"id": "adr-dr-standby",
|
|
883
|
+
"type": "adr",
|
|
884
|
+
"label": "Region loss recovered by a warm standby",
|
|
885
|
+
"x": 780,
|
|
886
|
+
"y": 1040,
|
|
887
|
+
"concern": "backup-recovery",
|
|
888
|
+
"status": "accepted",
|
|
889
|
+
"date": "",
|
|
890
|
+
"context": "This store keeps data that the system cannot work without. The forces: stores are lost to broken disks, bad deployments, mistaken deletes, ransomware and region outages, and replication copies the mistakes as faithfully as the data; the less data may be lost (the recovery point objective, RPO) and the faster it must be back (the recovery time objective, RTO), the more every write and every month costs; copies in the same account and region go down, or get encrypted, together with the store; and a backup that has never been restored is a hope, not a copy.",
|
|
891
|
+
"decision": "A replica of the store runs in a second region all the time (Aurora Global Database, cross-region read replicas, PostgreSQL streaming replication), with the rest of the system deployed there at minimal size; on a region loss the replica is promoted and the system scaled up, within {{RTO_MINUTES}} minutes. Replication lag is watched against {{RPO_MINUTES}} minutes. Failover is a runbook step with one decision maker; failback is planned, not improvised.",
|
|
892
|
+
"consequences": "• A region loss is recovered in minutes, with at most the replication lag lost.\n• About double the database cost and part of the compute, all the time.\n• Two regions to deploy to and keep in step; a failover drill is required to trust it.",
|
|
893
|
+
"alternatives": "1. Backup and restore in a second region: hours instead of minutes, far cheaper.\n2. Active-active across regions: no failover at all, but a different data model (conflicts, global tables).",
|
|
894
|
+
"hubWhen": {
|
|
895
|
+
"METHOD": [
|
|
896
|
+
"sync",
|
|
897
|
+
"pitr",
|
|
898
|
+
"snapshot"
|
|
899
|
+
],
|
|
900
|
+
"DR": [
|
|
901
|
+
"standby"
|
|
902
|
+
]
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
"id": "adr-dr-single",
|
|
907
|
+
"type": "adr",
|
|
908
|
+
"label": "One region, zone redundant",
|
|
909
|
+
"x": 780,
|
|
910
|
+
"y": 1170,
|
|
911
|
+
"concern": "backup-recovery",
|
|
912
|
+
"status": "accepted",
|
|
913
|
+
"date": "",
|
|
914
|
+
"context": "This store keeps data that the system cannot work without. The forces: stores are lost to broken disks, bad deployments, mistaken deletes, ransomware and region outages, and replication copies the mistakes as faithfully as the data; the less data may be lost (the recovery point objective, RPO) and the faster it must be back (the recovery time objective, RTO), the more every write and every month costs; copies in the same account and region go down, or get encrypted, together with the store; and a backup that has never been restored is a hope, not a copy.",
|
|
915
|
+
"decision": "The store runs across availability zones of one region (Multi-AZ instances or a cluster with instances in at least two zones) and survives a zone loss within {{RTO_MINUTES}} minutes; a loss of the whole region is waited out, and the service level agreement says so. The copies still leave the region, so a restore elsewhere stays possible when the outage lasts.",
|
|
916
|
+
"consequences": "• The common failures (a host, a zone) are covered at the cost of the standby instance.\n• A region outage is downtime for its whole duration: the business has accepted that in writing.\n• Nothing to keep in step across regions.",
|
|
917
|
+
"alternatives": "1. Backup and restore in a second region: a way back within hours for little more.\n2. A warm standby in a second region: minutes, at double the database cost.",
|
|
918
|
+
"hubWhen": {
|
|
919
|
+
"METHOD": [
|
|
920
|
+
"sync",
|
|
921
|
+
"pitr",
|
|
922
|
+
"snapshot"
|
|
923
|
+
],
|
|
924
|
+
"DR": [
|
|
925
|
+
"single"
|
|
926
|
+
]
|
|
927
|
+
}
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"id": "adr-drill-auto",
|
|
931
|
+
"type": "adr",
|
|
932
|
+
"label": "Recovery proven by an automated weekly restore",
|
|
933
|
+
"x": 780,
|
|
934
|
+
"y": 1300,
|
|
935
|
+
"concern": "backup-recovery",
|
|
936
|
+
"status": "accepted",
|
|
937
|
+
"date": "",
|
|
938
|
+
"context": "This store keeps data that the system cannot work without. The forces: stores are lost to broken disks, bad deployments, mistaken deletes, ransomware and region outages, and replication copies the mistakes as faithfully as the data; the less data may be lost (the recovery point objective, RPO) and the faster it must be back (the recovery time objective, RTO), the more every write and every month costs; copies in the same account and region go down, or get encrypted, together with the store; and a backup that has never been restored is a hope, not a copy.",
|
|
939
|
+
"decision": "Every week a scheduled pipeline restores the latest copy (or rebuilds the store from its sources) into a throwaway environment, checks row counts, the newest timestamp and a sample of records, measures the time against {{RTO_MINUTES}} minutes and tears the environment down; a failure or a slow restore alerts the owner. AWS Backup restore testing does the same for stores it backs up.",
|
|
940
|
+
"consequences": "• The restore is known to work every week, with its real duration.\n• A throwaway environment every week costs compute and a pipeline to maintain.\n• The automated restore does not exercise the people: a yearly drill by hand is still worth running.",
|
|
941
|
+
"alternatives": "1. A quarterly drill by the team: exercises the runbook and the people, four times a year instead of fifty-two.\n2. No drill: the backups are a hope.",
|
|
942
|
+
"hubWhen": {
|
|
943
|
+
"DRILL": [
|
|
944
|
+
"auto"
|
|
945
|
+
]
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
"id": "adr-drill-manual",
|
|
950
|
+
"type": "adr",
|
|
951
|
+
"label": "Recovery proven by a quarterly drill",
|
|
952
|
+
"x": 780,
|
|
953
|
+
"y": 1430,
|
|
954
|
+
"concern": "backup-recovery",
|
|
955
|
+
"status": "accepted",
|
|
956
|
+
"date": "",
|
|
957
|
+
"context": "This store keeps data that the system cannot work without. The forces: stores are lost to broken disks, bad deployments, mistaken deletes, ransomware and region outages, and replication copies the mistakes as faithfully as the data; the less data may be lost (the recovery point objective, RPO) and the faster it must be back (the recovery time objective, RTO), the more every write and every month costs; copies in the same account and region go down, or get encrypted, together with the store; and a backup that has never been restored is a hope, not a copy.",
|
|
958
|
+
"decision": "Every quarter an engineer who did not write the runbook restores (or rebuilds) the store into a clean environment by following it, records the time taken and the age of the data in docs/drills, and the runbook is corrected within 14 days. A scheduled job fails when the newest record is older than 92 days or its restore took longer than {{RTO_MINUTES}} minutes.",
|
|
959
|
+
"consequences": "• The runbook and the people are exercised, and the steps only the author knew get written down.\n• A quarter is a long time: a credential that expires in between is found on the day.\n• Half a day of an engineer every quarter.",
|
|
960
|
+
"alternatives": "1. An automated restore test every week: fifty-two proofs a year, without the people.\n2. Both: the weekly test for the mechanism, a yearly drill for the runbook.",
|
|
961
|
+
"hubWhen": {
|
|
962
|
+
"DRILL": [
|
|
963
|
+
"manual"
|
|
964
|
+
]
|
|
965
|
+
}
|
|
966
|
+
},
|
|
775
967
|
{
|
|
776
968
|
"id": "ff-sync",
|
|
777
969
|
"type": "fitness-fn",
|
|
778
970
|
"label": "Synchronous standby attached",
|
|
779
971
|
"x": 1040,
|
|
780
972
|
"y": 0,
|
|
781
|
-
"
|
|
782
|
-
"
|
|
783
|
-
"
|
|
973
|
+
"characteristic": "reliability",
|
|
974
|
+
"scope": "atomic",
|
|
975
|
+
"cadence": "continual",
|
|
976
|
+
"invocation": "automated",
|
|
977
|
+
"description": "The database exporter counts the standbys replicating synchronously; Prometheus pages when there is none, because writes then either stop or lose their second copy.\n\nThreshold: At least 1 standby in sync or quorum state at every moment; a page after 1 minute without one\n\nTool: Prometheus with sql_exporter (PostgreSQL; for a managed service, its own replication metric, such as AuroraReplicaLag)\n\n```yaml\n# sql_exporter collector\ncollector_name: replication\nmetrics:\n - metric_name: pg_sync_standbys\n type: gauge\n help: 'Standbys replicating synchronously'\n values: [n]\n query: |\n SELECT count(*) AS n FROM pg_stat_replication WHERE sync_state IN ('sync', 'quorum')\n---\n# Prometheus alerting rule\ngroups:\n - name: backup-recovery\n rules:\n - alert: NoSynchronousStandby\n expr: pg_sync_standbys < 1\n for: 1m\n labels: { severity: page }\n```",
|
|
784
978
|
"hubWhen": {
|
|
785
979
|
"METHOD": [
|
|
786
980
|
"sync"
|
|
@@ -793,9 +987,11 @@
|
|
|
793
987
|
"label": "Newest copy within the RPO",
|
|
794
988
|
"x": 1040,
|
|
795
989
|
"y": 130,
|
|
796
|
-
"
|
|
797
|
-
"
|
|
798
|
-
"
|
|
990
|
+
"characteristic": "reliability",
|
|
991
|
+
"scope": "atomic",
|
|
992
|
+
"cadence": "continual",
|
|
993
|
+
"invocation": "automated",
|
|
994
|
+
"description": "The backup job pushes the time of its last success (for point-in-time recovery, the exporter reports the last archived log segment); Prometheus pages when the newest copy is older than the RPO, which also catches a job that silently stopped.\n\nThreshold: The newest recoverable copy is never older than {{RPO_MINUTES}} minutes for more than 5 minutes\n\nTool: Prometheus (Pushgateway for backup jobs)\n\n```yaml\ngroups:\n - name: backup-recovery\n rules:\n - alert: RecoveryPointTooOld\n # backup_last_success_timestamp_seconds: pushed by the backup job, or\n # pg_stat_archiver.last_archived_time exported for point-in-time recovery\n expr: time() - backup_last_success_timestamp_seconds{store=\"orders\"} > {{RPO_MINUTES}} * 60\n for: 5m\n labels: { severity: page }\n annotations:\n summary: 'The newest copy of {{ $labels.store }} is older than {{RPO_MINUTES}} minutes'\n```",
|
|
799
995
|
"hubWhen": {
|
|
800
996
|
"METHOD": [
|
|
801
997
|
"sync",
|
|
@@ -805,14 +1001,17 @@
|
|
|
805
1001
|
}
|
|
806
1002
|
},
|
|
807
1003
|
{
|
|
808
|
-
"id": "ff-vault",
|
|
1004
|
+
"id": "ff-vault-copy",
|
|
809
1005
|
"type": "fitness-fn",
|
|
810
|
-
"label": "
|
|
1006
|
+
"label": "Every backup copies to the vault",
|
|
811
1007
|
"x": 1040,
|
|
812
1008
|
"y": 260,
|
|
813
|
-
"
|
|
814
|
-
"
|
|
815
|
-
"
|
|
1009
|
+
"characteristic": "reliability",
|
|
1010
|
+
"scope": "atomic",
|
|
1011
|
+
"cadence": "triggered",
|
|
1012
|
+
"trigger": "pull-request",
|
|
1013
|
+
"invocation": "automated",
|
|
1014
|
+
"description": "In CI the source account's Terraform plan (terraform show -json) is checked: every backup rule must have a copy action whose destination vault ARN names the backup account (a plan variable) and a region other than the primary. A destination that is unknown at plan time fails too: reference the vault by a variable or data source so the plan can be checked.\n\nThreshold: Every backup rule in the source account copies to a vault whose ARN names the backup account and another region; 0 rules without, 0 copy destinations unknown at plan time\n\nTool: Conftest on the Terraform plan of the source account (AWS Backup; for Azure Backup check the vault's cross-region restore and the backup policy's vault)\n\n```rego\npackage main\n\nimport rego.v1\n\nbackup_account := input.variables.backup_account_id.value\nprimary_region := input.variables.primary_region.value\n\ncopies_to_vault(rule) if {\n\tsome c in rule.copy_action\n\tparts := split(c.destination_vault_arn, \":\")\n\tparts[4] == backup_account\n\tparts[3] != primary_region\n}\n\ndeny contains msg if {\n\tsome r in input.resource_changes\n\tr.type == \"aws_backup_plan\"\n\tsome rule in r.change.after.rule\n\tnot copies_to_vault(rule)\n\tmsg := sprintf(\"%s rule %s does not copy to the locked vault in account %s outside %s (an unknown destination counts: pass the vault ARN as a variable)\", [r.address, rule.rule_name, backup_account, primary_region])\n}\n```",
|
|
816
1015
|
"hubWhen": {
|
|
817
1016
|
"METHOD": [
|
|
818
1017
|
"sync",
|
|
@@ -825,14 +1024,40 @@
|
|
|
825
1024
|
}
|
|
826
1025
|
},
|
|
827
1026
|
{
|
|
828
|
-
"id": "ff-
|
|
1027
|
+
"id": "ff-vault-lock",
|
|
829
1028
|
"type": "fitness-fn",
|
|
830
|
-
"label": "
|
|
1029
|
+
"label": "The vault is locked",
|
|
831
1030
|
"x": 1040,
|
|
832
1031
|
"y": 390,
|
|
833
|
-
"
|
|
834
|
-
"
|
|
835
|
-
"
|
|
1032
|
+
"characteristic": "reliability",
|
|
1033
|
+
"scope": "atomic",
|
|
1034
|
+
"cadence": "triggered",
|
|
1035
|
+
"trigger": "pull-request",
|
|
1036
|
+
"invocation": "automated",
|
|
1037
|
+
"description": "In CI the backup account's Terraform plan is checked: a vault lock must exist with changeable_for_days set (without it the lock is governance mode, which an administrator can lift) and a minimum retention of at least {{RETAIN_DAYS}} days.\n\nThreshold: The backup account's vault has a compliance-mode lock with a minimum retention of at least {{RETAIN_DAYS}} days; 0 vaults without\n\nTool: Conftest on the Terraform plan of the backup account (AWS Backup Vault Lock; for Azure Backup check the vault's immutability setting is locked)\n\n```rego\npackage main\n\nimport rego.v1\n\nlocks := [r | some r in input.resource_changes; r.type == \"aws_backup_vault_lock_configuration\"]\n\ndeny contains \"no backup vault is locked (AWS Backup Vault Lock)\" if count(locks) == 0\n\ndeny contains msg if {\n\tsome l in locks\n\tnot l.change.after.min_retention_days\n\tmsg := sprintf(\"%s sets no minimum retention\", [l.address])\n}\n\ndeny contains msg if {\n\tsome l in locks\n\tl.change.after.min_retention_days < {{RETAIN_DAYS}}\n\tmsg := sprintf(\"%s locks copies for fewer than {{RETAIN_DAYS}} days\", [l.address])\n}\n\ndeny contains msg if {\n\tsome l in locks\n\tnot l.change.after.changeable_for_days\n\tmsg := sprintf(\"%s is not in compliance mode (set changeable_for_days)\", [l.address])\n}\n```",
|
|
1038
|
+
"hubWhen": {
|
|
1039
|
+
"METHOD": [
|
|
1040
|
+
"sync",
|
|
1041
|
+
"pitr",
|
|
1042
|
+
"snapshot"
|
|
1043
|
+
],
|
|
1044
|
+
"COPIES": [
|
|
1045
|
+
"vault"
|
|
1046
|
+
]
|
|
1047
|
+
}
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
"id": "ff-copy-region",
|
|
1051
|
+
"type": "fitness-fn",
|
|
1052
|
+
"label": "Copies leave the region and deletions page",
|
|
1053
|
+
"x": 1040,
|
|
1054
|
+
"y": 520,
|
|
1055
|
+
"characteristic": "reliability",
|
|
1056
|
+
"scope": "atomic",
|
|
1057
|
+
"cadence": "triggered",
|
|
1058
|
+
"trigger": "pull-request",
|
|
1059
|
+
"invocation": "automated",
|
|
1060
|
+
"description": "In CI the Terraform plan is checked: every backup rule must copy to a vault whose ARN names another region (an unknown destination fails: reference the vault by a variable or data source), and an EventBridge rule must match DeleteRecoveryPoint calls from CloudTrail, which is what pages within 5 minutes of a deletion.\n\nThreshold: 0 backup rules without a copy to a vault outside the primary region; 1 or more EventBridge rules on DeleteRecoveryPoint with a target\n\nTool: Conftest on the Terraform plan (AWS Backup and EventBridge; on Azure check the backup policy's secondary region and an activity log alert on recovery point deletion)\n\n```rego\npackage main\n\nimport rego.v1\n\nprimary := input.variables.primary_region.value\n\ncopies_elsewhere(rule) if {\n\tsome c in rule.copy_action\n\tsplit(c.destination_vault_arn, \":\")[3] != primary\n}\n\ndeny contains msg if {\n\tsome r in input.resource_changes\n\tr.type == \"aws_backup_plan\"\n\tsome rule in r.change.after.rule\n\tnot copies_elsewhere(rule)\n\tmsg := sprintf(\"%s rule %s keeps its copies in %s, or its destination is unknown at plan time\", [r.address, rule.rule_name, primary])\n}\n\ndeletion_rules := [r |\n\tsome r in input.resource_changes\n\tr.type == \"aws_cloudwatch_event_rule\"\n\tcontains(r.change.after.event_pattern, \"DeleteRecoveryPoint\")\n]\n\ndeny contains \"no EventBridge rule pages on DeleteRecoveryPoint\" if count(deletion_rules) == 0\n```",
|
|
836
1061
|
"hubWhen": {
|
|
837
1062
|
"METHOD": [
|
|
838
1063
|
"sync",
|
|
@@ -849,10 +1074,12 @@
|
|
|
849
1074
|
"type": "fitness-fn",
|
|
850
1075
|
"label": "Offline copy fresh",
|
|
851
1076
|
"x": 1040,
|
|
852
|
-
"y":
|
|
853
|
-
"
|
|
854
|
-
"
|
|
855
|
-
"
|
|
1077
|
+
"y": 650,
|
|
1078
|
+
"characteristic": "reliability",
|
|
1079
|
+
"scope": "atomic",
|
|
1080
|
+
"cadence": "continual",
|
|
1081
|
+
"invocation": "automated",
|
|
1082
|
+
"description": "The job that writes the offline copy pushes its success time after the media are verified and ejected; Prometheus alerts when it is older than a day and a margin.\n\nThreshold: The newest offline copy, written and disconnected, is never older than 26 hours\n\nTool: Prometheus (Pushgateway)\n\n```yaml\ngroups:\n - name: backup-recovery\n rules:\n - alert: OfflineCopyTooOld\n expr: time() - offline_copy_last_success_timestamp_seconds{store=\"orders\"} > 26 * 3600\n for: 15m\n labels: { severity: ticket }\n annotations:\n summary: 'No verified offline copy of {{ $labels.store }} in the last 26 hours'\n```",
|
|
856
1083
|
"hubWhen": {
|
|
857
1084
|
"METHOD": [
|
|
858
1085
|
"sync",
|
|
@@ -865,14 +1092,62 @@
|
|
|
865
1092
|
}
|
|
866
1093
|
},
|
|
867
1094
|
{
|
|
868
|
-
"id": "ff-dr-policy",
|
|
1095
|
+
"id": "ff-dr-policy-restore",
|
|
869
1096
|
"type": "fitness-fn",
|
|
870
|
-
"label": "Region
|
|
1097
|
+
"label": "Region restore assessed",
|
|
871
1098
|
"x": 1040,
|
|
872
|
-
"y":
|
|
873
|
-
"
|
|
874
|
-
"
|
|
875
|
-
"
|
|
1099
|
+
"y": 780,
|
|
1100
|
+
"characteristic": "reliability",
|
|
1101
|
+
"scope": "holistic",
|
|
1102
|
+
"cadence": "triggered",
|
|
1103
|
+
"trigger": "release",
|
|
1104
|
+
"invocation": "automated",
|
|
1105
|
+
"description": "A resiliency policy states the objectives (created once); each release starts an assessment of the application version, waits for it and fails the pipeline unless it says the policy is met. On Azure, a test failover with Azure Site Recovery plays the same part; on Google Cloud, a scripted restore into the second region timed against the objective.\n\nThreshold: The resiliency assessment of the latest release meets the policy: RPO {{RPO_MINUTES}} minutes and RTO {{RTO_MINUTES}} minutes for zone, hardware and software disruptions, RTO {{REGION_RTO_HOURS}} hours for a region disruption\n\nTool: AWS Resilience Hub (AWS CLI, in the release pipeline)\n\n```bash\n#!/usr/bin/env bash\nset -euo pipefail\nRPO=$(( {{RPO_MINUTES}} * 60 )); RTO=$(( {{RTO_MINUTES}} * 60 )); REGION_RTO=$(( {{REGION_RTO_HOURS}} * 3600 ))\n\n# once, when the policy is created (not in every run):\n# aws resiliencehub create-resiliency-policy --policy-name orders-store --tier Critical \\\n# --policy \"{\\\"AZ\\\":{\\\"rpoInSecs\\\":$RPO,\\\"rtoInSecs\\\":$RTO},\\\"Hardware\\\":{\\\"rpoInSecs\\\":$RPO,\\\"rtoInSecs\\\":$RTO},\\\"Software\\\":{\\\"rpoInSecs\\\":$RPO,\\\"rtoInSecs\\\":$RTO},\\\"Region\\\":{\\\"rpoInSecs\\\":$RPO,\\\"rtoInSecs\\\":$REGION_RTO}}\"\n\n# every release: APP_ARN and APP_VERSION come from the pipeline\nARN=$(aws resiliencehub start-app-assessment --app-arn \"$APP_ARN\" --app-version \"$APP_VERSION\" \\\n --assessment-name \"release-$APP_VERSION\" --query assessment.assessmentArn --output text)\nuntil [ \"$(aws resiliencehub describe-app-assessment --assessment-arn \"$ARN\" --query assessment.assessmentStatus --output text)\" != \"InProgress\" ]; do sleep 30; done\nSTATUS=$(aws resiliencehub describe-app-assessment --assessment-arn \"$ARN\" --query assessment.complianceStatus --output text)\ntest \"$STATUS\" = \"PolicyMet\" || { echo \"recovery objectives not met: $STATUS\"; exit 1; }\n```",
|
|
1106
|
+
"hubWhen": {
|
|
1107
|
+
"METHOD": [
|
|
1108
|
+
"sync",
|
|
1109
|
+
"pitr",
|
|
1110
|
+
"snapshot"
|
|
1111
|
+
],
|
|
1112
|
+
"DR": [
|
|
1113
|
+
"restore"
|
|
1114
|
+
]
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
"id": "ff-dr-policy-standby",
|
|
1119
|
+
"type": "fitness-fn",
|
|
1120
|
+
"label": "Region failover assessed",
|
|
1121
|
+
"x": 1040,
|
|
1122
|
+
"y": 910,
|
|
1123
|
+
"characteristic": "reliability",
|
|
1124
|
+
"scope": "holistic",
|
|
1125
|
+
"cadence": "triggered",
|
|
1126
|
+
"trigger": "release",
|
|
1127
|
+
"invocation": "automated",
|
|
1128
|
+
"description": "A resiliency policy states the objectives (created once); each release starts an assessment of the application version, waits for it and fails the pipeline unless it says the policy is met. On Azure, a test failover with Azure Site Recovery plays the same part.\n\nThreshold: The resiliency assessment of the latest release meets the policy: RPO {{RPO_MINUTES}} minutes and RTO {{RTO_MINUTES}} minutes for zone, hardware, software and region disruptions\n\nTool: AWS Resilience Hub (AWS CLI, in the release pipeline)\n\n```bash\n#!/usr/bin/env bash\nset -euo pipefail\nRPO=$(( {{RPO_MINUTES}} * 60 )); RTO=$(( {{RTO_MINUTES}} * 60 ))\n\n# once, when the policy is created (not in every run):\n# aws resiliencehub create-resiliency-policy --policy-name orders-store --tier Critical \\\n# --policy \"{\\\"AZ\\\":{\\\"rpoInSecs\\\":$RPO,\\\"rtoInSecs\\\":$RTO},\\\"Hardware\\\":{\\\"rpoInSecs\\\":$RPO,\\\"rtoInSecs\\\":$RTO},\\\"Software\\\":{\\\"rpoInSecs\\\":$RPO,\\\"rtoInSecs\\\":$RTO},\\\"Region\\\":{\\\"rpoInSecs\\\":$RPO,\\\"rtoInSecs\\\":$RTO}}\"\n\n# every release: APP_ARN and APP_VERSION come from the pipeline\nARN=$(aws resiliencehub start-app-assessment --app-arn \"$APP_ARN\" --app-version \"$APP_VERSION\" \\\n --assessment-name \"release-$APP_VERSION\" --query assessment.assessmentArn --output text)\nuntil [ \"$(aws resiliencehub describe-app-assessment --assessment-arn \"$ARN\" --query assessment.assessmentStatus --output text)\" != \"InProgress\" ]; do sleep 30; done\nSTATUS=$(aws resiliencehub describe-app-assessment --assessment-arn \"$ARN\" --query assessment.complianceStatus --output text)\ntest \"$STATUS\" = \"PolicyMet\" || { echo \"recovery objectives not met: $STATUS\"; exit 1; }\n```",
|
|
1129
|
+
"hubWhen": {
|
|
1130
|
+
"METHOD": [
|
|
1131
|
+
"sync",
|
|
1132
|
+
"pitr",
|
|
1133
|
+
"snapshot"
|
|
1134
|
+
],
|
|
1135
|
+
"DR": [
|
|
1136
|
+
"standby"
|
|
1137
|
+
]
|
|
1138
|
+
}
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
"id": "ff-standby-lag",
|
|
1142
|
+
"type": "fitness-fn",
|
|
1143
|
+
"label": "Standby lag within the RPO",
|
|
1144
|
+
"x": 1040,
|
|
1145
|
+
"y": 1040,
|
|
1146
|
+
"characteristic": "reliability",
|
|
1147
|
+
"scope": "atomic",
|
|
1148
|
+
"cadence": "continual",
|
|
1149
|
+
"invocation": "automated",
|
|
1150
|
+
"description": "The PostgreSQL exporter on the standby reports its replication lag; Prometheus pages when it passes the RPO, since that is the data a region failover would lose.\n\nThreshold: The standby's replication lag is above {{RPO_MINUTES}} minutes for no more than 5 minutes\n\nTool: Prometheus with postgres_exporter (pg_replication_lag_seconds; for Aurora Global Database, the AuroraGlobalDBReplicationLag CloudWatch metric)\n\n```yaml\ngroups:\n - name: backup-recovery\n rules:\n - alert: StandbyLagAboveRpo\n expr: pg_replication_lag_seconds{role=\"standby\"} > {{RPO_MINUTES}} * 60\n for: 5m\n labels: { severity: page }\n annotations:\n summary: 'The standby {{ $labels.instance }} lags more than {{RPO_MINUTES}} minutes behind'\n```",
|
|
876
1151
|
"hubWhen": {
|
|
877
1152
|
"METHOD": [
|
|
878
1153
|
"sync",
|
|
@@ -880,7 +1155,6 @@
|
|
|
880
1155
|
"snapshot"
|
|
881
1156
|
],
|
|
882
1157
|
"DR": [
|
|
883
|
-
"restore",
|
|
884
1158
|
"standby"
|
|
885
1159
|
]
|
|
886
1160
|
}
|
|
@@ -890,10 +1164,13 @@
|
|
|
890
1164
|
"type": "fitness-fn",
|
|
891
1165
|
"label": "Store spans zones",
|
|
892
1166
|
"x": 1040,
|
|
893
|
-
"y":
|
|
894
|
-
"
|
|
895
|
-
"
|
|
896
|
-
"
|
|
1167
|
+
"y": 1170,
|
|
1168
|
+
"characteristic": "reliability",
|
|
1169
|
+
"scope": "atomic",
|
|
1170
|
+
"cadence": "triggered",
|
|
1171
|
+
"trigger": "pull-request",
|
|
1172
|
+
"invocation": "automated",
|
|
1173
|
+
"description": "In CI the Terraform plan is checked: every database instance must run Multi-AZ and every cluster across at least two zones, since a zone loss is the failure this decision promises to survive.\n\nThreshold: 0 database instances in the Terraform plan without Multi-AZ, 0 clusters with fewer than 2 availability zones\n\nTool: Conftest on the Terraform plan (AWS RDS and Aurora; for Azure check high_availability.mode = ZoneRedundant on the flexible server, for Cloud SQL availability_type = REGIONAL)\n\n```rego\npackage main\n\nimport rego.v1\n\ndeny contains msg if {\n\tsome r in input.resource_changes\n\tr.type == \"aws_db_instance\"\n\tnot r.change.after.multi_az\n\tmsg := sprintf(\"%s runs in one availability zone\", [r.address])\n}\n\ndeny contains msg if {\n\tsome r in input.resource_changes\n\tr.type == \"aws_rds_cluster\"\n\tcount(object.get(r.change.after, \"availability_zones\", [])) < 2\n\tmsg := sprintf(\"%s names fewer than two availability zones\", [r.address])\n}\n```",
|
|
897
1174
|
"hubWhen": {
|
|
898
1175
|
"METHOD": [
|
|
899
1176
|
"sync",
|
|
@@ -910,10 +1187,13 @@
|
|
|
910
1187
|
"type": "fitness-fn",
|
|
911
1188
|
"label": "Only the projector writes",
|
|
912
1189
|
"x": 1040,
|
|
913
|
-
"y":
|
|
914
|
-
"
|
|
915
|
-
"
|
|
916
|
-
"
|
|
1190
|
+
"y": 1300,
|
|
1191
|
+
"characteristic": "reliability",
|
|
1192
|
+
"scope": "atomic",
|
|
1193
|
+
"cadence": "triggered",
|
|
1194
|
+
"trigger": "pull-request",
|
|
1195
|
+
"invocation": "automated",
|
|
1196
|
+
"description": "A dependency rule fails the build when code outside the projection imports the store's client, which would let something be written that the rebuild cannot bring back. The store's database role grants writes to the projector only.\n\nThreshold: 0 modules outside the projection that import the store's write client\n\nTool: dependency-cruiser (or the equivalent for your stack: ArchUnit, NetArchTest, a RuboCop custom cop)\n\n```js\n// .dependency-cruiser.cjs\nmodule.exports = {\n forbidden: [{\n name: 'store-is-derived',\n comment: 'ADR Rebuilt, not backed up: only the projection writes to the store',\n severity: 'error',\n from: { pathNot: '^src/projection/' },\n to: { path: '^src/stores/search/writer' },\n }],\n}\n```",
|
|
917
1197
|
"hubWhen": {
|
|
918
1198
|
"METHOD": [
|
|
919
1199
|
"rebuild"
|
|
@@ -925,10 +1205,13 @@
|
|
|
925
1205
|
"type": "fitness-fn",
|
|
926
1206
|
"label": "Weekly restore test",
|
|
927
1207
|
"x": 1040,
|
|
928
|
-
"y":
|
|
929
|
-
"
|
|
930
|
-
"
|
|
931
|
-
"
|
|
1208
|
+
"y": 1430,
|
|
1209
|
+
"characteristic": "reliability",
|
|
1210
|
+
"scope": "holistic",
|
|
1211
|
+
"cadence": "triggered",
|
|
1212
|
+
"trigger": "weekly",
|
|
1213
|
+
"invocation": "automated",
|
|
1214
|
+
"description": "A scheduled workflow restores the latest copy (or rebuilds from the sources) into a throwaway environment, runs the data checks and tears it down; the job's timeout is the RTO, so a slow restore fails it. AWS Backup restore testing can do the same for stores it backs up.\n\nThreshold: A restore (or rebuild) into an isolated environment every week, passing the data checks within {{RTO_MINUTES}} minutes, with data no older than {{RPO_MINUTES}} minutes\n\nTool: GitHub Actions (scheduled workflow); the same three scripts run from any scheduler\n\n```yaml\n# .github/workflows/restore-drill.yml\nname: restore-drill\non:\n schedule: [{ cron: '0 3 * * 1' }] # every Monday, 03:00 UTC\n workflow_dispatch: {}\njobs:\n restore:\n runs-on: ubuntu-latest\n timeout-minutes: {{RTO_MINUTES}}\n steps:\n - uses: actions/checkout@v4.2.2 # pin by commit SHA in your repository\n - name: Restore the latest copy into a clean environment\n run: ./ops/recover.sh --target \"drill-$GITHUB_RUN_ID\" --latest\n - name: Check row counts, newest timestamp and a sample of records\n run: ./ops/verify.sh --target \"drill-$GITHUB_RUN_ID\" --max-age-minutes {{RPO_MINUTES}}\n - name: Tear down\n if: always()\n run: ./ops/teardown.sh \"drill-$GITHUB_RUN_ID\"\n```",
|
|
932
1215
|
"hubWhen": {
|
|
933
1216
|
"DRILL": [
|
|
934
1217
|
"auto"
|
|
@@ -940,10 +1223,13 @@
|
|
|
940
1223
|
"type": "fitness-fn",
|
|
941
1224
|
"label": "Quarterly drill on record",
|
|
942
1225
|
"x": 1040,
|
|
943
|
-
"y":
|
|
944
|
-
"
|
|
945
|
-
"
|
|
946
|
-
"
|
|
1226
|
+
"y": 1560,
|
|
1227
|
+
"characteristic": "reliability",
|
|
1228
|
+
"scope": "holistic",
|
|
1229
|
+
"cadence": "temporal",
|
|
1230
|
+
"every": "90d",
|
|
1231
|
+
"invocation": "manual",
|
|
1232
|
+
"description": "Each drill is recorded as docs/drills/YYYY-MM-DD.md with a \"minutes:\" line; a daily scheduled job fails, and notifies the owner, when the newest record is too old or too slow.\n\nThreshold: The newest drill record is at most 92 days old and its restore took no more than {{RTO_MINUTES}} minutes\n\nTool: GitHub Actions (scheduled workflow); the same script runs from any scheduler\n\n```yaml\n# .github/workflows/drill-overdue.yml\nname: drill-overdue\non:\n schedule: [{ cron: '0 7 * * *' }]\njobs:\n check:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4.2.2 # pin by commit SHA in your repository\n - run: |\n latest=$(ls docs/drills/*.md | sort | tail -n 1)\n age=$(( ( $(date +%s) - $(date -d \"$(basename \"$latest\" .md)\" +%s) ) / 86400 ))\n minutes=$(grep -m1 '^minutes:' \"$latest\" | awk '{print $2}')\n echo \"last drill $latest: $age days ago, $minutes minutes\"\n test \"$age\" -le 92 && test \"$minutes\" -le {{RTO_MINUTES}}\n```",
|
|
947
1233
|
"hubWhen": {
|
|
948
1234
|
"DRILL": [
|
|
949
1235
|
"manual"
|
|
@@ -1157,93 +1443,51 @@
|
|
|
1157
1443
|
"relationType": "implements"
|
|
1158
1444
|
},
|
|
1159
1445
|
{
|
|
1160
|
-
"id": "ff-vault--implements--adr-
|
|
1161
|
-
"sourceId": "ff-vault",
|
|
1162
|
-
"targetId": "adr-
|
|
1163
|
-
"relationType": "implements"
|
|
1164
|
-
},
|
|
1165
|
-
{
|
|
1166
|
-
"id": "ff-vault--implements--adr-pitr",
|
|
1167
|
-
"sourceId": "ff-vault",
|
|
1168
|
-
"targetId": "adr-pitr",
|
|
1169
|
-
"relationType": "implements"
|
|
1170
|
-
},
|
|
1171
|
-
{
|
|
1172
|
-
"id": "ff-vault--implements--adr-snapshot",
|
|
1173
|
-
"sourceId": "ff-vault",
|
|
1174
|
-
"targetId": "adr-snapshot",
|
|
1175
|
-
"relationType": "implements"
|
|
1176
|
-
},
|
|
1177
|
-
{
|
|
1178
|
-
"id": "ff-copy-region--implements--adr-sync",
|
|
1179
|
-
"sourceId": "ff-copy-region",
|
|
1180
|
-
"targetId": "adr-sync",
|
|
1446
|
+
"id": "ff-vault-copy--implements--adr-vault",
|
|
1447
|
+
"sourceId": "ff-vault-copy",
|
|
1448
|
+
"targetId": "adr-vault",
|
|
1181
1449
|
"relationType": "implements"
|
|
1182
1450
|
},
|
|
1183
1451
|
{
|
|
1184
|
-
"id": "ff-
|
|
1185
|
-
"sourceId": "ff-
|
|
1186
|
-
"targetId": "adr-
|
|
1452
|
+
"id": "ff-vault-lock--implements--adr-vault",
|
|
1453
|
+
"sourceId": "ff-vault-lock",
|
|
1454
|
+
"targetId": "adr-vault",
|
|
1187
1455
|
"relationType": "implements"
|
|
1188
1456
|
},
|
|
1189
1457
|
{
|
|
1190
|
-
"id": "ff-copy-region--implements--adr-
|
|
1458
|
+
"id": "ff-copy-region--implements--adr-region",
|
|
1191
1459
|
"sourceId": "ff-copy-region",
|
|
1192
|
-
"targetId": "adr-
|
|
1193
|
-
"relationType": "implements"
|
|
1194
|
-
},
|
|
1195
|
-
{
|
|
1196
|
-
"id": "ff-offline--implements--adr-sync",
|
|
1197
|
-
"sourceId": "ff-offline",
|
|
1198
|
-
"targetId": "adr-sync",
|
|
1199
|
-
"relationType": "implements"
|
|
1200
|
-
},
|
|
1201
|
-
{
|
|
1202
|
-
"id": "ff-offline--implements--adr-pitr",
|
|
1203
|
-
"sourceId": "ff-offline",
|
|
1204
|
-
"targetId": "adr-pitr",
|
|
1460
|
+
"targetId": "adr-region",
|
|
1205
1461
|
"relationType": "implements"
|
|
1206
1462
|
},
|
|
1207
1463
|
{
|
|
1208
|
-
"id": "ff-offline--implements--adr-
|
|
1464
|
+
"id": "ff-offline--implements--adr-offline",
|
|
1209
1465
|
"sourceId": "ff-offline",
|
|
1210
|
-
"targetId": "adr-
|
|
1211
|
-
"relationType": "implements"
|
|
1212
|
-
},
|
|
1213
|
-
{
|
|
1214
|
-
"id": "ff-dr-policy--implements--adr-sync",
|
|
1215
|
-
"sourceId": "ff-dr-policy",
|
|
1216
|
-
"targetId": "adr-sync",
|
|
1217
|
-
"relationType": "implements"
|
|
1218
|
-
},
|
|
1219
|
-
{
|
|
1220
|
-
"id": "ff-dr-policy--implements--adr-pitr",
|
|
1221
|
-
"sourceId": "ff-dr-policy",
|
|
1222
|
-
"targetId": "adr-pitr",
|
|
1466
|
+
"targetId": "adr-offline",
|
|
1223
1467
|
"relationType": "implements"
|
|
1224
1468
|
},
|
|
1225
1469
|
{
|
|
1226
|
-
"id": "ff-dr-policy--implements--adr-
|
|
1227
|
-
"sourceId": "ff-dr-policy",
|
|
1228
|
-
"targetId": "adr-
|
|
1470
|
+
"id": "ff-dr-policy-restore--implements--adr-dr-restore",
|
|
1471
|
+
"sourceId": "ff-dr-policy-restore",
|
|
1472
|
+
"targetId": "adr-dr-restore",
|
|
1229
1473
|
"relationType": "implements"
|
|
1230
1474
|
},
|
|
1231
1475
|
{
|
|
1232
|
-
"id": "ff-
|
|
1233
|
-
"sourceId": "ff-
|
|
1234
|
-
"targetId": "adr-
|
|
1476
|
+
"id": "ff-dr-policy-standby--implements--adr-dr-standby",
|
|
1477
|
+
"sourceId": "ff-dr-policy-standby",
|
|
1478
|
+
"targetId": "adr-dr-standby",
|
|
1235
1479
|
"relationType": "implements"
|
|
1236
1480
|
},
|
|
1237
1481
|
{
|
|
1238
|
-
"id": "ff-
|
|
1239
|
-
"sourceId": "ff-
|
|
1240
|
-
"targetId": "adr-
|
|
1482
|
+
"id": "ff-standby-lag--implements--adr-dr-standby",
|
|
1483
|
+
"sourceId": "ff-standby-lag",
|
|
1484
|
+
"targetId": "adr-dr-standby",
|
|
1241
1485
|
"relationType": "implements"
|
|
1242
1486
|
},
|
|
1243
1487
|
{
|
|
1244
|
-
"id": "ff-zones--implements--adr-
|
|
1488
|
+
"id": "ff-zones--implements--adr-dr-single",
|
|
1245
1489
|
"sourceId": "ff-zones",
|
|
1246
|
-
"targetId": "adr-
|
|
1490
|
+
"targetId": "adr-dr-single",
|
|
1247
1491
|
"relationType": "implements"
|
|
1248
1492
|
},
|
|
1249
1493
|
{
|
|
@@ -1276,6 +1520,12 @@
|
|
|
1276
1520
|
"targetId": "adr-rebuild",
|
|
1277
1521
|
"relationType": "implements"
|
|
1278
1522
|
},
|
|
1523
|
+
{
|
|
1524
|
+
"id": "ff-drill-auto--implements--adr-drill-auto",
|
|
1525
|
+
"sourceId": "ff-drill-auto",
|
|
1526
|
+
"targetId": "adr-drill-auto",
|
|
1527
|
+
"relationType": "implements"
|
|
1528
|
+
},
|
|
1279
1529
|
{
|
|
1280
1530
|
"id": "ff-drill-manual--implements--adr-sync",
|
|
1281
1531
|
"sourceId": "ff-drill-manual",
|
|
@@ -1299,6 +1549,12 @@
|
|
|
1299
1549
|
"sourceId": "ff-drill-manual",
|
|
1300
1550
|
"targetId": "adr-rebuild",
|
|
1301
1551
|
"relationType": "implements"
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
"id": "ff-drill-manual--implements--adr-drill-manual",
|
|
1555
|
+
"sourceId": "ff-drill-manual",
|
|
1556
|
+
"targetId": "adr-drill-manual",
|
|
1557
|
+
"relationType": "implements"
|
|
1302
1558
|
}
|
|
1303
1559
|
]
|
|
1304
1560
|
}
|