SECOPS

Exposed-secret kill switch from an external scanner webhook

When an external secret scanner posts a detection webhook, this workflow rotates the credential in its source system, force-expires user sessions.

CategorySecOps
Enginesim
Difficultyadvanced
Triggerwebhook
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerExternal scanner posts detection webhookHTTP webhook
  • ActionRotate credential in its owning source system
  • LogicBranch on rotation success or failure
  • ActionEscalate to PagerDuty if rotation failedPagerDutyPagerDuty
  • ActionWrite audit record to Postgres on successPostgreSQLPostgres
  • OutputConfirm kill-switch outcome in SlackSlack

What it does

Acts as a single kill-switch endpoint any external scanner can call. On a detection it rotates the credential in whichever system owns it, force-expires affected user sessions, and writes an audit record. If the rotation call fails, it escalates straight to PagerDuty so the leak never goes unhandled.

When to use it

Use this when you run a third-party or homegrown secret scanner that emits webhooks and you want one consistent, auditable response path regardless of which tool detected the leak.

How it works

  1. 1An external scanner posts a detection to the workflow's webhook with the credential type and owning system.
  2. 2The workflow rotates the credential in its source system via the appropriate API call.
  3. 3It force-expires user sessions tied to the compromised credential.
  4. 4A branch checks whether rotation succeeded; on failure it opens a PagerDuty incident for human follow-up.
  5. 5On success it writes an audit record to Postgres and confirms in Slack.

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 PagerDutyIncidents, on-call, escalations.
  4. 4
    Connect SlackChannels, DMs, threads, mentions.
  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.