Datastore without backup or retention
errordatastore-missing-backup
A system of record with backups off, or with no retention period stated, cannot be restored. The loss is discovered on the day it matters.
- Severity
- error
- Selects
- every node of kind sql-database
- Components in scope
- 76
It looks at every node of kind sql-database, and fires when:
- — any of these hold:
- — the node's `backupEnabled` is false
- — the node's `backupRetentionDays` has no value
Datastore '{{node.id}}' has no backup or no retention policy declared.Reference designs whose broken twin names this rule in its header. The gate reads the same header, and fails when a rule no design trips.
canva-uploadsreferencediscord-messagesreferencedropbox-syncreferencefacebook-messengerreferencefigma-multiplayerreferencegitlab-architecturereferencemulti-region-webreferencenearby-friendsreferencenetflix-streamingreferencenotion-shardingreferencenubank-corereferencepinterest-feedreferencepokemon-goreferencespotify-playbackreferencestock-exchangereferenceunique-id-generatorreference
# yaml-language-server: $schema=../schema/rule.schema.json # A system of record with no backup or no stated retention is an unrecoverable data loss # waiting to happen. Tripped by designs/multi-region-web.broken.yaml. schemaVersion: "1" type: "rule" id: "datastore-missing-backup" severity: "error" select: node: kind: "sql-database" when: any: - prop: "backupEnabled" equals: false - prop: "backupRetentionDays" exists: false message: "Datastore '{{node.id}}' has no backup or no retention policy declared."