DATA OPS

Real-Time Postgres DDL PII Guard via Webhook

Triggered the moment a DDL change webhook fires, inspects the altered Postgres table for newly added sensitive columns and immediately opens a governance ticket plus a PagerDuty…

CategoryData Ops
Enginesim
Difficultyadvanced
Triggerwebhook
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerDDL change webhook fires with affected tableHTTP webhook
  • ActionInspect changed Postgres table columns and samplesPostgreSQLPostgres
  • LogicFilter to columns not in reviewed baseline
  • LogicBranch by PII risk level of new columns
  • ActionOpen Linear governance issue for each findingLinearLinear
  • OutputRaise PagerDuty incident for high-risk columnsPagerDutyPagerDuty

What it does

Instead of waiting for a nightly scan, this workflow reacts the instant a schema change lands. A DDL event webhook from your migration tooling triggers an inspection of just the changed table, catching unreviewed PII columns within seconds of deployment.

When to use it

Use it on production databases where a sensitive column reaching live data even briefly is a compliance problem, and you need event-driven detection rather than scheduled batches.

How it works

  1. 1A webhook fires when your migration pipeline applies a DDL change, carrying the affected table name.
  2. 2The workflow queries `information_schema.columns` on that specific Postgres table and samples a small value set per new column.
  3. 3It checks each column against the known-reviewed baseline to keep only genuinely new fields.
  4. 4A classifier rates new columns; high-risk categories (SSN, payment, health) branch separately from lower-risk ones.
  5. 5Every flagged column opens a Linear governance issue; high-risk columns additionally raise a PagerDuty incident for immediate on-call attention.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect HTTP webhookTrigger any URL on agent actions.
  2. 2
    Connect PostgresAny Postgres URL — query, write, migrate.
  3. 3
    Connect LinearIssues, projects, cycles, triage.
  4. 4
    Connect PagerDutyIncidents, on-call, escalations.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.