Velero
backup.velero
Protects against destructive velero operations like deleting backups, schedules, and locations.
- 6blocking rules
- 7safe patterns
- 1Critical
- 3High
- 1Medium
- 1Low
[packs]
enabled = ["backup.velero"]Evaluated when a command contains velero.
Blocking rules
Each rule ID is backup.velero:<name>. Use it in allowlists and [policy.rules].
Criticalvelero-uninstallvelero uninstall removes the Velero deployment and related resources.
Explanation
Uninstalling Velero removes the deployment, CRDs, and all Velero-managed resources from your cluster. Backup schedules stop immediately. While backup data in object storage is preserved, you cannot restore from backups until Velero is reinstalled and reconfigured. Safer alternatives: - Document current configuration before uninstalling - velero backup-location get: Record storage locations - velero schedule get: Record all schedules - Export Velero resources: kubectl get -o yaml
Highvelero-backup-deletevelero backup delete removes a backup and its data.
Explanation
Deleting a Velero backup removes both the backup metadata in Kubernetes and the actual backup data from object storage. Once deleted, you cannot restore your cluster or applications to that backup point. This is irreversible. Safer alternatives: - velero backup describe: Review backup contents before deletion - velero backup get: List all backups to verify target - Consider retaining backups with TTL policies instead of manual deletion
Highvelero-backup-location-deletevelero backup-location delete removes a backup storage location.
Explanation
Removing a backup storage location disconnects Velero from that storage backend. Backups stored there become inaccessible to Velero (though data remains in storage). You won't be able to restore from those backups until the location is recreated. Safer alternatives: - velero backup-location get: Review all locations - Verify no critical backups depend on this location - Migrate backups to another location before deletion
Highvelero-snapshot-location-deletevelero snapshot-location delete removes a snapshot location.
Explanation
Deleting a snapshot location removes the configuration for volume snapshots. Existing snapshots may become orphaned and inaccessible through Velero. Volume restores that depend on this location will fail. Safer alternatives: - velero snapshot-location get: Review all snapshot locations - Verify no backups use this snapshot location - Migrate to a new snapshot location before deletion
Mediumvelero-schedule-deletevelero schedule delete removes scheduled backups.
Explanation
Deleting a backup schedule stops automatic backup creation. Existing backups created by the schedule are not affected, but no new backups will be created. If forgotten, this can lead to outdated backups and recovery gaps. Safer alternatives: - velero schedule get: Review all schedules first - velero schedule describe: Check schedule configuration - Pause the schedule instead if temporary
Lowvelero-restore-deletevelero restore delete removes restore records.
Explanation
Deleting restore records removes the metadata about past restore operations from Kubernetes. This does not affect the restored resources themselves or the original backups. However, audit trails of restore operations will be lost. Safer alternatives: - velero restore get: List restores before deletion - Document restore history externally if needed for compliance
Safe patterns
Checked first. A command that matches one is never blocked by this pack.
velero-backup-getvelero-backup-describevelero-backup-logsvelero-backup-createvelero-schedule-getvelero-restore-createvelero-version