SECOPS

Exposed Key Revocation and Rotation Orchestrator

When a secret-scanning alert fires, this workflow revokes the leaked credential, mints a replacement, writes it to your secret stores.

CategorySecOps
Enginesim
Difficultyadvanced
Triggerwebhook
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerGitHub secret-scanning alert webhookGitHubGitHub
  • LogicClassify secret type and load consumers from PostgresPostgreSQLPostgres
  • ActionRevoke leaked key and issue replacement via provider APIGitHubGitHub
  • ActionWrite new secret to Cloudflare env bindingsCloudflareCloudflare
  • ActionRecord per-consumer rotation status in PostgresPostgreSQLPostgres
  • OutputPost incident thread with consumer tracker to SlackSlack

What it does

Turns a raw secret-leak alert into a closed-loop remediation: the old key is killed within seconds, a new key is issued, every system that consumed the old key is updated, and the incident stays open until the last consumer confirms.

When to use it

Run this whenever a production credential (API token, cloud key, signing secret) is exposed in a public repo, log, or paste. It replaces the manual scramble of revoke-here, rotate-there, and chase-the-teams with one auditable flow.

How it works

  1. 1A GitHub secret-scanning alert webhook fires with the matched secret pattern and location.
  2. 2A logic step classifies the secret type and looks up its registered downstream consumers in Postgres.
  3. 3The provider API call revokes the leaked credential immediately and issues a replacement.
  4. 4The new secret is written to Cloudflare (Workers/Pages env) and any other registered store.
  5. 5Postgres records each consumer's rotation status as pending.
  6. 6Slack posts an incident thread listing every consumer and its live update state.
  7. 7The flow stays open, marking consumers complete as confirmations arrive, then closes the incident.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GitHubRepos, issues, pull requests, actions.
  2. 2
    Connect PostgresAny Postgres URL — query, write, migrate.
  3. 3
    Connect CloudflareWorkers, Pages, R2, KV — the edge stack.
  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.