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
- Receives a POST request on a webhook endpoint to start a secret-rotation run.
- Validates the environment, dry-run flag, and target systems/types, and rejects invalid requests with a 400 response.
- Sorts and normalizes the requested targets into an ordered rotation plan with create, propagate, verify, and revoke actions per target.
- Executes the rotation plan in dry-run or live mode, producing per-target action results and a success/failure summary.
- Sends the full execution record to an external audit logging endpoint via an HTTP request.
- Sends a notification payload (channels, summary, and failed targets) to an external notification endpoint via an HTTP request.
- Returns a structured JSON report to the webhook caller with a 200 status on full success or 207 on partial failures.
Setup
- 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).
- 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.
- If your audit and notification endpoints require authentication, add the needed HTTP headers or credentials to the HTTP Request steps.
- 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.