Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Prevent Accidental DNS Zone Deletion in Automated Pipelines — Destructive Operation Guard

Description and use

Automated pipelines can accidentally delete DNS zones, causing data loss. The article recommends using an allowlist for zone deletions, logging intent, and defaulting to record‑level deletes, requiring explicit approval for zone deletes.

Problem

Automated pipelines can unintentionally delete entire DNS zones, causing irreversible loss of records and costly recovery.

Outcome

The pipeline now safely deletes only intended records, requires human approval for zone deletes, and retains audit evidence for reconstruction, reducing accidental data loss and recovery costs.

Workflow

  • 1. Configure pipeline to delete only specific record identifiers or names by default.
  • 2. Add an allowlist of approved domain identifiers with expiry tokens for destructive zone deletes.
  • 3. Before performing a delete, log intent to a central audit service (e.g., Infrai logs).
  • 4. If the operation is a zone delete, verify the domain is present in the allowlist and the token is valid.
  • 5. Execute the DNS record delete via the provider API; if the domain is not approved, raise an explicit exception.
  • 6. Store audit logs and record snapshots for potential reconstruction.
  • 7. Review audit logs periodically to ensure compliance and detect misuse.

Evidence

require an explicit allowlist for destructive DNS operations, and make automation perform record-level deletes by default

Source

The example below defaults to record deletion, logs intent before the destructive call, and refuses a domain delete unless the caller supplies an exact approved domain

Source

  • Record date: 2026-09-19T20:45:42.626Z