See llms.txt for all machine-readable content.

Back to Templates

Orchestrate multi-system secret rotation for AWS, GitHub, databases and SaaS

Quick overview

This workflow exposes a webhook that validates secret-rotation requests, builds an ordered rotation plan, simulates create/propagate/verify/revoke steps, then posts audit and notification payloads via HTTP and returns a detailed rotation report.

How it works

  1. Receives a POST request on a webhook endpoint to start a secret-rotation run.
  2. Validates the environment, dry-run flag, and target systems/types, and rejects invalid requests with a 400 response.
  3. Sorts and normalizes the requested targets into an ordered rotation plan with create, propagate, verify, and revoke actions per target.
  4. Executes the rotation plan in dry-run or live mode, producing per-target action results and a success/failure summary.
  5. Sends the full execution record to an external audit logging endpoint via an HTTP request.
  6. Sends a notification payload (channels, summary, and failed targets) to an external notification endpoint via an HTTP request.
  7. Returns a structured JSON report to the webhook caller with a 200 status on full success or 207 on partial failures.

Setup

  1. Configure the webhook path in your CI/CD job or scheduler to call the workflow’s POST endpoint (/secret-rotate) and include the required JSON body (environment, targets, and optional dryRun/notifyChannels).
  2. Update the config inside the code step to set allowed environments, target limits, and your real adapter/audit/notification URLs instead of the default httpbin.org endpoints.
  3. If your audit and notification endpoints require authentication, add the needed HTTP headers or credentials to the HTTP Request steps.
  4. Define the target schema your callers will send (system/type/id and any system-specific fields) so it matches the workflow’s allowed systems and types.