Cerbos Authorization Policy Drift & Canary Health Gate
Audit Cerbos PDP authorization policies against canary test vectors, detect policy drift, and dispatch Slack alerts.
Audit immudb immutable database state digests, verify cryptographic root hash integrity over PostgreSQL, and alert Slack on tamper anomalies.
immudb is an open-source immutable database built on cryptographic verification using cryptographic Merkle trees. Regulated organizations rely on immudb for tamper-proof storage of financial ledgers, clinical data, and security audit logs to satisfy SOC 2, PCI-DSS, ISO 27001, and HIPAA compliance mandates. In production architectures, immutable ledgers can experience silent node desynchronization, unverified state transitions, or network partition isolation. When an immutable store fails to update its cryptographic root digest or when underlying storage becomes corrupted, traditional database monitors continue reporting green connections while audit proofs fail. This blueprint provides a continuous sentinel that queries immudb via its PostgreSQL wire protocol, validates cryptographic state digests, alerts security teams upon tamper anomalies, and enforces compliance quarantine when verified.
every_fifteen_minutes) initiates diagnostic verification every 15 minutes, with manual on-demand execution supported via inputs.probe_ledger_state) connects to the immudb PostgreSQL compatibility listener via io.kestra.plugin.jdbc.postgresql.Query and executes SELECT immudb_state().classify_tamper_health) parses the cryptographic root digest using Pebble template conditionals, categorizing health into HEALTHY, ROOT_MISMATCH, TAMPER_DETECTED, or PROBE_FAILED.route_by_compliance) switches downstream remediation and notification branches based on the verified integrity tier.TAMPER_DETECTED, alert_tamper_slack broadcasts an urgent security incident alert to Slack, and quarantine_gate conditionally blocks downstream workflows when quarantine_on_tamper is enabled.ROOT_MISMATCH, alert_root_mismatch warns operators that the observed state digest has diverged from the configured baseline prefix.PROBE_FAILED or network errors, dedicated alerts notify administrators of database reachability loss or invalid credentials.log_audit_summary) outputs an immutable execution record detailing the verified root digest, target endpoint, and execution lineage.immudb_state().IMMUDB_USERNAME: Username for authenticating to the immudb PostgreSQL wire compatibility port.IMMUDB_PASSWORD: Password for the immudb database user.SLACK_WEBHOOK_URL: HTTPS incoming webhook URL for the security alert Slack channel.IMMUDB_USERNAME, IMMUDB_PASSWORD, and SLACK_WEBHOOK_URL in your Kestra namespace secrets.dry_run: true to confirm connectivity against your immudb server.immudb_state() root digest is retrieved successfully.every_fifteen_minutes schedule trigger to establish automated continuous integrity verification.immudb_verify_tx(tx_id) to audit specific high-value transactional sequences.io.kestra.plugin.pagerduty.notifications.PagerDutyAlert for high-severity cryptographic corruption.