Audit Every Agent Tool Call Against Policy Before It Goes Unnoticed
Replay a recorded agent run through denylist, allowlist and budget rules, escalate violations to GitHub and Slack, and publish the verdict.
Guard Cloudflare DNS with Kestra. Sweep zone records hourly and alert Slack on drift.
A stray DNS edit can take down mail, apps, or TLS. This blueprint sweeps configurable Cloudflare zones every hour, snapshots A/AAAA/CNAME/TXT records via the API, and posts a Slack summary for review. A webhook trigger enables on-demand sweeps after change windows.
hourly_sweep (io.kestra.plugin.core.trigger.Schedule, cron 0 * * * *) launches the run; on_demand_webhook allows ad-hoc sweeps.sweep_zones (io.kestra.plugin.core.flow.Loop, concurrency 4) fans out across inputs.zones.fetch_records (io.kestra.plugin.core.http.Request) lists up to 100 records per zone with allowFailed: true.diff_records (io.kestra.plugin.scripts.python.Script) filters to inputs.allowed_record_types and builds a summary.report_drift (io.kestra.plugin.core.flow.If) posts to Slack (io.kestra.plugin.slack.notifications.SlackIncomingWebhook) for review.emit_sweep_metrics (io.kestra.plugin.core.output.OutputValues) exports coverage for audit history.CLOUDFLARE_API_TOKEN: token used to list DNS records.SLACK_WEBHOOK_URL: Slack Incoming Webhook for summaries and failure alerts.WEBHOOK_KEY: auth key for the on-demand webhook trigger.CLOUDFLARE_API_TOKEN, SLACK_WEBHOOK_URL, and WEBHOOK_KEY secrets.zones and allowed_record_types inputs.hourly_sweep schedule.zones (ARRAY of STRING): Cloudflare zone identifiers.allowed_record_types (ARRAY of STRING): DNS types to snapshot.emit_sweep_metrics.values.zones_swept: number of zones swept.emit_sweep_metrics.values.swept_at: run timestamp for audit reports.