Gate OIDC Signing-Key Rollovers with a Pinned JWKS
Block a risky OIDC signing-key rollover if the provider no longer publishes key IDs required by your clients.
Detect Vercel build failures, alert Slack, pause for operator sign-off, and rollback to a healthy deployment with declarative Kestra orchestration.
Continuous deployment enables fast shipping, but broken production builds can cause immediate customer downtime. While automated rollbacks are fast, blindly redirecting production traffic without verification can cause schema mismatches or disrupt data consistency.
This blueprint provides an autonomous production guard that bridges automated detection with interactive human authorization. Using native Kestra plugins, it eliminates custom scripts and offers a transparent, auditable remediation pipeline.
check_latest_production_deployment (io.kestra.plugin.core.http.Request) invokes Vercel's REST API (GET /v6/deployments) to inspect the active production deployment state.evaluate_deployment_health (io.kestra.plugin.core.flow.If) inspects the response to verify whether readyState is ERROR.notify_operator_of_failure (io.kestra.plugin.slack.notifications.SlackIncomingWebhook) dispatches a Slack alert with incident metadata and a direct URL to the execution.pause_for_rollback_approval (io.kestra.plugin.core.flow.Pause) holds execution until an on-call engineer reviews the failure and confirms the rollback decision.execute_rollback_if_approved (io.kestra.plugin.core.flow.If) checks the approval status.trigger_vercel_rollback (io.kestra.plugin.core.http.Request) invokes Vercel's Rollback API (POST /v1/projects/{id}/rollback/{targetId}) to redirect production traffic to the designated healthy deployment.log_rollback_success or log_rollback_cancelled (io.kestra.plugin.core.log.Log) records the full audit trail.Building custom rollback scripts inside CI jobs or serverless functions often creates hidden failure modes, lacks
native human-in-the-loop approval modals, and provides poor execution visibility. Kestra provides declarative flow
control, built-in secret management, durable state pausing (io.kestra.plugin.core.flow.Pause), and unified execution
tracking without managing custom webhook infrastructure.
VERCEL_API_TOKEN: Vercel Personal Access Token or Team Token with deployment read and project write permissions.VERCEL_API_TOKEN to your Kestra namespace secrets.project_id to match your Vercel project name or ID.target_deployment_id with the ID of your last verified production deployment (dpl_xxxx).slack_webhook_uri to your team's Slack incoming webhook URL.io.kestra.plugin.core.trigger.Schedule) for recurring surveillance.READY state.io.kestra.plugin.pagerduty.Incident to page on-call responders during high-severity outages.